ok, i want to add a contextmenustrip to my program's button on the taskbar.thats the program, over its button.like, firefox, (and every program) it has its button down there and if you right click, the right click menu comes up with stuff like "close" and "maximize" and "restore" etc. how do i add a contextmenustrip to my program's button?also, my notify icon does not go away after i close out of my program till after i roll the mouse over it.strange... o_0with my web browser, i have it in form2, and i need the updates folder in that picture, to open form2, navigate it to the updates page, and then take off the scroll bars. and i have it all set up, and it works if you use the updates button on form2, but it wont take the scroll bars off if i use the updates button on form1.
i am also using the following code to try and scroll whilst zoomed in
Inherits System.Windows.Forms.Form Private m_PanStartPoint As New Point Private Sub picbox_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PicBox.MouseDown 'Capture the initial point
[code]....
I have set the panel to autoscroll and added scroll bars but they do not scroll far enough... They only scroll about 2cm.
I have an mdi form and few child forms. I have set the autoscroll property to false, size to (640,480) for the mdi form, but still the scrollbars are shown. I am setting the width of the child forms on mdi resize event to the width of mdi parent. My requirement is that the mdi parent should not show scrollbars at all for the entire life of the application. What are the properties that I need to set additionally?
I have absolutely no clue why my notify icon will not appear. I use notifyicon1.visible = true on the form's load event, but it seems to not be working. I have tried every single thing possible. Does anyone know what is going on???"When the going gets tough, the tough get Chuck Norris"
I made a small app that uses a hidden form and shows a notify icon to do some things with, strange thing is that the notify icon is not visible. I changed the opacity of the form back to 100% to make sure the form is open and it is. I also step through the code to make sure it was executing and it is. I also published the single form app and installed it on another machine and the same problem exist as the debug machine.
I made another test app with only a form and a notify icon and in the load event of the form, I put the same code minus the if statement and still no notify icon.Is this a bug in VS08 Pro?Heres my code
NotifyIcon1.ShowBalloonTip(10000000, "Reminders", "No settings have been entered", ToolTipIcon.Warning)
Ive recently started using VB and i have an image larger than the imagebox size. Is there a way i can add scroll bars and zoom tools? or just the scroll bars would be enough.
My problem is that when I click continiously the bottom button of a vertical scroll bar (datagridview) the datagridview maximises and expants to all my screen.
i just added scroll bars to my windows design application but the funny thing is i have no idea of how to assign code to them. ps: the bars are vertical and horizontal.
i have two rich text boxes of same height.i need to link the vertical scroll bars of both rtb so that when 1 scroll bar moves,other move simultaneously in same direction,by same distance.or else i wish to know how to use a vertical scroll bar control to move richtextbox data.so that i can connect both textboxes using the same vertical scroll bar control.
I am creating some help files by using a TabContol box, on one of the tabs I need to have the scroll bars to be able to scroll down to see all the info.In nearly all software packages that I know of, you can also use your mouses' scroll wheel to move the scroll bars. This is not happening for me in this particular situation. I have looked for a setting in the TabControls properties settings, but cannot find anything to enable the mouse to move the scroll bars.
Is there a way to automatically show scroll bars on a multi line edit control only if they are actually required?
i.e. If the text is small enough to fit in the edit box, don't show scroll bars and if the text doesn't fit show the appropriate scroll bars (i.e. vertical, horizontal or both).
Of course I'd like this to be all automatic and not have to recalculate the size of the text myself every time the user adds or delete a character.
hi there, i have a problem with my picture box which has the facility to zoom and pan with scroll bars, when i zoom in on the image then move the scroll bar down and leave it there and then click my 100% zoom button, the image is only just showing at the bottom of the screen and it is movable so you have to drag it into position when you shouldnt need to because it was fixed.
I have a picture box that is wider than the screen, with a stretched image. Can I put scroll bars on this picture box? I tried making the form as large as the picture box (which is 3840 x 2160) and then just move the form sideways by clicking and dragging on the control box, but the form will not go larger than 1940 x 1100. Can I put scroll bars on this picture box, or is there another technique I should use?
I've been successful with this in VB6. The VS2005 notifyicon class is certainly much nicer and much improved.I've implemented a notifyicon and it's working as expected with one exception.
I have been working with the Notify Icon to make it easier for some who prefer minimizing an application into the notification bar rather than the task bar. I have a drop down item that allows the user to Show in Notification area if checked. If it's not checked, then the form reverts back to default with the task bar. However, when this is checked and I minimize the form, I can not open the form from the notification tray. The problem is when the notify icon is visible and clicked, I need it to run code. If the form is minimized, I want it to show the app when I click the icon.
Here is my code: Private Sub ShowInTaskbarToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles ShowInTaskbarToolStripMenuItem.Click If ShowInTaskbarToolStripMenuItem.Checked = True Then NotifyIcon1.Visible = True [Code] .....
recently been working on an application and added a minimize to tray feature. An update to the program made it so I could run multiple instances of the application without them interfering with each other. Which is great and what I had planned. BUT now when more than 1 instance of the application is running I have two notify(tray)icons on the system tray.My question is how, if its even possible, would I make both minimize into the same tray icon and just add a contextmenuitem to the right click menu (listing the name of the windows that are minimized). I hope thats not too confusing.I know how to add the contextmenuitems that won't be an issue once I can figure out how to get the windowstate of the other instance of the application.
instance1\..................................................._open instance1.windowcaption ...............\_______trayicon>contextmenu__/__open instance2.windowcaption .............../................................................\___close all instances
im having problem with this code, what i want it to do it go on the site nd if it finds the word online it switches the text so say it directed to google and the word online is somewhere in the html code of the site, the app should then change label 5 to online BUT i get this error
"Could not find file 'C:UsersOwnerDesktopAMi BETAAMi BETAinDebugwww.google.com'."everything i want the notifyicon to do is working but i only want it to pop up once but every time the timer ticks it pops up
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ServerStatus.Tick
I Have a picture box on my project, but the picture that I have is larger than the box and I want to keep the SizeMode normal so How do I put scroll bars on my pictue box.
Also I would like to be abe to zoom in and out on the picture how would I do this?
I noticed that when the app closed the icon remained on the taskbar until the mouse was hovered over it, so added this:- If Not AlarmClockNotify Is Nothing Then AlarmClockNotify.Dispose() End If .. and that did the job.
Then I noticed that if the balloon was showing at the time the app was closed, the icon went - but the balloon stayed, so added this:- If Not AlarmClockNotify Is Nothing Then AlarmClockNotify.Visible = False AlarmClockNotify.Visible = True AlarmClockNotify.Dispose() End If
and everything worked fine until the app was closed WITHOUT the icon showing (only dislays if an alarm is pending in the next x days) - then it throws and 'object reference not set to an instance of an object' - odd because it passed straight through the 'not is nothing' If statement.
I have added a minimize to tray function into my webbrowser and it makes use of the notify icon control. Now I know my code isn't flawed as it works in vista in xp but not in 7 (The icon simply is not in the tray).
I have a application which is written in background worker. Inside the background worker i am creating the multiple threads . The application has one notify icon. When i creating threads the notify icon gets duplicated for each thread. Suppose if i am running three threads means , there are 4 icons in the system tray.