Search results for query: *

  • Users: Gopher2011
  • Content: Threads
  • Order by date
  1. G

    datagridview issues - data only populates the first row

    I am trying to get my datagridview to display more than one row of data. Every time I call the program it only writes the 1st line of data in the datagridview instead of adding it to a new row. I have been looking on the forums for hours but combined with my inexperience I can not understand it...
  2. G

    My program is missing from program files after I deploy it.

    After I publish a program, and copy it to a virgin virtual machine, I run the install. It installs and runs fine, but when I look in the Program Files it is not there. This is a hard one to google - I try install files vb.net and it provides no good responses, so I ask again in here. I don't...
  3. G

    Icon in Start - Programs - *Program name*

    After publishing and installing an application, I am struggling to get the icon in 'Start - Programs - *Program name*' to show as the same icon set in the main form. I have searched and looked everywhere in here, and its confusing. Am I missing something? I have another install that does this...
  4. G

    Question Find strings inside strings

    Hi, I have been looking for examples to find the string between two strings. This top one works fine; Public Sub ReadData(ByRef keywordStart As String, ByRef keywordEnd As String, ByVal filename As String) Using reader = New StreamReader(filename) Dim line As String =...
  5. G

    dddd, MMMM dd, yyyy

    Hi -I have found two threads below but they do not do exactly what I need, so I decided to post in here. http://www.vbdotnetforums.com/vb-net-general-discussion/46944-change-format-date-day-week.html http://www.vbdotnetforums.com/vb-net-general-discussion/3615-datetime-problems-resolved.html I...
  6. G

    Security - Prevention of un-authorized use.

    Hi guys. I am after advice on how to stop my program from being run outside my office. I don't have card reader security etc, I need a software solution. Assuming someone puts the install onto a flash drive and takes it home how do I prevent them from running it? Here are my thoughts. Check...
  7. G

    analyse what sounds?

    Is there a way for a program to analyse what sounds are being sent to the speakers? Ie if a program sent a buzzer noise to the speakers - is there a way for me to 'watch it and flag part of another program? Thanks in advance.
  8. G

    Speed up a program

    Can anyone look at this code and see how i can speed it up? Its calling a sub to count commas in long string. Calling part 'Sort the incomming messages Dim count_Coma As Integer = CountCharacter(_InMessToAction, ","c) The sub. This takes about 0.7 of...
  9. G

    EnterWriteLock

    I'm struggling to understand why I need EnterWriteLock. Does anyone have any one line replies :D
  10. G

    Variable declaration

    I am looking at some code written by another engineer who has since left the company. He has a module and in that module he has declared Analogues(20). When I scroll down to the function shown below, and right click Analogues - go to definition it takes me to the top of the file, and lands on...
  11. G

    Parameratized database example?

    Hi, I am trying to create a Parameratized database that 1) lets me put a sql string together. 2) lets me add parameters 3) lets me call the db part multiple times with different queries. 4) put the data in a datagridview table. I have found numerous examples but they keep breaking, and are...
  12. G

    Change the displayed text / Langauge

    Thanks for your help so far guys. I now need to have a drop down menu with different languages in it. English, French German Asian etc. When the user selects a Language from the drop down menu the text of all the relevant objects changes from like a Button with pause on it in English changes...
  13. G

    Convert a string to Hex

    Hi, I have 1 string of 12 numbers separated by a ',' "11.11,22.22,33.33" etc coming in my serial port. One number has so far been 5339, but now its changed to 533d, which causes problems, for reasons I am still trying to work out. The top numbers are all real numbers ie 0.000 or 00.00 or 000.0...
  14. G

    Object reference on the fly

    Does anyone know if I can create objects on the fly? Currently I have DI_01 is an object on my form. Microsoft.VisualBasicPowerpack.OvalShape Digital_In.Add(DI_01) ...and so on... Digital_In.Add(DI_16) What I want to do is reference the object at runtime Dim...
  15. G

    Tip Invoke example for dummy's - Change one threads label from another thread

    Ok, after a long time trying to get one thread to talk to another thread, the whole thing was driving me nuts but its quite simple so I decided to put the code here to help people like me. I know there are longer better more complex more complete examples there but I just wanted to change a...
  16. G

    Question Open a child form - Main form is unresponsive

    When I open my child form, frm_Analogs.ShowDialog() It opens up the new form, but now I can not interact with my main form. It will not accept focus or allow me to interact with it. Do I need to change the form type? Any Ideas? Thanks In advance.
  17. G

    Question text extraction

    Forgive me but i have a noob question, I cant seem to get my head around. I have a textbox.text string as "111.1, 22.2, 3333.3, 444.44" What I want to is extract the numbers which may be random lengths, but all separated by a comma to dim i1st number as Integer dim i2nd number as Integer dim...
  18. G

    Threading and modules and sleep.

    Hi, I have a frm_Main, which starts a thread. The thread then goes and calls a module, which has a thread.sleep() in it. This causes the mouse to freeze up while it sleeps, despite being called by the child thread. I thought this would have be on the thread time-slice? However it is causing my...
  19. G

    Threads - "Conversion from string "" to type 'Double' is not valid."

    Threads - "Conversion from string "" to type 'Double' is not valid." I have a application that writes and reads from a serial port. The com-port is opened elsewhere in the early stages of starting / running frm_Main and is not shown. I have a button1 on my form and when I click it, the module...
  20. G

    Find section of an image within an image

    Big screen grab example Little image example Sorry for this and I really would appreciate any comments.. or help.. I am working with a home made industrial OCR recondition (but not actually OCR), and I know some of you will say 'this is better' and 'that is better' but my company's...
Back
Top