SharpUI for .NET Support

Started by BillNew at 08-05-2005 3:17 PM. Topic has 10 replies.

Print Search Rate
Sort Posts:    
   08-05-2005, 3:17 PM
BillNew is not online. Last active: 4/2/2007 10:09:46 PM BillNew

Not Ranked
Joined on 02-03-2005
Posts 7
Menu Problems in VB.Net with Me.TopMost...

Attachment: SharpUI-Menu-Bug.zip
Hope this helps someone else fix this problem.

Using SharpUI version 1.2.0.1253 (SP2)...


... If I modify the VB .Net "Toolbar Features" program:

- If I use "me.TopMost = True" when the main form loads.

- Then, just before loading an "About" Form, I used "me.TopMost = False". This allows the "About" Form to be seen instead of being brought up behind the main form!

- When the "About" Form is unloaded, then I used "me.TopMost = True" to reset the Main Form so it is  on top of other forms.

This causes the SharpUI Menus to seeming no longer work. When running the Example Code, Seems that somehow the menus are "behind" the main form. See the included program and specifically focus on the "Help" menu.

Modified the "VB.Net ToolBar Features " Sample Program. This is representative of what the problem that I have in my application program.

I need to fix this problem as soon as possible. The application program that I'm writing near completion except for this "big" issue.

Any suggestions or hints on how to fix this problem?

> This is being addressed as: CR#17598.

For further clarification, I use this in the code to show my "About Form" from VB .Net 2003:

.
.
.
Me.TopMost = False
'
' Load the About Screen but ONLY 1 copy at a time.
Dim myAbout As New frmAbout
'
' Wait until About Screen is exited before continuing on in Main Form.
myAbout.ShowDialog()
'
' Flush About Screen
myAbout.Dispose()
'
Me.TopMost = True
Me.Refresh()
.
.
.

If I don't use "Me.TopMost = False" before loading the About Form, I end up with the About Form being behind the main form and can't close the About Form normally.

Tried making the main form hidden with "me.hide" followed by using About Form using the .showdialog method then using "me.show" on the main form but that didn't work properly either.

Bill


P. S. Due to the nature of the application that we are developing, the main form MUST be on top of all forms.

[:D]


   Report 
   08-08-2005, 10:04 AM
stevena is not online. Last active: 9/26/2007 10:16:34 PM stevena

Top 10 Posts
Joined on 08-28-2004
Posts 2,700
Re: Menu Problems in VB.Net with Me.TopMost...

Attachment: suiAboutTopMost.zip

Bill,

 

Thank you for the reply.  Unfortunately, using the About form's ShowDialog method has consistently worked well as a work-around in my testing.  I have attached the small running sample that I have used to test this with.  Could you please modify this sample or provide step-by-step instructions that I can use to see the problem you are experiencing when using this approach?

 

Thank you for any additional information you can provide and I look forward to hearing from you.


   Report 
   08-10-2005, 2:39 PM
BillNew is not online. Last active: 4/2/2007 10:09:46 PM BillNew

Not Ranked
Joined on 02-03-2005
Posts 7
Re: Menu Problems in VB.Net with Me.TopMost...
Steven,

I have e-mailed you a revised version with "me.topmost = true" and "me.topmost = false" in the appropriate spots.

Same Problem with the menu being behind the form after the about form is launched, then closed.

Need to release the program that this code is in within the next 2 to 3 weeks.

I'm looking hard for a way to fix this issue.

Thanks for your help,
Bill

   Report 
   08-10-2005, 4:33 PM
stevena is not online. Last active: 9/26/2007 10:16:34 PM stevena

Top 10 Posts
Joined on 08-28-2004
Posts 2,700
Re: Menu Problems in VB.Net with Me.TopMost...

Attachment: suiAboutTopMost.zip
Bill,

Thank you for the reply.  I
have attached a modification of your sample that should help you work-around this issue. Essentially, the modification I made is to not set the main form's .TopMost property after the ShowDialog method is called.

