|
Brad Fackrell wrote:
On the Exit command I use Application.Exit()but I don’t think that all forms are being cleared from memory and the computer still thinks that my application is running.
Not true. All the managed objects you create are destroyed when the startup form is destroyed. The problem comes in when you don't release unmanaged resources, like file handles, GDI handles, various COM objects, ...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi everybody
I' got a problem. I need to get excel comment notes from a cell. I found some examples on the net talking about use somenthing like this: 1) "....Range(a_range).Comment.Text" -> this method also generates an error if the range doesn't have any comment note but if it do then it works; 2) "....Range(a_range).NoteText". They both works good under VBA but under VB are not working properly. Any idea of what's wrong with that?
Thanks!
TK
|
|
|
|
|
Hi
I have developed a windows service in VB.NET. The service is checking a folder for any files that have been created and then needs to launch an application (GUI). The service is working, but I need help on launching the application. When I step in debug in the service, the program steps through the code, but the application I'm try to launch doesn't load. When I use this same code in a normal application, it is working. Can anybody please help me? Is it possible to do this?
Thanks,
Chris
|
|
|
|
|
This question always come up when someone tries to write a Windows Service but has no idea how they really work.
Services run at Windows startup, not at user login. But, like any other application, they, too, must login to Windows, just like any other user, so they can get a security token and have permissions to various system resources. Windows Services, by default, run under a Local System account, but can be changed to run under any user account specifically setup for that service. For instance, by default, IIS runs a site under the ASPNET account that created for it.
Also, services have their own desktop, not the visible one you see as a user. There is no way to "flip" between the visible and invisible desktops either, so don't get any ideas.
In order for the service to be able to interact with the user's visible desktop you have to go into the Windows Services Manager and change the properties of your service to allow interaction with the logged-in user desktop. This is only possible if the service is running under the Local System account though.
Right-click "My Computer", then click "Manage". In the left pane of the window that comes up double-click "Services and Applications", then click on "Services". In the right-side pane, find your service and double-click it. Click on the "LogOn" tab of the Properties dialog that comes up. Make sure that "Local System account" is selected, then make sure the "Allow service to interact with desktop" checkbox is checked. Click OK. That's it!
Your service should now be able to create a new process and have it show up on the desktop.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thank you so much! I tried it this morning and it's working.
Thanks again.
|
|
|
|
|
can any body tell me about the reading of a data element from a data grid's data row. I want to fill every element in the appropriate text box. on clicking of a butting.
FIRE
|
|
|
|
|
YOu can do this like this:
Dim str As String = DataGrid1.Item(0, 2).ToString()
0 - rowindex
2 - colindex
thats it.
Regards,
Asim
|
|
|
|
|
I want to enable TCP\IP protocol, for my client server application, at server side. Becoz i m using MSDE as database. I can enable it through by using SvrNetcn.exe, but i want to enable it by vb.net code or by command line or any other way with out using any User Interface. How i can do that?
SEC
|
|
|
|
|
Considering that you only enable TCPIP in MSDE once and leave it, why go through the hassle of coding it yourself? Just shell launch the thing with the proper command line parameters to do the configuration for you if you really have the need to do this.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi i want to enable TCPIP only once but not by that UI, how i can do this by command line parameters, whats the syntex, becoz i cant depend on my coustomer that he will enable it by that UI of SvrNetCN.exe. so reply plz
|
|
|
|
|
I have no idea how it's done by that utility. There is also no documentation anywhere that describes how this utility works, that I could find anyway. Since there is a .DLL by the same name, I would guess that all the functions requires to do the work would be in that .DLL. But finding out what the functions are, how they work, and what parameters to pass to them will be VERY difficult.
In short, I don't think you'll find what your looking for.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi to all
i use crystal report for show some report in visual basic base on a specefic value that user enter in a form,but when runnig program,the old value in data base showing. how i can refresh report data.
please help me
|
|
|
|
|
hi , first check ur data base , is it ur data base is updating ur new data or not , becoz crystal report directly connected to database
|
|
|
|
|
I want to enable TCP\IP protocol, for my client server application, at server side. Becoz i m using MSDE as database. I can enable it through by using SvrNetcn.exe, but i want to enable it by vb.net code or by command line or any other way with out using any User Interface. How i can do that?
|
|
|
|
|
I want to enable TCP\IP protocol, for my client server application, at server side. Becoz i m using MSDE as database. I can enable it through by using SvrNetcn.exe, but i want to enable it by vb.net code or by command line or any other way with out using any User Interface. How i can do that?
|
|
|
|
|
How to create excel file in VB
plz help me
thanx in advance
KK
|
|
|
|
|
What do you mean? Create an empty xyx.xls file with an Excel format?
If that's the case you have to add the Office reference to your project and use that object. If you browse through it's classes you'll see methods for creating and saving files.
|
|
|
|
|
thanx for your answer
by
KK
|
|
|
|
|
hi
i want to know that is there is any build in class for the zip and unzip if yes name the class.
ddd
|
|
|
|
|
In the .NET Framework 1.0 and 1.1, no, there isn't.
In the .NET Framework 2.0, yes, there is a gzip implementation in the System.Io.Compression[^] namespace. No, you can't use the .NET Framework 2.0 with Visual Studio 2002 or 2003.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi guys !
can any one tell me how can i set the start up time of the timer. i m able of setting the time interval of it but couldnt find setting the start up time. coz of which it starts when the application starts. but i wanna start it on a particular time only.
can any one help me to find it out
thanx
abhinav
|
|
|
|
|
Create a second timer. Each time it fires, check the system time. Once the system time becomes "valid", whatever that is, start your timer and disable the timer that checked the clock.
Keep in mind however that Windows timers are not very accurate. If your timer has a 1 minute interval, and you start your timer at say Midnight exactly - OOh:00m:00sec, then your timer will likely not fire at exactly 00h:01m:00sec. And after say 60 timer intervals, I can guarantee you the timer will not be firing at exactly 01h:00m:00sec.
|
|
|
|
|
A possible workaround is to code in your initialization procedure: (in pseudo code)
timer.Enabled = False<br />
timer.Interval = (difference in milliseconds between now and when you want it to fire)<br />
timer.Enabled = True<br />
timer.Start<br />
Then in your timer callback function reset the interval to whatever you want it to be for regular timer interrupts (if any).
...Steve
|
|
|
|
|
have you checked the properties (and especially the enabled one) ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
The Timers don't support what your trying to do. There is no method of telling a Timer to fire it's event at such-and-such time.
I take it your trying to write some kind of scheduler. The best method is to setup a Timer to fire off every 60 seconds (60000 milliseconds), get the current time and compare the date, hour and/or minute to the scheduled time of an event. If the time is write, fire off whatever process is scheduled, then mark the process as launched.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|