dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: gigemboy

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    7
    Views
    8,370

    Re: ObjectDisposedException was unhandled...

    Its like I said. Form2Ref is only a new object when Form1 is created. If you call me.close inside of form2, that Form2Ref object is not going to exist. So any other code that is called in any event...
  2. Replies
    7
    Views
    8,370

    Re: ObjectDisposedException was unhandled...

    We can't help that much without seeing code... Where is DATAentry being used in the form? Where is it being instantiated? Chances are you have a variable that is referring to an object outside the...
  3. Replies
    4
    Views
    3,734

    Re: Get Mac Address From any website Url

    The reasons that you wish to get this information for is probably why you cannot get the type of information you want that easily :)
  4. Re: How to Include VB Application into ASP.NET ?

    Web development vs desktop development are two different things. You would have to code a web form that has similar functionality to what you have in your windows form and then do the same thing in...
  5. Re: URGENT! Restart / refresh the mainform...

    You code the sub yourself... one you make up...


    Public Sub DoSomething()
    MessageBox.Show("I called me!")
    End Sub

    When that is in form1, you should be able to access the DoSomething Sub...
  6. Re: URGENT! Restart / refresh the mainform...

    Before the me.close call in the second form, you call a public sub that you define in form1, that gets the data (parameters you pass into the public sub, with the data from form2 that you want to...
  7. Re: URGENT! Restart / refresh the mainform...

    That looks like code I gave when someone asked a question about restarting a form. If you don't want to restart a form, then It would make sense that the code will not do what you want to do....
  8. Replies
    8
    Views
    1,232

    Re: 1024+ Digit Decimal/Double!

    I remember seeing a post a while back on the MSDN forums over dealing with long numbers, and was able to find it here, if it helps at all...
  9. Replies
    4
    Views
    4,434

    Re: MsgBox and play sound at the same time

    Or you can reference directx and play the sound through that, and the sound should play asynchronously, I believe... a sample can be found in my sig and is relatively simple...
  10. Replies
    5
    Views
    2,573

    Re: Prime Number Generator

    Or if you want to save processing, just find a list of primes on the net and parse the list. Quicker than constantly redoing the calculations over and over again since prime numbers aren't going to...
  11. Replies
    5
    Views
    2,636

    Re: ERROR as regards to 'Image.FromFile' ...

    If it pulls up the picture then it is ok :) ... looks fine...
  12. Replies
    5
    Views
    2,636

    Re: ERROR as regards to 'Image.FromFile' ...

    Use Application.StartupPath to return the path to the application directory, and then just append the directory structure onto the end of it (ex. Application.StartupPath & "\images\mypic.jpg"). As...
  13. Thread: 1-2+3-4+...n

    by gigemboy
    Replies
    8
    Views
    763

    Re: 1-2+3-4+...n

    Or.. if N is odd, , the sum can be found with (n+1)/2 . If N is even, it can be found with N / -2 ... no looping...


    Private Function DoCalc(ByVal N As Integer) As Double
    If N Mod 2 = 0...
  14. Replies
    6
    Views
    2,395

    Re: PictureBox.Image

    Image.FromFile puts a lock on the file until it is disposed of. In order to get around it, you have to create a new object that is a copy of that image, and then dispose of the original image to...
  15. Replies
    2
    Views
    527

    Re: How do I find the Day with given values?

    The below is a function you can play with that should do it. You pass in a date (todays date in your case, but could be any date), a Number, a dayofweek, and the month you wish to check, and it...
  16. Re: How to affect all objects of the same type

    Loop through the controls collection (Me.Controls), check if the TypeOf control is the type you want, for instance, textbox... if so, cast it to the type and call\use the property/event/method that...
  17. Replies
    4
    Views
    3,590

    Re: Net send via VB.NET?

    You could also just send it using cmd... check out a link in my sig over Automating the command prompt... windowless as well...
  18. Re: Data not being saved to SQL Table - Code provided

    I presume you are getting some kind of error? If so, what is it?
  19. Replies
    2
    Views
    637

    Re: Button Events Within Do Until Loops...

    Sleeping the thread in order to "slow" a process down and calling some large loop that does nothing in order to "slow" some other process down is not usually wise to do. All that is doing is making...
  20. Replies
    2
    Views
    622

    Re: Syntax for "No records in DB..."

    In 'table1' of what? A dataset? A DataGrid? A Database? Some other object? Describe the object and what it contains. The more info we have the more we can help...
  21. Replies
    3
    Views
    617

    Re: Change DB from MS SQL to Access...

    If this is not a relatively large application, then you will save time by just modifying it in its current state. Data Access Layers are actually a more advanced topic, and take some time to work...
  22. Replies
    3
    Views
    617

    Re: Change DB from MS SQL to Access...

    The changes needed depends on how you programmed your application. Everywhere you have a SQL object (data adapter, connection, etc) you will have to change it to an OleDB object, as well as changing...
  23. Replies
    7
    Views
    1,088

    Re: Running .exe from VB

    The Process.WaitForExit method should do just that....
  24. Replies
    19
    Views
    2,120

    Re: please help using instr

    The Regex way to do it.... (since I love me some Regex :) )


    Dim MyString As String = "this is a test string test this is a test"
    Dim SearchString As String = "test"
    Dim...
  25. Re: _Click sub for dynamically created buttons?

    Look into using the AddHandler statement to add a handler for your buttons. Basically you would have a sub defined in your code that you would specify for whatever event you are wanting to handle...
Results 1 to 25 of 303
Page 1 of 13 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)