Search:
Type: Posts; User: VB-Mike
Search:
Search took 0.11 seconds.
-
I never did find anything. Probably the only way this could be done is to enumerate the nodes of the TreeView, then write out the XMLDocument node by node. In other words, write your own class...
-
Is it possible to create a session cookie. In other words, a cookie that is created, then destroyed when the session ends or the browser is closed? I tried to create a cookie with no expiration...
-
I have an ASP.NET web application that makes secure calls (BASIC auth) to a .NET web service using credentials supplied via a login form. The problem I have is, how can I keep the user credentials...
-
I have a form that has an "Add" method. The Add method creates a ListViewItem object, then passes it to a class which is instantiated via a new thread. Since the thread has a reference to the...
-
Does anyone have any examples of how to save the values of a TreeView to an XML file? I have found numerous samples of how to load an XML file which I have successfully done. Now I need to write...
-
I have written a .NET web service and a compact framework client application. When running the application I will occasionaly get the error "The response did not contain an end of entity mark"...
-
I have a VB.NET Compact Framework application that talks to a VB.NET web service locked down with Basic authentication. Does anyone know how to pass Basic credentials to the web service so that I...
-
Does anyone know how to get just one item from the eventlog, not a collection. I have the eventlog item index, now all I need to do is pull back that single item and all its details...
Any help...
-
I actually tried that with no luck. However this does work using a collection and looping backwards...
Try
Dim RemoteLog As New EventLog(inType, inServer)
Dim...
-
It appears that when I get the EventLogs back it is getting the oldest first. Any idea on how to get the newest events first?
Public Function GetEvents(ByVal inServer As String, ByVal inType As...
-
I am trying to setup a web service that is called from a .NET compact framework application and returns all the services on a particular machine. I can get this to work by filling an ArrayList with...
-
Deffinitely something I had not thought of! Excellent, thanks for the feedback. I will give this a try. Any other thoughts and opinions would also be appreciated....
-
I would like, if possible to attach to a log file and read newly created data from it. For instance, I have a third party application that on occasion writes to a log file. I would like to find out...
-
In my application I am checking to see if another instance is already running. If so, I pop up a message box saying so. Instead, I would like to restore\maximize the original application from the...
-
Well, I think I answered my own question, but I am not sure it is the correct way. Set my arraylist variable as public in my main module. Now I can access it anywhere. I know this works, but is...
-
I am trying to pass an ArrayList to another form. My assumption is that it will involve a Get and Set, but not sure how to implement it. Any help or code samples would be greatly appreciated!!!
-
I am trying to call the backup method within IIS://LocalHost. This works easily via a VBS script but appears to be a real pain in VB.NET (console application). All this does is create a metabase...
-
I need to share the xmlDocument object between forms, if possible:
Form 1 or frmMain:
Public doc As New XmlDocument()
Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As...
-
Ok, think I have it figured out. Looks as if I need to sleep the application thread for a moment within the loop. I believe the loop was moving to fast and not allowing enough time for the thread...
-
Ok, here is the other wierd thing. Put some output in the loop that calls the thread and the thread code itself:
[1/7/2003 8:22:06 AM] - Thread initialized [TEST-thd_0]
[1/7/2003 8:22:06 AM] -...
-
I apparently spoke to soon. For the most part I am seeing the same issue as before. Essentially, all this app does is read server names, times, etc from a SQL db and reboot servers. The service...
-
Looks like I was going down the correct path, but just not close enough. So far my testing looks good and I am seeing none of the problems that I was before. THANK YOU SOOOOO MUCH, hellswraith!
-
I need to loop through a data reader and spawn a seperate thread for each item within the set. You can see my code below, but it does not appear to work as I thought. This application is running as...
-
I am dynamically adding sub items via the registry to my main menu with code. I need to be able to pass a value from the EventHandler to the sub OpenURL_Click. Is this possible and if so, how???
...
-
I would like to open a registry key, then enumerate through all its values. Need to get the value name as well as the value data. Probably an easy one....
Thanks in advance!
-
Took an alternate path to my logic and placed the code in a do while loop and made the variable local to the thread. Appears to be working really well! Thanks again for the help...
-
I actually need to do the opposite:
"The simplest case is if you have a shared variable that you need to update from different threads. To do this, you can use the System.Threading.Interlocked...
-
One more thing. I cannot dim the variable in the Reboot sub-routine or it will get reset each time I recall the sub from within the sub.
Public Sub Reboot(ByVal State As Object)
If whatever =...
-
Ok, here is my dilemma. I have a multi-threaded application using threadpooling that spawns multiple threads as needed. Inside my sub-routine I have a variable named strCounter. The problem is,...
-
Every config would be different, meaning each would have a different file system on a different server, etc. I think I would have to some how create multiple instances of the FileSystemWatcher for...
-
I need to read in a config file or from a database multiple directories to watch\monitor with the FileSystemWatcher. The number of FileSystemWatchers that gets created will have to be dynamic when...
-
Giving it a try now. Thanks for the quick reply!!!
-
Could someone please fill me on on how to change my form icon based on an icon from an image list? Any help would be GREATLY appreciated!
Thanks in advance.
-
Try this to close form2 from form1:
Public Class Form1
Inherits System.Windows.Forms.Form
Dim frm2 As New Form2()
Private Sub Button2_Click(ByVal sender As System.Object, ByVal...
-
This is not exactly what you are trying to do but very similiar. Hope it helps:
http://www.vbforums.com/showthread.php?s=&threadid=104649
-
I am opening a registry key on a remote server via OpenRemoteBaseKey. The key opens fine, I gather the data I need, and then the user closes the windows form. I am connecting to this server via...
-
Thanks Linda_SA. That more or less did it! Kind of a pain in the rump if you ask me. Too bad you can't simply referance a control on another form just by calling it like VB6. Guess that is part...
-
Got it!
Major: System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).FileMajorPart
Minor:...
-
Ok, that is getting closer. When I look at the version on the exe file it says what I specified in the AssemblyInfo.vb file. However when I set a var to System.Environment.Version.ToString I get...
-
How do you set the major, minor, build, and revision numbers in VB.NET? Looked all over the place in the IDE and cannot find it. Is this done automagically? Also, when I look at the exe version it...
|
Click Here to Expand Forum to Full Width
|