dcsimg

Search:

Type: Posts; User: SandiegoSSD

Page 1 of 2 1 2

Search: Search took 0.13 seconds.

  1. VS 2010 Re: How to Parse this string: 8.29933968E-04 into some number?

    this worked for me

    dec = decimal.Parse(x, System.Globalization.NumberStyles.Float)
  2. VS 2010 [RESOLVED] How to Parse this string: 8.29933968E-04 into some number?

    Hi guys, I'm using vb2010.
    Trying to parse this string 8.29933968E-04 into a number so I can plot in on a spreadsheet.


    if this number were like 1283912839E-5(that is, 'integer'&(E-xxx) ,...
  3. VS 2010 Re: How to use the same SerialPort instance on a second form?

    Thank you sir. I've moved the DataReceivedHandler sub to the module. Probably a real last minute question here..when I'm stepping through
    the code and I find out that it goes through the...
  4. VS 2010 Re: How to use the same SerialPort instance on a second form?

    Thank you sir. I added a module

    Module PublicSerialPortModuel
    Public UserPort1 As ComPorts

    End Module

    and now I can use UserPort1 in form2 without the "form1.xxxx" prefix.

    I run into...
  5. VS 2010 Re: How to use the same SerialPort instance on a second form?

    well..i tried a few things and actually on form2.vb, this works


    form1.UserPort1.WriteToPort("xxxx")

    , where WriteToPort() is another sub defined in the ComPorts class.
    thank you guys for...
  6. VS 2010 [RESOLVED] How to use the same SerialPort instance on a second form?

    Hi guys, quick question, in dealing with IO.Ports.Serialport

    I have this class,


    ''' <summary>
    ''' Routines for finding and accessing COM ports.
    ''' </summary>

    Public Class ComPorts
  7. VS 2010 [RESOLVED] Working with serial GPIB. What do these lines mean?

    I'm looking at a sample code by Nationalinstruments about using the GPIB NI488.2 protocol to communication with scopes.
    Run into this part of the code. Can anyone tell me what the "...
  8. VS 2010 Anyone has experience using NationalInstruments.NI4882.dl? GPIB related

    Hi guys, i'm working on a project which was previously upgraded from VB6 and it used gpib-32.dll (well, more exactly, Niglobal.bas and Vbib-32.bas), and after it was
    upgraded, the gpib component...
  9. VS 2010 Is MLApp as a reference necessary? I use ML = CreateObject("Matlab.Application")

    Hi guys, I have a project that calls Matlab as a COM server.
    I define : ML = CreateObject("Matlab.Application")
    and use ML.Execute("...") or Call ML.PutWorkspaceData("x", "base", z)
    and such.
    ...
  10. VS 2010 Re: ClickOnce deployed application: how to get build date instead of .exe installed d

    Do you guys think this
    Dim buildDate as DateTime = new DateTime(2000,1,1).AddDays(
    System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Build )
    will give the actual build date...
  11. VS 2010 ClickOnce deployed application: how to get build date instead of .exe installed date?

    Hi folks I'm deploying a project using Clickonce and trying to get the date/time info for when I build the program in VS2010, and display this info when a client install the .exe, when I try to use ...
  12. VS 2010 Re: [RESOLVED] Assembly.GetExecutingAssembly().lastwritetime doesn't work in deployed

    oops... it looks like:
    FileInfo(Assembly.GetExecutingAssembly().Location).LastWriteTime
    only gets me the time of when the setup.exe is installed on the client's computer, not when I build the...
  13. VS 2010 [RESOLVED] Assembly.GetExecutingAssembly().lastwritetime doesn't work in deployed Clickonce exe

    Hi guys,i published a program using Clickonce, and I'm trying to get a date of when the .exe or .application is built/published in VS2010 on my computer, so that a client can see that date when they...
  14. VS 2010 Re: Trying to solve bootstrapper related issue. then stumbled onto this..

    Sorry for being a noob, but i don't know what was done by running that line in command line. I navigate into the folder location C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\x64\TlbImp.exe...
  15. VS 2010 Trying to solve bootstrapper related issue. then stumbled onto this..

    Hi guys. i have a project upgraded from vb08 to vs2010, and it uses some interop to call matlab as COM server. When I tried to deploy the project in VS, using setup wizard, I built the setup project...
  16. Re: Trying to get rid of lines starting with 'UPGRADE_WARNING..

    ohh.... it seems if I use Wildcards when replacing them and search for 'UPGRADE_WARNING:*
    they do all get snooped out and replaced.. thx though...
  17. Trying to get rid of lines starting with 'UPGRADE_WARNING..

    Hi guys, i just(finally) finished upgrade a vb6 code into vb.net 2008 and then vs 2010. I'm pretty happy that it works. except for one minor but noisome thing: I used MS upgrade wizard to convert in...
  18. VS 2008 How to bring the form back to focus after the code finish ploting in matlab?

    Hi folks, my code uses Matlab as a COM server and has matlab plot some data in a figure, which is opened up in a new window named 'Figure 1' normally. After it's done plotting I hope to give focus...
  19. VS 2008 Re: Looking for a status bar that updates RESPONSIVELY w/ the code.

    it's communicating with an external machine thru a serial port(for that I'm using io.ports.serialport class). It does some data read/write and a few calculation with the data. Somehow all these...
  20. VS 2008 Re: Looking for a status bar that updates RESPONSIVELY w/ the code.

    thank you ShaggyHiker. Statusbarmainmenu.Refresh worked for the statusstrip i have on the form.
    That aside, I also have an AbortTest button on the form that reset some flags and tell the program...
  21. VS 2008 Looking for a status bar that updates RESPONSIVELY w/ the code.

    Hi guys, I'm looking for a component to add to my form that'll serve as a status indicator to show how far i am in the process of the code.
    I have a code that used
    ...
  22. VS 2008 Open a CommonDialog(VB6..esque) to let user choose a directory?

    Hi folks, I'm wrestling with some old vb6 codes and upgrade/convert them to.NET. and as some of you are aware of, in .NET the CommonDialog control is divided into OpenFileDialog, SaveFileDialog,...
  23. VS 2008 Re: How to jump to the sub() that invokes current sub during debugging?

    yeh. callstack works!! Thx guys
  24. VS 2008 Re: How to jump to the sub() that invokes current sub during debugging?

    well.. you know, breakpoint will sortof do..but still Execute1() appears at like a hundred places..just looking for a quickie
    but if not I guess I'd have to step into it
  25. VS 2008 How to jump to the sub() that invokes current sub during debugging?

    Hi folks. I have this sub: Execute2() that's called by Execute1() .
    And Execute1() is used many(hundreds) times in the main code.
    during runtime I'm getting some errors and when i click pause, ...
  26. Re: A program that simulates a serial device to test my code?

    Thank you DataMiser I think i'd probly use 2 computers
  27. Re: A program that simulates a serial device to test my code?

    It seems Hyperterminal doesn't act as a virtual device that works with a program sending bytes. Instead what it does is it sends/receives data with an external device connected to the COM port. Am i...
  28. A program that simulates a serial device to test my code?

    Hi guys,i'm looking for a program that can simulate a serial device, so that when i run my code, which sends data thru the COM port, I can see what's being sent out of the COM port without an actual...
  29. VS 2008 Re: Can I replace the imported Interop 'AxMSComm' w/ 'MSComm'?

    Yeah... well..I was thinking of making some minor changes so that the interop would work using the converted code but..what the hell..I'll study some SerialPort material.
    Thanks guys
  30. VS 2008 Can I replace the imported Interop 'AxMSComm' w/ 'MSComm'?

    Hi folks,
    I'm porting a program from vb6 and it used the old MSComm class to do some serial communication. As some of you know, when ActiveX controls are upgraded there's a prefix "Ax-" added to...
  31. VS 2008 Dim A() As Integer vs Dim A As integer() ?? Noob question

    Can somebody explain the second one to me? I'm not clear on the concept.
    The first one I know is an array of integers. but what about the second one?:afrog:
  32. Upgrade error: 'Goto xxx' is is not valid because 'xxx' is inside a 'For' or '

    Hi guys,

    i'm upgrading some big chunks of vb6 codes into .NET and I'm getting a few
    errors like this one below:

    Error 40 'GoTo xxx' is not valid because 'xxx' is inside a 'For' or 'For Each'...
  33. VS 2008 Is this right? Sub with Byref can do the same thing a Function does?

    Newbie vb.net learner here. seeking some clarification on this question.
    I think this Sub below

    Sub(ByVal y as integer, Byref X As integer)
    ..
    End sub


    And this function
  34. Replies
    4
    Views
    3,308

    Re: VB6 Source code file types include??

    so I'll keep the files under the 'Support'. What about the .cab file? and setup.exe and SETUP.LST that are also under the 'Package' folder?
    I know .cab is a compressed version of support so it's...
  35. Replies
    4
    Views
    3,308

    VB6 Source code file types include??

    Hi guys, I'm trying to backup my project in a repository on the server and it's suggested that I only keep the source code files for my project and only backup these source files up to the server...
  36. VS 2010 Re: Check whether a DataTable is populated? "Index out of range" error here

    Thank you Paul.
    This worked for me:

    If (PreSubTables.Count > 0) Then

    If (PreSubTables(0).Rows.Count > 0) Then
    '...
    end if
    end if
  37. VS 2010 Check whether a DataTable is populated? "Index out of range" error here

    Hi guys, i defined a list of DataTables

    Dim PreSubTables As New List(Of DataTable)()

    Then I parse some source files and depending on the data, possibly none of the tables in the list ...
  38. VS 2010 Re: How to combine similar rows in a Datatable(the rows only differ by one column)?

    Thank you for the post. My case is a bit strange though. I'm actually working with a bunch of .csv files as source files, and I chose to read data into DataTable just for the sake of being able to...
  39. VS 2010 Re: How to combine similar rows in a Datatable(the rows only differ by one column)?

    good point I'm collecting my thoughts
  40. VS 2010 How to combine similar rows in a Datatable(the rows only differ by one column)?

    I have three sub tables that I want to process. For each I want to combine the rows, as they are only different by contents in the second column(I want to do the same to the fourth column, later):
    ...
Results 1 to 40 of 50
Page 1 of 2 1 2



Featured


Click Here to Expand Forum to Full Width