I would like to be able to hide the batch window which is called in the else statement and calls a batch to copy files from a server. I have seen some answers but I have had no success implementing them.
On Error Resume Next
Const ForAppending = 8
Set objFSO = CreateObject ("Scripting.FileSystemObject")
Set objVBLogFile = objFSO.OpenTextFile("C: empVBLog.txt", ForAppending, True)
strComputer = "."
We are attempting to run a batch file that will result in a submission to a help desk ticket system. When we run the batch file from command line on our W2003 platform, it works successfully. When we run the same file, called from our vb program, using shell or process info, it does not. With shell, we can see the batch file being called, but it is not resulting in update to the help desk ticket system. The vendor of the system believes it is a security issue. We are signed on as Administrator while running this. We set security permissions of cmd.exe to include Batch, per KB867466. What else should we be doing or looking at?
I have a thread that loads a control from the database during a long running operation. If I close my window before that thread finishes, it throws a Invoke or BeginInvoke cannot be called on a control until the window handle has been created., when doing the Invoke.I've modified the code to look like the following:[code]However it still hits the Invoke line and throws the error. When debugging stops on the exception, IsDisposed is true, .Created is false, and .IsHandleCreated is false.how do i prevent it from running the invoke line in this situation?
i AM TRYING TO USE A THREAD TO UPDATE SOME CONTROL during runtime using invoke and i get this message.here is my scenario:im trying to build a performance monitor tooli have a mainform that is MDI parent and i create mdi child using
I have a window that opens another window. The opening time of the second window is quit long because the application needs to build a complex interface. The annoying thing is that if the user clicks on the first window this become black as death! Is there a way to prevent this annoying behaviour?
I have been searching for a way to hide a shell window.[code]How can I hide the shell window that something like this opens? The window would be open the entire time the program runs if not hidden it is used to do calculations.
I want to create a button that can hide an exe application. As example: this application will start spider.exe when page loads. I need a button that can hide & show the spider.exe. How can I do it with VB.NET, C#, or Java?
I am writing a program which opens another application with the "shell" command (so it's easy for me to get the procID). Once it is running I want to hide or show it when needed by pressing a button in my program...
I am using a WebBrowser control in my application. When I try to download the file through this control, it will show a pop-up of "File Download". I tried to handle it automatically and hove done this. But now I want to hide this window and want to make whole operation at back end.
I don't really use VB.NET much if not at all, but slowly will change from vb6. [Code] That works fine, apart from when the e-mail is being sent a new window opens for less than a second sometimes (new task) which flashes which is quite annoying. Anyone have any ideas to hide that window flash when sending an e-mail?
I am using a WebBrowser control in my application. When i try to download the file through this control, it will show a pop-up of "File Download".I tried to handle it automatically and hove done this.But now I want to hide this window and want to make whole operation at back end.
i was wondering if it possible to have a condition where lets say you have a column in the datatable called amount and a textbox acting as the filter called say maxamount to set it so the rowfilter when filtering the table will sum the number in the amount column until the number in maxamount is met, then stop and only return the rows where the total sum of the amount column is equal or less than the maxamount value, so i guess if the next row takes us over the maxamount it discards this row and returns the rows previous to it. is this possible using datagridview rowfilter or should i be loooking elsewhere to achieve this?
I have an sql table called Stock with two fields called StockID and StockCode. I want the user to select the stockcode from a combo which in turn populates the stockid for that item into a lable on my form. I have already populated the stockcode into the combo but dont know how to compelte the rest.
Public Class cbo2 Private Sub cbo2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
I have a form called FrmPracDetails which is built up with a List view called LvwColProc. Therefore when you click a field on the LvwColProc it takes you to another form called FrmColProcessing, here you can make changes to certain fields which are also present on FrmPracDetails. What I want to do is when you make changes on FrmColProcesing and Click the Save Button (which calls the Save function)the changes appear instantly on FrmPracDetails. Please note, FrmColProcessing will always be open next to FrmPracDetails. I have tried to put this code in the Save function present in FrmCol Processing as shown below, but it doesnt Refresh FrmPracDetails form. [code]
This JCL_History object is basically a Generic.List encapsulated in a wrapper and has the following method:
Public Sub Enqueue(ByRef value As String) If Members.Contains(value) Then Me.RemoveAt(Members.IndexOf(value))
In my testing I have 2 items in this JCL_History list. When I call that first line of code I posted (the one that invokes Enqueue) with I = 1 I expect the first item to be shuffled to the bottom and the second item to be shuffled to the top.
After the thread returns from Enqueue I notice that this is exactly what happens to my list, HOWEVER if I hit the "step_in" button after the execution of Enqueue I go into the Default Property's set method where Index = 1 and value = and it screws everything up, because the item that got shuffled to the end (index 1) gets overwritten by the item value shuffled to the top.
So basically the set method on the default property is getting called at what I think to be a completely ridiculous time. What gives? By the way I'm running VS2005 on XP.
I have a filesystewatcher object. On it`s event it runs a procedure which fills a treeview with a data. I had problems with treeview methods, but when I run them using invoke method everything is ok. But I still have one problem. When I load the form for the first time, everything works fine. But, when I then close the form (me.dispose, me.close), and load it once again, when Filesystemwathcer start the procedure i have an exception "invoke or begininvoke cannot be called on a control until the window handle has been created" trying to run a treeview.invoke method?
Can you look at my coding and let me know what I'm missing or doing wrong?I have a SSRS report that is called from a ReportViewer control and the ProcessingMode for this control is Remote. The report also has 1 parameter in it's DataSet.In the code I placed a MsgBox to make sure the code is finding the parameter and returning the parameter name. I am trying to stick the value of 10 into the parameter for playerID 10. Data for this player does exist.
I believe I need to add some more code to make this work but I'm not sure what else to add.
When the code executes the report is displayed but no data is shown in the report.
I recently found an awesome tool called "Freemind" that is called a 'mind mapping' program. It's similar to MS Visio but way cooler and more automated.I reeeallly would like to integrate this into a VB.net Form, but how?
Has anyone seen or heard of mind mapping inside VB.net before? Are there programs out there already that work with VB.net or anyone have an example they have seen / built that works?
I'm curious if it is possible to hide a group of text boxes from view in a form until a particular condition is met, and to have a custom set of text boxes for that condition. To give an example; I want radio buttons offering choices for a manner of searching records, the user selects one and then a specific set of text boxes are displayed for the user to utilize, if a different option is chosen a different set of text boxes will be shown. Is this something that can be done?
My code Adds a New Row from a Source Table called "objTablaOrigen" To a final table called "objTablaDestino". This tables are passed ByRef because they come from a DataSet respectively. objRowNuevo is The Row that will be added to "objTablaDestino" The data from "objRow" is well copied to the "objRowNuevo" (that is the new Row with type of objTablaDestino).
'The problem occurs when the instruction Add is executed. ¿What happens? The new row is added as well, but this generates an Exception with the next message:
I have a label and button on label in my asp.net webform.i want when i click on button then label1 will be visible with text "Success" and then it will hide automatically after some time say 10 seconds.I M using asp.net (VB)How to auto hide label after 10 sec and after label hide redirect to the ~/Default.aspx ?
I have been looking all day trying to find a way to do this. I need to run a Batch file which is held on a server, the file path begins with a IP Address which DOS doesn't like. So i found the pushd command which assigns a temp drive letter from which you can run the Batch File.If i was simply running a normal program or file i would use:
Dim proc As Process proc = Process.Start("c:\BatchFile.bat") proc.WaitForExit()