Go Back   Random Stuff Forums > Technical > Programming

Programming Discuss any type of programming here.

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 16-03-2007, 07:34 PM
Flaming Idiot (Offline)
Fire Client Creator
 
Join Date: Mar 2007
Location: Canada
Posts: 166
Flaming Idiot is an unknown quantity at this point
Default [Code] MDI form background controller

What this code does is let you change the background color, border style and background image of the mdi client area.

To use, just add the code attached to your project, run it, and then you should see a component in the toolbox.

I did not originally write this, but I did convert it from C# to VB.



Original C# code can be found here: http://www.codeproject.com/cs/miscct...controller.asp
Attached Files
File Type: zip Mdi.zip (6.0 KB, 3 views)

Last edited by Flaming Idiot; 16-03-2007 at 07:36 PM..
Reply With Quote
  #2  
Old 26-03-2007, 07:57 PM
Skeletron (Offline)
New Member
 
Join Date: Feb 2007
Posts: 2
Skeletron is an unknown quantity at this point
Default

Lol, I laughed when I saw this. In the form designer it is not possible to change the color/background image in the MDIContainer so you have to use code. This was a function I built for myself but I never got around to using it.

foreach (Control hi in this.Controls)
{
if (hi is MdiClient)
{
hi.BackgroundImage = Image.FromFile("C:" + (Char)47 + "Documents and Settings" + (Char)47 + "All Users" + (Char)47 + "Documents" + (Char)47 + "My Pictures" + (Char)47 + "Sample Pictures" + (Char)47 + "Blue hills.jpg");

}
}
Reply With Quote
  #3  
Old 24-06-2009, 11:57 AM
Aaron's Avatar
(Offline)
:Ninja:
 
Join Date: Jan 2007
Location: College Station, TX
Posts: 4,216
Aaron Aaron Aaron Aaron Aaron Aaron
Default

Which noob let the spam bot post? D:
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Reply With Quote
  #4  
Old 24-06-2009, 12:10 PM
World Domination's Avatar
(Offline)
Super Sexy Admin
 
Join Date: Jan 2007
Location: Illinois, USA
Posts: 7,239
World Domination is an unknown quantity at this point
Default

Originally Posted by Aaron View Post
Which noob let the spam bot post? D:
Yeah, who let Aaron out of his cage to post?
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

"It's not yelling, it's projecting; and by the way, my voice is soothing."
-Billy Mays

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 11:12 AM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright © 2006 - 2010, Rsforums.org