Thank you for the additional feedback. I hope this helps. Please let me know if I can be of further assistance. Thank you.


   Report 
   08-11-2005, 4:30 PM
BillNew is not online. Last active: 4/2/2007 10:09:46 PM BillNew

Not Ranked
Joined on 02-03-2005
Posts 7
Re: Menu Problems in VB.Net with Me.TopMost...
Steven,

Thanks for your help.

I'm still wrestling with how to do it in the "real world" environment where my main form has to be on top when the other forms in the program have exited back to the main form.

If I never load another form from the main form, there is no problem with the menus being behind the main form... But I cannot ask the end-user to exit the program and restart if they have used one of the configuration forms or the about form just to fix this problem.

There is no choice on the "Top Most" for the main form due to the nature of what the program is designed to do.

Therefore, I'm still looking for a viable solution to this issue.

When I find a solution, I'll let you know.

Thanks again,
Bill

Embarrassed

   Report 
   08-11-2005, 5:04 PM
stevena is not online. Last active: 9/26/2007 10:16:34 PM stevena

Top 10 Posts
Joined on 08-28-2004
Posts 2,700
Re: Menu Problems in VB.Net with Me.TopMost...
Bill,

Thank you for the reply.  While there is not a time frame in place for this issue to be resolved please know that our development team is working diligently to resolve this.

The best work around I have found is to not set the main form's TopMost property after the "about form's ShowDialog method call.  In the mean time, if you find a work around that works better for you than this one please let me know. 

Thank you for all of the feedback.
   Report 
   08-11-2005, 5:26 PM
BillNew is not online. Last active: 4/2/2007 10:09:46 PM BillNew

Not Ranked
Joined on 02-03-2005
Posts 7
Re: Menu Problems in VB.Net with Me.TopMost...
Steven,

I appreciate the hard work you all do on SharpUI and all your other projects.

I also know that you all are doing your best to work on new projects and fix bugs in the current products.

The workaround in the example you sent back doesn't keep the main form on Top like the requirements for my project.

Perhaps a solution is to take away the menus and use icons for everything but that too has shortcomings.

Oh well... the search for the solution continues...

Thanks,
Bill

[:S]

   Report 
   08-16-2005, 8:48 PM
BillNew is not online. Last active: 4/2/2007 10:09:46 PM BillNew

Not Ranked
Joined on 02-03-2005
Posts 7
Re: Menu Problems in VB.Net with Me.TopMost...
For now, We went with the standard VB .Net 2003 menus for now. It works but just doesn't look as good as with the SharpUI Menus.

Wink

   Report 
   08-17-2005, 9:23 AM
stevena is not online. Last active: 9/26/2007 10:16:34 PM stevena

Top 10 Posts
Joined on 08-28-2004
Posts 2,700
Re: Menu Problems in VB.Net with Me.TopMost...
BillNew,

Thank you for the update.  We will let you know as soon as a build with this issue addressed in it is available.

Thank you for all of the feedback and please let me know if there is anything else I can do to assist you.  Thank you.
   Report 
   04-02-2007, 10:34 AM
BillNew is not online. Last active: 4/2/2007 10:09:46 PM BillNew

Not Ranked
Joined on 02-03-2005
Posts 7
Re: Menu Problems in VB.Net with Me.TopMost...
Was CR#17598 ever addressed?

I haven't seen it in any recent releases as being addressed.

...

   Report 
   04-02-2007, 12:33 PM
ericc is not online. Last active: 4/4/2009 4:32:14 PM ericc

Top 10 Posts
Joined on 03-01-2005
Posts 1,857

DDStaff
Re: Menu Problems in VB.Net with Me.TopMost...
BillNew,
    Thank you for your question. This issue is addressed in the latest build available (1285). Please ensure you are using the latest build available. You can find the update here.

Please let me know if I can be of further assistance. Thank you!
    Eric


   Report 
GrapeCity » Product Support » SharpUI for .NE... » Re: Menu Problems in VB.Net with Me.TopMost...

Privacy Policy | Copyright © 1997-2012 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.