I've written a simple program to hide the taskbar clock and close upon load and I've read a lot of different articles on how to close a program correctly and read a multitude of different answers so I thought I'd just post the code and see if it is written cleanly. Also, I am in the process of trying to get the taskbar to refresh after the hide code has ran and how to refresh it would be great too but is not the main question of this article. I'm using Visual Studio 2008 using the Visual Basic Development settings and I have vista 64-bit. Here's the code:
How can I hide the program from right side of taskbar and keep only the left side icon, like msn for example does when you "close" it. Here is a explaining picture also.
I've always felt like SecureString was a little odd, but assumed most of my issues with it were due to security problems I don't understand. Today I decided to sit down and teach myself about it, but I've hit what seems like a fatal snag.
The scenario I envision is "user enters password into text box, that password is hashed and compared to a stored hash". At first I was worried that the text box contained the string, but then I realized you could roll a custom text box that uses SecureString as its store. Cool. It's the "that password is hashed and compared..." part that is giving me trouble. [code]...
I have a program running called MyApp now i want to create a another form/app which when i press the BUtton1 it hides the taskbar icon of the program called MyApp. Note I do NOT want to hide the actual form of MyApp just the taskbar entry
I want to hide the taskbar when my application runs, so i can get a full screen view of the application form. I have a code but it doesnt seem to work. It's for my project. I put the declarations in the global declarations part. Declare Functions also i put separately. The rest of the code i put in a button click.[code]...
I'm writing my own volume-controll/equaliser program. When my program is launched, I want the windows sound-icon to disappear.Internet sais it could be done by regedit using:
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionAppletsSysTray] "Services"=dword:0000001b But when I try it, the icon stays. How do I make the sound icon dissappear in my VB .NET
so so far I've gotten my console application to minimize itself, but I want it to be totally hidden: so I want to disable it from showing in the taskbar too. With a Windows form this was easy, but I'm not so sure about console apps.
I have a program with which I can open a second form on a beamer, this works perfect, but what I do notice it that on the taskbar (I have windows 7) I see the main icon of the app but also the form that is created.What I would like is that the second icon is not displayed on the taskbar thumbnails, this way I can't close the second form by the X but only by a button on the main app.
I have a main form that has a button with which a smaller form is shown. Think of the smaller form as the Find/Replace dialog in many applications, such as Notepad. It's important that the form is (what I believe is called) modal. What I mean is that it always stays on top of the main form. I ensure that by calling the Show method with "Me" as the owner argument. Whenever the small form loses focus it will not disappear into the background but stay visible (albeit out of focus). If you don't understand open up Notepad and have a look at the behavior of the Find/Replace dialog.
Here's my problem: instead of actually closing the form when the X is pressed, I want it to simply Hide itself, so its position and the state of any controls (checkboxes etc) is preserved automatically.To achieve this I simply cancel the FormClosing event and Hide it:
vb.net Private Sub Form2_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing
[code]....
To show the form, I use the following (note the (Me) to make the main form the owner of the form; this ensures that it remains visible even when it is out of focus):
vb.net Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Form2.Show(Me) End Sub
Now. When I run my project, and open the Form2 (small form), then hide it again (by 'closing' it), I can no longer close the main form (Form1)! It seems the main form cannot close when the small form still exists (albeit invisible)...?? When I don't use the Me argument in the Show method, I don't get the behavior I want. I know I can set the TopMost property to True but that will also cause it to become visible on top of all the other forms, even windows not part of my application.
VB.NET Private Sub FrmSettings_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing e.Cancel = (e.CloseReason = Forms.CloseReason.UserClosing)
[code]....
as wpf's Close event just gives me e.Cancel and no closereason?
I have a spash screen on my project, this isn't just for effect but to read data from a file before my main project is started.the issue is that i cant seam to close my splash screen.....here is the code from my splash screen.[code]....the issue is that mainform does show, but i cant close or hide the splash screen,
here i am dealing with only two form,so if i add form1.close() in the form2 button click event then it might wok. but what if i deal with many forms and i need to show and hide them several times?
I have a simple Windows Form that hosts property controls at runtime. When the user clicks Close [X] I want to keep the window and its contents alive rather than killing it by handling the FormClosing event, canceling the event and simply hiding the form.
That's fine but at close of the application I need to actually close the window. I implemented the below but it feels kludgey. Is there a simpler, more clever way to handle this situation? (The form's controller calls KillForm explicitly after it receives a closing event from the main window.)[code]...
I have to create a decorative digital clock, using VB2008
So far i have inserted a Picture Box control with a picture for the background of the form. I was told to use values Hour, Minute, and Second as Hour(Now), Minute(Now), and Second(Now ) to display a Digital Clock.
Is there a way to have a form within a program that doesn't dispose when you close it? I have a form in my project and a menu item to show it. When I declare the form globally and show in menuItem.click, then the click event breaks because the form no longer exists. When I declare the form within menuItem.click, then this creates a new form every time I click and that's not what I want.
I am trying to write a small program that shows a clock using a timer in vb.net, I want the clock to display the time and date as a binary display i.e. if it's 10:01:21 the clock would display boxes or buttons in rows going from 1 to 2 to 4 etc upwards and changing colour when at certain times. the example time above would be a button for 8,a for 2 to make the 10 o'clock, a button for the 1 minute and a button for the 16, 4 and 1 seconds making 21 seconds.
I'm a totally newb to VB and I want to do this. I want to do display system clock into a textbox. The trick is that I want it to be synchronized with the Windows XP clock. I want to have something like +/- 100 ms accuracy.
Each 'second' change will trigger an output pin to ground into the parallel port. This is very important that the 'second' change in the same time the Windows XP second change. Do not care about the parallel output thing, I'm nearly there. My main concern is the synchronisation with Windows clock.
In my code, I've added a counter that increment +1 at each 'second' change. So, when the 'n' value will reach a determined value, it will trigger another event.
[Code]...
I searched on the net and I found a thing about NIST time server.. Maybe this could be an otpion, but I have even no idea about how using it... I'm a total newb, but I'm ready to learn. So, please use simple language, no hard to understand acronym etc.
I have developed a windows based clock program using C#,which has all clock functions like: Show time in Digital/Analog Format. Set up Alarm. I want its service to start with windows boot up, so that I don't have to manually start it every time I logon to Windows. I would like to know how do i put that service in start up? For Example: I want the service "ClockService.exe" to run with windows start up, kindly let me know how do I do it.