Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. selimsl

    Changing system short date format vb.net 2010

    'Declare variable Dim dteResults As Date 'Get the current date and time dteResults = Now MessageBox.Show("Modified: " & dteResults.ToString("dd / MM / yyyy"), "Date Demo")
  2. selimsl

    SerialPort get less byte

    Hello everyone, I am writing a program which communicates with a device(Energy Meter) via com port of my computer. I am using a RS232/RS485 converter. Because the device that I want to communicate with only supports RS485 communication media. I have two different brand of converters 1) Moxa...
  3. selimsl

    Flicker free Listview

    When I use ffListView Class nothing can be read from listview. I mean I added 30 rows to the listview but nothing can be read on the listview. I checked items.count property and it says count=30. Instead of this I changed the code which was post with the code below...
  4. selimsl

    Flicker free Listview

    The problem with my code is listview.items.clear() I have created a form that uses ListView. How do I clear the contents of the listview so that I can update the data? If I use clear keyword this causes strange behaviour I mentioned before.
  5. selimsl

    Flicker free Listview

    the link of the thread http://www.vbforums.com/showthread.php?t=342255
  6. selimsl

    Flicker free Listview

    Dear ousoonerjoe , I applied your suggestion on my code, but unfortunately it didn't work. On the web I found same thread, they said DoubleBuffered solved this issue, but I don't know how to apply it on my code.
  7. selimsl

    Flicker free Listview

    Hi, I am using Listview control on my project. I add items to the listview control cyclically. I mean I fill the listview with values and then after a time period I refill the listview with the new values. I do it with the code below. But everytime I refill listview it flickers. For example I...
  8. selimsl

    DataReceivedEventHandler is called more than once

    When I put a breakpoint at Do While and wait for a second, everthing works fine. I think I need a wait function to wait on that position for a while. Do While (InputBuffer = Nothing) Application.DoEvents() Loop
  9. selimsl

    DataReceivedEventHandler is called more than once

    Hi, I am using System.IO.Ports.SerialPort to communicate with a device. I sent a command to the device then it sends reply to this command. I get the reply from device using DataReceived event of the serialport object. But reply comes with two parts (not everytime but sometimes it comes with...
  10. selimsl

    From Hex to Binary

    Hi, I have a variable named x and it has a value in hexadecimal format but type of x is string. Dim x as String x="AF" I want to convert this string (actually hex) to binary equivalent. Like this x="10101111" is there any function in .Net to do this convertion? Thanks in advance.
  11. selimsl

    Ethernet Link LED is lit but cannot ping

    Yes, ETG100 is a device from Schneider Electric. I did the cable again , complied standard color coding and it is working now. So, when I use pairs the cable start working properly. Thanks for help
  12. selimsl

    Ethernet Link LED is lit but cannot ping

    Link lights at both ends are lit, but I used Straight Ethernet Cable. Should I have used Crossover cable? By the way I didn't care color codes. You said: If you do not use pairs, 'link' can work, it is DC, but AC-like data may fail. What is DC and AC? Thanks...
  13. selimsl

    Ethernet Link LED is lit but cannot ping

    Hi! I have a device (named ETG100) which has an Ethernet port and it is connected to my PC through a Ethernet switch. When I ping the IP address of the ETG100, ETG100 relies. So everything is ok. But if I put my ETG100 to a different place where almost 30 m far from Ethernet switch and use...
  14. selimsl

    String Equitions

    If you have a look, these are not same. The result of thread222-1456934: String - Float Conversion is number , but for this one the result must be consist of numbers as well as variable(z)
  15. selimsl

    String Equitions

    Hi! I have a string which consists of a numbers and a variable(z). Like this, “2*(z^(-1))*3*(z^(-1))” The result must be as follows, “6*(z^(-2))” Is there any way to do this in vb. Thanks in advice
  16. selimsl

    String - Float Conversion

    Hi! I have a string(a) which consists of a number(5) and a variable(z). I replace z with 2 using replace function. and I want to get 7 as result(x). Is there any function to get right result. Dim a As String Dim x As Long a = "(z + 5)" a = Replace(a, "z", "2") x = Val(a) Thanks..
  17. selimsl

    Connect to a computer using web

    Hi! I need to connect a remote computer using web, because in this way i will be able to connect to the network of this remote computer. In this network there are some devices which has an ethernet port and a program in them.When i accomplish to connect to this remote computer i will be able to...
  18. selimsl

    Refresh Fonts Folder

    Hi For a project I am working on,I need use a specific font file.I copied this font file to windows fonts folder using this code. FSys.CopyFile App.Path & "\FUTRFW.TTF", "C:\WINDOWS\Fonts\", False But when I open my project I see my text is on default font, not on the font I copied. When I...
  19. selimsl

    Embarrasingly Basic Question

    Use double data type Double - 8 bytes -1.79769313486231570E+308 to -4.94065645841246544E-324 (negative values) 4.94065645841246544E-324 to 1.79769313486231570E+308 (positive values)
  20. selimsl

    SerialPort

    Hi I am trying read data from serialport. The data comes correctly to my Buffer variable,but in that code (TextBox2.Text = Buffer) vb gives an error. error is:Cross-thread operation not valid: Control 'TextBox2' accessed from a thread other than the thread it was created on. How can I get rid...

Part and Inventory Search

Back
Top