1,857 Posted Topics
Re: try this function `=IF(Sheet2!A1 = 0," ",Sheet2!A1)` basically if the source = 0 then use a " " as the value otherwise use the value from the source. | |
Re: Try this: location1Thread = new Thread(location1.readSensor()); location2Thread = new Thread(location2.readSensor()); | |
Re: If you're going back and forth like that a lot you might be better of loading the file into some sort of structure, an array or maybe a list. This allows back and forth access much more easily. | |
Re: Your code is somewhat confusing. It looks like you're trying to add a `LinkedListNode` to a `List`. You would probably have more luck using the `LinkedList` type rather than a `List` type. | |
Re: `Handled` and `KeyChar` are only part of `Key` events, like `KeyPress`. You'll have to use one of those events to trap which keys are being pressed. If you have to use the TextChanged event you could read the `Text` property and isolate the last character | |
Re: You'll need a website for the app to connect to that will have the latest version of the app. This [article](http://msdn.microsoft.com/en-us/library/cc668164%28v=VS.100%29.aspx) might help in connecting your app to the web | |
Re: Could the file still be open and without an EOF marker? I noticed that the sub that writes to the outfile doesn't close the stream, if the same file is then read would it have an EOF marker? just a thought. | |
Re: If you still wanna have your own, here's [one that someone developed](http://www.lumisoft.ee/lsWWW/ENG/Products/Mail_Server/mail_index_eng.aspx?type=info) quite a few years ago for .net. | |
Re: Try this: public GjendjaForm() { InitializeComponent(); emriBox.Text = KlientForm.emrBox.Text; mbiemriBox.Text = KlientForm.mbiemriBox.Text; xhirollogariaBox.Text = KlientForm.xhirollogariaBox.Text; } When you `Show` the form the textboxes should thave the values. | |
Re: One quick and easy way, is to use the designer to create all your controls, and adjust any properties. Open the designer file(i.e. Form1.Designer.cs) and copy everything in `private void InitializeComponent()`, and put it into your main code file(i.e. Form1.cs), right after `InitializeComponent();`, now delete all the controls from the … | |
Re: First off your question should probably be in the VB.net forum. That being said here's some [material](http://msdn.microsoft.com/en-us/library/aa833165%28v=vs.90%29.aspx) on building a database in VB 2008, for you to read. Once you have some code that you have a hard time getting it to work let us know. | |
Re: The easiest is probably a `For Loop` any C++ reference can show you how to use it. | |
Re: This might work for you: Public Sub GetTotals(ByVal Name As String) Dim Visits, Calls As Integer Visits = 0 Calls = 0 For Each Itm As ListViewItem In ListView1.Items If Itm.Text = Name Then Visits += Val(Itm.SubItems(1).Text) Calls += Val(Itm.SubItems(2).Text) End If Next MessageBox.Show("Visits - " + Str(Visits) + vbNewLine … | |
Re: Which control has the focus when you want to read the keypress? You should be using the keypress event for that control to trigger the click event for the button. | |
Re: When you use the variable precede it by the class name it's in. For instance, if the your main form is `Form1`, you'd use it, `Form1.MyVariable`. | |
Re: simple input validation: bool temp = false; while (temp == false) { Console.Write("Input value for position [{0}, {1}] : ", i, j); temp=double.TryParse(Console.ReadLine(),out myArray[i, j]); } | |
Re: When I try your code it doesn't duplicate the problem you mention. But when I switch the values in lines 25 & 26 I get one "int" in black and one in red. Whenever I click on any of the first 4 characters(including the space) it reports black and on … | |
Re: > you haven't show any proof of effort. Which apparently includes searching other posts in this forum. | |
Re: Seeing as how Microsoft doesn't allow downloads of the Express version of VB6.0, which is antiquated technology at best, you'll have to get the current express version which is either [2008](http://www.microsoft.com/en-ca/download/details.aspx?id=3092) or [2012](http://www.microsoft.com/en-ca/download/details.aspx?id=34673) depending on you computer. Which if you're just learning would be the preferred way to go, since … | |
Re: Here's a free [installer for windows that uses disk spanning](http://www.jrsoftware.org/isinfo.php). | |
Re: It's basically the same. The listview also has click, and doubleclick events. | |
Re: This [article](http://msdn.microsoft.com/en-us/library/ms143551.aspx) describes using the `.Write` method to send a byte array over a serial port. | |
Re: Here's an [article](http://www.codeproject.com/Tips/378657/Quickest-way-to-create-a-NET-database-application) on managing a database in.net. the code is in C# but it shouldbe relatively easy to understand. | |
Re: Are you trying to load the info manually or automatically? What format is the info stored in? What code have you attempted so far? | |
Re: This [post](http://www.vbforums.com/showthread.php?623929-RESOLVED-Layer-rendering-%28image-program%29) should have the info you need. | |
Re: Here's a little psseudo code that might help you with the logic, the specific code is up to to you. I assumed the guesses are to be whole numbers, if not don't reduce the guess to an integer. max=100 min=1 guess loop until 7 guesses are done guess = int((max-min)/2) … | |
Re: Did any toolbars come preinstalled? Sometimes they hijack your search, and pull funny redirections. | |
Re: or switch to a masked text box where you can set a mask to filter out letters | |
Re: is your problem with the code to delete rows, or tying the code to the button click? | |
Re: instead of a while loop try changing it to a conditional statement, if datetime.Minute <> 0 then datetime.AddSeconds(-1) end if | |
Re: Most if not all bar code readers will come with a specific SDK, or instructions, to interface to their reader | |
Re: try this: `LimitString = value.ToString("e5", CultureInfo.InvariantCulture)` This [article](http://msdn.microsoft.com/en-us/library/dwhawy9k%28v=VS.100%29.aspx#DFormatString) gives more info on formating numbers into strings. | |
Re: Are you making sure the image in the program has focus? | |
Re: Then again where to want your future to go? If you expect to do a lot of cross platform programming then keeping your knowledge of C++ will be more important. If you expect to do strictly Windows, then relearning how to do things in VB will be more important. If … | |
Re: You might want to consider using `.SelectedText` instead of `.Text`, if `.Text` isn't giving you the right result. | |
Re: Here's a thought, check the Unanswered posts here. There's always someone there with ideas and no code. | |
Re: try something like this: For Each CB as Combobox in Me.Controls.ofType(Combobox) Select Case CB.Name.Length-7 case1 ' Combobox1 etc .... | |
Re: The main difference is getchar returns the next character entered, getline waits for a newline character before returning. Which one to use depends on your needs. | |
Re: one other thing to try, is when you call the routine in the module, pass the `Form1.Handle` as a parameter. You should be able to control it then. | |
Re: You could use `C:\Documents and Settings\All Users\Application Data`. Or you could find the user name with `SystemInformation.UserName` and replace `All Users` with it in that path. | |
Re: [Click Here](https://www.google.ca/search?q=videolan+forums&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a) | |
Re: Try this: DateTime now = DateTime.Now; //get the current time //The DateTime constructor goes (YYYY, MM, DD, HH, MM, SS) DateTime start = new DateTime(now.Year, now.Month, now.Day, 00, 00, 00); DateTime end = new DateTime(now.Year, now.Month, now.Day, 17, 25, 00); DateTime start1 = new DateTime(now.Year, now.Month, now.Day, 23, 59, 00); … | |
Re: With the chassis fan being faulty you could be looking at an overheating problem. Maybe not enough to create an alarm but enough to make things go wonky. Opening the case to reset the bios could be releasing the heat allowing things to work properly until they heat up again. | |
Re: what code are you having a problem with? | |
Re: If the date is 'Date' data type, then try converting the string to 'Date' type before you submit it. You can use `CDate` function to convert it. | |
Re: First off VB script is only a subset of VB, which may make your job even harder. Second of all in regards to not knowing VB or VB script, no time like the present :) | |
Re: it looks like most of your variables are there, the values in your comboboxes should still be there, date and time you can get from your datetime picker, the return status from the checkbox. Looks like all you need is a variable to combine all the different fare variables. Considering … | |
Re: Is there a specific problem with your code? | |
Re: Have you seen this [blog](http://blogs.msdn.com/b/sql_protocols/archive/2005/10/19/482782.aspx)? or this [article](http://support.microsoft.com/?id=811889) | |
Re: Without knowing what it's doing wrong, it's hard to say what errors you have. A couple of obvious things I noticed, `strstore` should be declared as `Boolean` not `String`, and `strpattern` should be declared as `String` not `Boolean`. In fact for efficiency you should probably try to avoid declaring variables … |
The End.