|
if (DateTime.Now > _dateToStopWorking) then Close()
Something like that will work fine.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
thanks for the reply,
i already had the same idea, but we have to think about installation , if application is already installed at any time , it should not allow to install it again, (ie, uninstall current & then reinstall again)
how can block this..
|
|
|
|
|
One way is to hard code a date in your application and every time the application get's focus check on the date.
I used it once for a similar situation, but i did it with an encoded end date in the form of serial number. So my application decoded the serial number, that i saved in the Application's Properties and validated the date. If the date was passed, a msg box was shown and the application quited.
Hope that it gets you inspired, if someone else have nice ways, leave a reply.
|
|
|
|
|
thanks for the reply,
i already had the same idea, but we have to think about installation , if application is already installed at any time , it should not allow to install it again, (ie, uninstall current & then reinstall again)
how can block this..
|
|
|
|
|
I Known that there is an application called "IEActivityMonitor" can do this well and the source code is in "http://www.codeproject.com/useritems/IE_Activity_Monitor.asp"
However the source code is an old C# version. When I use Visual studio 2005, the source code is converted and do not work.
I hope someone can help me to write an VB version with the same functions.
Help + Help
|
|
|
|
|
In fact, if you put an IE control in your app, and handle it's events, the events will get fired for any instance of IE running on the PC. So, that's all you need to do.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Wow - is IE a static class then?
You always pass failure on the way to success.
|
|
|
|
|
I don't know how it's set up.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I am a biginner to VB.Net 2003.
I am warking with VB.Net 2003 and Sql server 2000. I want take back up my database every day. How can I do this one. Can any send Coding for back up.
|
|
|
|
|
Use This query
dim _ssql as string
_ssql="BackUp Database myDbase to disk = 'D:\Back\myDbase.bak' with
init", clientCon "
Here myDbase is the Database name and clientCon is the connection object
|
|
|
|
|
Hi,
I have developed an Add-In for VS 2005 using VB.NET. I use the following code to add commandbar to the toolbar of the Studio.
cbrCmdBar = CType(_applicationObject.Commands.AddCommandBar(strCBarName, vsCommandBarType.vsCommandBarTypeToolbar), CommandBar)
Now I have following 2 questions:
1. The toolbar I created as part of add-in is floating rather than being part of the existing toolbar of the Studio IDE.
2. My Addin toolbar has 5 buttons. It works ok when the first time I open Studio. When I close Studio and re-open, I find that one more instance of my add-in gets created. The first toolbar (due to the first instance of IDE) does not show any buttons and the second toolbar has all buttons. This way if I close and re-open the Studio, say 10 times, I get 10 instances of my add-in toolbar. Of these 10, only one has my 5 buttons and the rest all instances are without buttons. It seems that when the IDE is closed, my add-in toolbar is not getting destroyed.
Any reason for this behaviour?
|
|
|
|
|
I've never written a VS add-in so I'm no expert. It sounds like you code is hanging on to an object that it should have destroyed or Disposed of, but never did, or didn't do properly on shutdown.
|
|
|
|
|
Hi Dave,
I have the same feeling that the object is not getting destroyed though I have set the object to Nothing. Any other reason?
Regards.
vj
|
|
|
|
|
No idea. Like I said, I've never written an Add-In. I don't even know if there is an event you have to handle to get signaled, or if you must implement IDisposable, or something else...
|
|
|
|
|
In a windows form... I'm using WebBrowser control for navigate but i need put the credentials proxy. How can i introducing there?
Thanks
|
|
|
|
|
There's no built-in way to do this. The WebBrowser control is pretty much a wrapper for an Internet Explorer window. The WebBrowser control will use the same settings as define in the Tools/Internet Options menu of Internet Explorer.
|
|
|
|
|
hey there !
pls save me now.
i want to run this code below at run time : (after we load form already)
1. i have one text box that contain code below
dim Str$
for i as integer=0 to 5
for j as integer=0 to 5
for k as integer=0 to 4
str=i+j+k
listbox1.items.add str
next
next
next
2. one listbox for get the result
3. one command button for click to execute code in the textbox
i wait for all of ur reply 2me na . thanks in advance
regard from
spider anatha
|
|
|
|
|
I don't think you can execute code dynamically in classic VB. You can do it in VB.NET though.
Paul Marfleet
|
|
|
|
|
It can be done in VB.NET, but not VB6.
This is called "Dynamic code compilation[^]". Be warned, the concepts involved are not for beginners.
|
|
|
|
|
hi all,
I want converted from microsoft word multiple columns to single columns using vb.net.
which concept i will use .what tool i can use.
vbg
|
|
|
|
|
hi ,
I dont know how to delete the table in every page .pls tell me.. how to delete the table.. and then how to convert the single columns from multiple columns . using vb.net
anybody give me idea for me....
vbg
|
|
|
|
|
Try reading the Office interop library docs instead of flooding the boards.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I am trying to develop an application, regardless of it's function i need to do one thing. On the task bar, buttons representing the programs resize between two points, usually between the end of the start button (or quick launch) and the start of the tray (or language bar). What i want to be able to do is change these points, particularly the right most point, so that buttons resize between the left point and another point, leaving an unused space on the taskbar.
This may be a registry key or something, i have tried many google searches including those around desk bands but have not found exactly what i'm looking for. If anyone has any idea if this is even possible or has any experience in this field, please reply, think this is about the fourth time i've asked this with no response, even a simple, "it might not be possible" would be nice.
If a deskband is the only option can someone point me in a direction other than this site, cause the C# example here is laced with frustrating glitches.
|
|
|
|
|
The ANZAC wrote: This may be a registry key or something,
No, it's not. The TaskBar is made up of DeskBands between the Start button and the System Tray. Actually, the try is another type of DeskBand. The QuickLaunch icons sit on a DeskBand. The appication icons sit in another DeskBand. If you added something else to the TackBar, it goes on another DeskBand.
My point is that the DeskBands are self sizing, relative to the other DeskBands. The "start point" and "end point" are the ends of the bars themselves, not points on the TaskBar between which icons sit. In order to resize this area, you have to resize the DeskBand, within the limitations set by the DeskBand. For instance, with just the default DeskBand's on the TaskBar, you cannot move the right side of the application icon DeskBand. It's locked to the left side of the System Tray. You also cannot resize the SystemTray either. You can only move the right side of the application icon DeskBand.
The only way to move the right side of the application icon DeskBand is to add another DeskBand between the application icon DeskBand and the System Tray, and resize that band appropriately.
I don't have any examples, not do I know of any "good" ones. It's just going to take some research on your part to find them. I'd start with Googling "C# DeskBand".
The ANZAC wrote: think this is about the fourth time i've asked this with no response,
This is probably due to the fact that not very many people have any experience with the TaskBar. Support on this issue is going to be very sparse, no matter where you go.
|
|
|
|
|
yeh pretty frustrating. That's a decent answer thankyou. Finally someone responds. Ok will get into the research more, it's not an easy thing to track down and kill tho, a decent desk band sample that is. They are very sparse, evin in the more complex language forms, and virtually none exist in vb except for people suggesting a conversion of some dodgy c# one. Thanks again.
|
|
|
|