Answer Questions
Warren13 Watching a process.
I'm having trouble with this. Basically what I'm trying to accomplish is a server restarter. It needs to look for the server to close. I was thinking just look for the process to close. But I'm not sure how to do it. Could someone help please I do have access to the servers code, it's in C++ though. Not exactly a pro in that either and I havent heard of the idea of mutex before. Thanks for this info. I'm still kind of confused as I am just learning VB, but your help is very much appreciated. If theres more specific info you could give I would be much obliged. If not thats quite alright you've helped quite a bit already. I will mark this post as answered but if you want I ...Show All
Drew Marsh Invocation Error.
Ive written a little app in vb.net when i run the app i some times get a invocation error. the error saysTargetInvocationException was unhandled. After this has happened i cant debug my code beacuse my breakpoints dont work. If i tick the "Allow source code to be different from original version" box under the "location" option in the breakpoint menu i get another error saying that the source code cant be found. Last time this happened i published the project and it sorted the problem out. But i since got the Invocation error back and now the project wont publish because it says that the "certificate cant be signed". How do i handle this exception and what casuses this error. My code is a bit messy ...Show All
GST1 Application Settings and ArrayList
I want to save some settings as an array in the application settings so I've created an application settings has a name Test and a type system.collections.arraylist I've used this code to save the settings to the application settings arraylist If Trim(TextBox1.Text) <> String .Empty Then My .Settings.Test.Add(TextBox1.Text) My .Settings.Save() End If but I've got an error Object reference not set to an instance of an object. when I execute the code ofcorse at the first run of the program the arraylist has no items in it can any one help me thank you all String and Integer are known as "value types" and they don't require initializatio ...Show All
Nothingz nested collections and for each iteration
Hello, Below is a small snipet using multi-dimensional Collections. First I have tried to create a multi-dimensional associative array. This way I can reference items in my table by string keys, such as colTestSheet.Item("animals").Item("fast") has the value "tiger" . I would like to be able to retrieve the key value . In the For Each loop in the testSimple example the key value that I would like to be able to print is "animals" and "birds". Is there a way to access the key values in the for each loop Sub testSimple() Dim colTestSheet As New Collection colTestSheet.Add New Collection, "animals" colTestSheet.Add New Collection, "birds" colTestSheet.Item ...Show All
ShivaanKeldon Port Web App and Launch .EXE File
I have a couple of very basic questions ... I am having trouble with the big picture. First, I have used VS 2005 to create a web application having to do with family stuff (i.e. not public) ... nothing fancy ... lots of text, a few grahics and about 100 web forms (pages). Now, after a lot of effort I have the app working pretty well as I test it on my machine and I would like to port the app to other family members (who are using XP Pro SP2 as I am but they do not have VS 2005 installed). I do not want to put the web app on a public server. Surely there must be some way that I can port all of the files making up the app to other people in the family so that they can view it on their machines using Internet Explorer (eg. create CDs that I c ...Show All
alex77 Referencing a Form on a Seperate Thread...?
I converted my code from VS2003 to VS2005 and came across Cross-Threading problem, which previously did not occur in VS2003. I am developing a Client/Server style application where a great deal of computations takes place in either application. I designed a "Progress Form" that is used to, well you guess it, display the progress of some work. In an attempt to create code that could be universal used by any application, I decided to create a Class. I have a "Thermometer Class" that manages all the interaction of a "Thermometer Form". There is a reason why I used this duel object method of creating my "Progress Form". I want my progress form, when displayed, to lock the GUI but not to block the thre ...Show All
Coritani How to verify files exist... kinda...
Hello, I'm trying to verify that each file in a list exist. I can successfully read the text file (which contains the list of files) into an array. (Each containing one filepath.) Each path has quotes around it and I have easily removed them. I then created an array and put the file path to every file (in the specified directory) into each dimension. My problem now is, I need a way to compare the two lists, verifying that each file that exists is in the other list. So I suppose that I am not looking for a way to verify files exist but rather that each file that does exist is in my list. Understand I have considered multiple ways of doing this but they have either failed or I have found that they are not what I am looking fo ...Show All
AshleyC-UK LEFT string function
This is how you would use the LEFT function in VB6 ... str1=LEFT("This is a typical string",4) Can you still use the LEFT string function in Visual Basic 2005 I can't seem to get it to work. Hi, John, (My apologies for not seeing this post earlier -- for some reason, it's showing up in the middle of the topic in my browser, even though it's actually the most recent post.) Just to be clear -- this isn't a bug, it is totally by design. The behavior is not unique to VB2005, as both VB2003 and VB2002 do this as well, and it is not a VB issue either, as any other scoped language would exhibit this behavior. This is simply following the law of scoping -- if you're coding up a method i ...Show All
Ragavendra Printing many different reports (what would you do)
Hi If have a lot of different reports to print in my application, how would you do this best My first solution would be something like: dim report as integer ... ... print1_printpage(....) if report= 1 then for.. next e.draw and so on.. exit sub end if if report = 2 then .... But this is a bit anoying when you have more than one page i think. Otherwise i could put another printpage dialog on the form (one for each report) Or are there any better solutions Are there any way og calling another sub in the printpage event and be able to draw on the page from this sub Personally I would use a reporting component such as Crystal Reports and simply do my repor ...Show All
enric vives MEMORYSTATUS
Hi, can anyone help me with this code Public Class Form1 # Region "Memory Status" Public Structure MEMORYSTATUS Public dwLength As Long Public dwMemoryLoad As Long Public dwTotalPhys As Long Public dwAvailPhys As Long Public dwTotalPageFile As Long Public dwAvailPageFile As Long Public dwTotalVirtual As Long Public dwAvailVirtual As Long End Structure Public memStatus As MEMORYSTATUS Public Declare Sub GlobalMemoryStatus Lib "kernel32" ( ByVal lpBuffer As MEMORYSTATUS) Private Sub timer_Tick( ByVal sender As Object , ByVal e As EventArgs) Handles timer.Tick Label1.Text = memStatus. ...Show All
eldiener Create Access Database from Sharepoint Creator and retrieve information in Access 2007
Have tried various ways to get information for my vendor applications and I would like to access them from MS Access 2007 Beta. Is there a easy application for this, should be simple process ...Show All
tradle i need datetime picker supports Arabic language
hi i need a date tima picker control that support Arabic Language and Hijri date for ( VB.NET ) so i read about this subject in microsoft website but i dont know how to get it, Thx. The DateTimePicker doesn't show Hijri dates. This was by design. I think you might have been confused with the ASP.NET Calendar control, which displays the Hijri calendar. http://www.microsoft.com/middleeast/msdn/arabicsupp.aspx have you tried using the standard date pick control in Visual Studio on a machine which is configured for arabic with the hirji date formatting Where did you read about this can you provide the URL ...Show All
Keith Henkel 2005 IDE Service Pack/Patch ???
Will there be a service pack or set of patches soon for the Visual Basic/Visual Studio IDE soon I've been sending the bug reports everytime a bug/crash occurs in the IDE and I'm hoping these help. VS 2005 SP1 Beta has just been released, so I guess we might see something by the end of the year. What adverse publicity Start at http://minimsft.blogspot.com/2005/11/hey-shareholders-vs-2005-is-fantastic.html and follow the links. I think you'll get the idea. For my own part, I've found that a small project on 2005 works OK, but get anywhere near a real life application and problems increase exponentially, mostly due to a complete lack of understanding of Fusion and the interaction betwe ...Show All
Ready4u SendARP arithmetic overflow operation
Hi, I'm receving the error "Arithmetic overflow operation" in some computers. They have Ip set by DHCP. This error only happens in 2 or 3 computers (over 100). Dim IpAdd As IPAddress IpAdd = IPAddress.Parse(GetIPAddress) Dim ab(6) As Byte Dim len As Integer = ab.Length ''This Function Used to Get The Physical Address Dim ArpResult As Integer Error when SendArp is called ArpResult = SendARP(CType(IpAdd.Address, Integer), 0, ab, len) mac = BitConverter.ToString(ab, 0, 6) yes, my IP Address ends with .141 and .131. Check if you get the failure on workstations whose IP address ends with .128 or greater. If ...Show All
pjam VB.NET 2005 Equivalent!!!
Hi all I would like to know the equivalent for the following in VB.NET 2005... * PopupMenu was not upgraded. * KeyPreview was not upgraded. * InvisibleAtRuntime was not upgraded. * DefaultCancel was not upgraded. * ClipBehavior was not upgraded. Could anyone throw light or suggest some alternatives/workaround for the same. Thanks in advance. Many Thanks Sathya ^_^ Alternatives to what you are looking for really depends on how they are being used... you’d likely use the ContextMenu property in place of PopupMenu... KeyPreview does exist, but only on Forms. You could set a control’s Visible property to false to get the same effect as InvisibleAtRuntime. Rather than using DefaultCancel you can ...Show All
