We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

Windows Forms in Visual Studio 2003

bryanford
bryanford asked
on
Medium Priority
244 Views
Last Modified: 2010-04-23
Hi all,

I am migrating an access database into vb.net with MySQL back end and am at the stage where i design the forms.

This may seem really picky and dumb, but in access i can do these things that i cant work out in VB.NET:

Group boxes have round corners
Command buttons have round corners
Graphics in buttons can span the whole size of the button, not small in the middle
Command buttons have a white to grey vertical gradient as the background
You can set position of background image on form and change repeat settings

I can't find any of these with Visual studio. Is it even possible? Can anyone give this perfectionist a hand?? :)

Thanks

bryan
Comment
Watch Question

Brian CroweDatabase Engineer
CERTIFIED EXPERT
Top Expert 2005

Commented:
Is it possible? Yes. Is it worth the trouble? Probably not.

You can use GDI to draw the boxes or you can derive your own groupbox and change the OnPaint method to draw however you want.  You would have to do similar things to the Button object to do what you want.  Your best bet is to just accept that you're not in Access anymore and use what you're given at least to get the application working.

Author

Commented:
thanks, i thought that might be the case... it just seems that you pay a lot more for visual studio than you do for access and yet there are some advantages of the cheaper...

My employer is looking at getting Visual studio 2005 for later this year. Does anyone know if this is available in it? The project is sort of a time killer so i'll defer it if its available in vs2005

Mike TomlinsonHigh School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
CERTIFIED EXPERT
Top Expert 2009

Commented:
I know that your last request:

    "You can set position of background image on form and change repeat settings"

IS available in VB.Net 2005.

Author

Commented:
Cool... 1 down, 4 to go. Thanks for that.

Does anybody else know of the others?
High School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
CERTIFIED EXPERT
Top Expert 2009
Commented:
3rd request for images to span a button is available via the BackgroundImageLayout() property:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.backgroundimagelayout(VS.80).aspx
(this is the same way the form background layout is changed)

The GroupBox has rounded corners by default.

The button corners are slightly rounded by default.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
when you say groupbox and button corners are round... do you mean in visual studio 2003?
Mike TomlinsonHigh School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
CERTIFIED EXPERT
Top Expert 2009

Commented:
All my comments were for VS2005.

The GroupBox and Button in VS2003 are rectangular.

Author

Commented:
thanks! got vs2005 a bit earlier and its perfect...

Bryan
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.