Setting Notify Icons And Threads For Form In App?
Jan 2, 2012
I am making an application which has a form that I have set a notify icon for, I load this form at startup and then hide it. Then I have another form that the user can load (from the notify icon) which loads and runs a sub on another thread using the following
Dim d As New MyDeligate(AddressOf ProcessReminders)
d.BeginInvoke(AddressOf RemindersComplete, Nothing)
When this is executed another notifyicon appears, and then when the form closes it stays. I also notice that the memory usage remains higher than when the form loads. How do I prevent this, I am not sure but I believe that by creating the new thread it recreates the initial form and then it is not destroyed.
View 5 Replies
ADVERTISEMENT
Jul 24, 2009
I have found several examples of how to set text of a textbox across threads, but no examples of how to set other properties like the checked on a checkbox. What i am doing is listening on a serial port for data received.When the port receives the data I want to check a character in the string to see if it is a 1 ot 0 and set the checkbox to the proper state.I cannot figure out how to do that across threads.
View 4 Replies
Nov 25, 2009
I am creating a Html editing application using Microsoft Visual Basic 2008 Express, and I want my application to have two kinds of documents; a project, and a template project. How can I make it so these documents all display an icon that I have made? Also, how do I set them to open in my application by default, when the program is installed, or first run?
View 1 Replies
Mar 20, 2010
I would like to make a image in the form representing the icon and a label below it to represent name but is there a easy way to do this.
View 2 Replies
Nov 21, 2010
I am writing a program in VB2010 Express that handles serial port communication. All subs and functions that handle writing to, and reading from the serial port are in a module. These subs and functions are typically called from a form, e.g. by pressing a button. The command is then sent to a device attached to the serial port, and this device replies with a number of bytes as a result. A 'ReceivedDataHandler' is used to handle the serialport.datareceived event. [code]....
View 6 Replies
Nov 15, 2011
i'm trying to get the code below working and for the most part it is but when you click the notify icon, the form shows but it doesnt come to the front nor does it get focus
Private Sub frmMAIN_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LostFocus
Me.Hide()
[Code].....
View 2 Replies
Jun 9, 2011
I want the form to hide when I click on the minimize button, then the notify icon will show up on the system tray. I have this piece of code:
(ntfLibSMS is the name of my notify icon)
Private Sub LibSMS_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
[code].....
View 5 Replies
Feb 5, 2010
i need to show linklabel in notifyicon tooltip ballon..if its impossible can i show smal form like tool tip top of the NotifyIcon on the taskbar
View 2 Replies
Jul 3, 2010
Simply saying I've added an Notify Icon to my project and then added context menu showing up when the left mouse button is pressed. The problem is that with the context menu some blank form is showing in the taskbar. There is no such form within the project.Does anyone know why it may be happening or how to get rid of the effect? I might add that I have other context menu attached for mouse right click button and it works fine, no blank forms and such showing on the taskbar it's just the left mouse button that works that way.Here is the code that I am using to show the menu:(the visible state to false is necessary for the other menus not to pop up with the one i want... unless anyone knows better method)
Private Sub NotifyIcon_Click(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon.Click
If e.Button = MouseButtons.Right Then
[code].....
View 5 Replies
Feb 13, 2011
TortoiseSVN and Dropbox both have Windows shell extensions that make file icons within Windows Explorer show a small icon beside the main one, showing the file's status - has it been synced, etc How can I make my application show icons beside files like that using the Windows API? Or is there some file attribute to do that?
View 1 Replies
Oct 19, 2011
I just had a new, last-minute idea on to take on a task, so I am running to StackExchange for quick help.
What I want to do is execute a series of methods right in a row, each in their own threads. I want the application to wait until all of these threads are completed, after which the program will resume. It also has to use managed threading (thread pool).
What quick examples could you provide to help me along the way? If it's too complex, what things should I know about so that I can Google it on my own?
View 1 Replies
Dec 30, 2009
I have a main thread which is designed to be a batch processor - it spawns a series of 'child' threads from a loop (which can vary in terms of the no of items) - see below
[Code]...
However, each of the 'child' threads could take anywhere from milliseconds to about a minute to process - depending on the complexity of each calculation. There may also be a large number of child threads - e.g 100s. Creating large numbers of child threads is not efficient. I therefore want some way to effectively queue each child thread (and cancel if the process is taking too long to complete). Autoevents seems like one way of doing this, but the only examples I can find seem to assume there are two different processes on seperate threads, not one process being repeated.
View 4 Replies
Oct 22, 2009
I have an icon in my resource and I call it using
Dim
MyIcon As Icon = My.Resources.Myiconname
but I would like to display this icon into the form and I can't find the way to do it.
View 7 Replies
Jan 17, 2009
I have set up a notify icon for my form. I want to make it so that when the user clicks the close button that it doesn't close the form it just takes it to shows the notify icon. They can exit the program from the notify icon. Can someone tell me how to keep it running?
View 2 Replies
Oct 17, 2011
I have been working on a small side project that will read in from a serial port and send off a email depending on what it receives. At the moment I am stuck with a problem of it telling me it cannot access the text box as it was created on another thread. Does anyone know what I can do with this error? I have tried using invoke statements but it does not seam to work. [code]...
View 2 Replies
Jun 8, 2010
I've just recently figured out threading, and how to use it. I was even able to figure how to make a background thread modify the text property of any form control that has a text property.
I figured if you could specify the name of the control whose Text property you want to modify, it could be done easily, and I was right[code]...
Is there a way that you could do this, but eliminate the need to specify the control type as a parameter and maybe have the application determine what control you're trying to use by it's name?
View 2 Replies
Oct 31, 2009
I have created a form and display alot of icons on the location that I want. After I displayed several icon on the form then I would like to delete a couple of them but I could not find the history of location or a link to that icon so I can not delete it.
Private Sub Form1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseClick
CoorY1 = 410
CoorY2 = 425
[Code]...
From the Form1_MouseClick I link to the MyPicClicked with g_CoorX1 and g_CoorY1 but it only give me the location that next the the last icon I display. how to keep an index or record or anything of the location that I display.
View 11 Replies
May 26, 2009
Hi
I have a thread that it calling many processes.
While the processes are executed (spends some seconds or minutes in completing all the tasks) I show form "Please wait to complete all tasks".
But one of these processes I have to show a form because the user has to choose a few data. But the problem is that this form is showed minimized.
Already I have tried to show it maximized and to bring it to the front but it does not do it.
how I can show this form to front and maximized?
My actual code is:
f= New frmLPlantillas
f.WindowState = FormWindowState.Maximized
f.BringToFront()
If f.ShowDialog() = DialogResult.OK Then
value1= f.xxxx
value2= f.zzzzz
value3= f.aaaa
value4= f.bbbbbb
Else
Return False
Exit Function
End If
Thanks in advance.
View 5 Replies
Jun 16, 2009
I have a program where I'm trying to clone icons in a folder and represent the files in a listview on a form. I've tried using msdn, google and F1 help to figure this out, but I don't seem to be getting it.Here's the code I have so far, but I'm getting error that object not set to an instance of the object.
[Code]...
View 1 Replies
Apr 7, 2010
When I open a form in my application and I maximize it, the Icon and the ControlBox are merged in the menu of the MDI parent where I open the form in. That is perfectly normal.
But when I close that form and open an other and also maximize it, I get two icons and two control boxes in my menu. When I close that form and open an other again and maximize it on it's turn, I get 3 icons and 3 control boxes in my menu. When I close the maximized form shouldn't the icon and the controlboxes dissapear?
View 3 Replies
Apr 29, 2010
I just made a rapid file transfer form for my photos.In which I drag photos into a listview with my destination folder set.I assign each individual file transfer to a new thread. This works very fast as compared to the standard drag n' drop.
View 2 Replies
Jun 23, 2011
When multithreading in VB, if you close the form while different threads are running, the process itself will not end. Is there a way I can force all threads to end, or end the process like in the Task Manager, when the form is closed?
View 2 Replies
Feb 1, 2010
This is what I have..Dim frmSettings As New frmOptionsfrmSettings.ShowDialog(Me)frmSettings is a settings form that you can choose the color for background of form1(Me)
View 1 Replies
May 22, 2012
I want to know is that possible To Copy and create a Form (all Control) From setting. What I Means is Programmatically crate a Form that can use in anytime in Program. The Problem is, I have a form that will dynamically create all related control like Button, Text box, radios button which is read the setting from Database, But Now the problem is there are many control in form and cause loading lack because the loading of those control. What i need actually is make that loading faster.
View 1 Replies
Nov 9, 2009
I would like to save a form to complete in the properties of "My.Settings" Is this possible? [code]where my.setting.form2 is a system.windows.form. form.it is possible to do that ?
View 8 Replies
May 4, 2010
Form1 shows form2 and form2 shows form3. From form2 I can change the value of the textbox in form1 but from form3 I can't change the textbox value in form2.Please can you look at the application and correct it so I can change the value in the textbox of form2 from form3.
View 3 Replies
Aug 26, 2009
is it advisable to play with the controls to make my form look like this or should i just use this graphic and place it in the background. if the former, then please suggest which controls on the form i can tweak to make the form look like this?
View 1 Replies
Aug 4, 2009
I have a second form that loads when the main form loads. It sits behind the main form, is mainly transparent and does not allow interaction from the User.
Its as if the form is on the desktop, which is what I'm going for.
I set the location of the form to be in the top right hand corner of the desktop. On my PC, which is a 23" monitor, it works and looks great. But when I use my application on a notebook or a smaller screen, the form gets cut off. Why is obvious, because of the screen size differences.
What I want to know is how I might set the form to a more... definitive position. Rather, relative to the size of the screen.
I haven't searched much yet, but maybe there is a way to set the location of the form to a specific location of the desktop, not relative to the size of the screen.
View 4 Replies
Oct 1, 2009
I created this simple textpad program in WPF/VB.NET 200 that automatically saves the content of the forms to an XML file on every keystroke.Now, I'm trying to make the program see the changes on the XML file in realtime.. example, If I open two of my textpads, when I write on the first one, it will automatically reflect on the other textpad.
View 4 Replies
Sep 14, 2011
I've made a ComboBox in my form where I add some classes of my own design. Unfortunately they get a generic name when they are displayed in the ComboBox. How can I set their names in the Form?
Class Cabel
Public Sub New(ByVal IName As String, ByVal IConstant As Double)
Name = IName
Constant = IConstant
[Code] .....
cbCurrentCabel and cbNewCabel are the names of my two combiboxes
View 2 Replies