dcsimg

Search:

Type: Posts; User: ZenDisaster

Page 1 of 5 1 2 3 4

Search: Search took 0.41 seconds.

  1. Re: Console Application ReadConsoleOutputCharacter or .NET alternative?

    Well you gentlemen certainly have my thanks for asserting yourselves on my behalf. I'll bookmark this thread and update it if I'm able to make an progress.

    Quick update. I decided to run the call...
  2. Re: Console Application ReadConsoleOutputCharacter or .NET alternative?

    Hi minitech, I was hoping you'd bring your oversized brain into this.

    I agree with you. However, in the back of my head I have an idea for a future project that would enable me to macro other...
  3. Re: Console Application ReadConsoleOutputCharacter or .NET alternative?

    Option Strict is now on!

    I've been able to execute the program, but I'm getting an invalid handle. Let me update the code here.


    Private Declare Function GetStdHandle Lib "kernel32.dll"...
  4. Console Application ReadConsoleOutputCharacter or .NET alternative?

    I'm working on a roguelike similar to nethack (a console game where the graphics are simply unicode characters). However, I have reached a barrier when trying to identify what character the cursor is...
  5. Replies
    4
    Views
    612

    VS 2010 Re: Beginner issue

    You could use the MaskedTextBox to easily restrict and format input.

    The mask property of the MaskedTextBox would be something like 00:00:00

    See this for further information on it.
  6. Replies
    20
    Views
    972

    VS 2008 Re: StreamWriter Bad Formating?

    change:
    sw.WriteLine(ListBox3.Items.Item(i))

    to:
    sw.WriteLine(ListBox3.Items(i))
  7. Replies
    20
    Views
    972

    VS 2008 Re: StreamWriter Bad Formating?

    You might try avoiding the stream.

    Using sw As New StreamWriter(fname)
  8. Replies
    4
    Views
    561

    VS 2008 Re: Getting a window's process name?

    If you want a list of window titles you could use something like this;

    For Each MyProc As Process In Process.GetProcesses
    If MyProc.MainWindowTitle <> "" Then...
  9. Replies
    4
    Views
    561

    VS 2008 Re: Getting a window's process name?

    For Each MyProc As Process In Process.GetProcesses
    If MyProc.MainWindowTitle = "VBForums - Visual Basic and VB .NET Discussions and More!" Then
    Return MyProc.ProcessName...
  10. Replies
    2
    Views
    440

    VS 2005 Re: Calling a vb6 dll from vb.net

    Did you add a reference to the dll?
  11. Re: Hide PictureBox image while preserving imagelocation?

    Ok thank you jmc.
  12. [RESOLVED] Hide PictureBox image while preserving imagelocation?

    I'd like to hide the contents of a picturebox while still preserving it's imagelocation, width, height, borderstyle, top, left, and sizemod properties. Is this possible?
  13. Replies
    7
    Views
    930

    VS 2005 Re: [RESOLVED] Turn monitor on/off?

    Right on, changing the constants worked great, thx Chris.
  14. Replies
    7
    Views
    930

    VS 2005 Re: Turn monitor on/off?

    Although my monitor didn't shut off, I got a 0 responses with this;

    #Region "API"
    Private Const HWND_BRODCAST As Integer = &HFFFF
    Private Const SC_MONITORPOWER As Integer = &HF170
    ...
  15. Replies
    7
    Views
    930

    VS 2005 Re: Turn monitor on/off?

    There is a system message if your monitor supports suspend mode. WM_SYSCOMMAND and the SC_MONITORPOWER flag.

    http://msdn.microsoft.com/en-us/library/ms646360(VS.85).aspx
  16. VS 02/03 Re: Remove Items Read from file, from ListBox

    Just do what jmc said.
  17. Re: Quicker way of doing this ...?

    ListBox1.Items.AddRange(l.ToArray()) should come after the Next


    Dim i As Integer
    Dim l As New List(Of String)
    For i = 0 To 999
    If Not...
  18. Replies
    2
    Views
    963

    VS 2005 Re: VB2005: Question about getdc and releasedc.

    GetDC returns a different value than GetPixel yet you're setting the return value of GetPixel to your hdc var. Try separating the calls.
  19. Replies
    2
    Views
    612

    Re: how to generate prime numebers

    Check this link.
  20. Re: Code works perfect but I want to change something

    Glad I could help. :)
  21. Re: Code works perfect but I want to change something

    try that one. I mistook numbers for an array then saw it was a collection of regex match objects.
  22. Re: Code works perfect but I want to change something

    For i As Integer = 1 To 3
    RichTextBox1.Text += numbers(i).Value & ", "
    Next
    RichTextBox1.Text = Strings.Left(RichTextBox1.Text, Len(RichTextBox1.Text) - 2)
  23. Re: Code works perfect but I want to change something

    RichTextBox1.Text += numbers(i).Value & ", "
  24. Re: how to add element to specific position?

    My pleasure :)
  25. Re: how to add element to specific position?

    Maybe something like this?

    Dim xEleList As XmlNodeList = xmldoc.GetElementsByTagName("Tanggal")
    xmldoc.InsertAfter(NewElement, xEleList.Item(0))
  26. Replies
    7
    Views
    614

    VS 2008 Re: 3 Listbox save *.txt file

    I would try something like this;

    Using SW As New System.IO.StreamWriter("c:\somefile.txt")

    For iCount As Integer = 0 To ListBox1.Items.Count - 1
    ...
  27. VS 2008 Re: Locating image in webbrowser during runtime?

    Not sure what exactly you are trying to do. Are you looking for the index of the HTML element, the image URL, the X,Y coordinates? I'm pretty sure you'll get some help if you can give some details to...
  28. Replies
    12
    Views
    870

    Re: Select Link in WebBrowser Help

    Hm ya, HTMLLinkElement would require a reference to either the Microsoft HTML Object Library or the IETag library. Try taking away 'As HTMLLinkElement' and see what happens. I don't have VB6...
  29. Replies
    29
    Views
    1,889

    Re: Web browser ?

    Can do for IE but haven't delved into mozilla api's at all.
  30. Replies
    12
    Views
    870

    Re: Select Link in WebBrowser Help

    Not sure what you named your text box so I just named it txtURL.


    Dim MyLink As HTMLLinkElement

    For Each MyLink In webbrowser1.document.links

    If MyLink.innerText...
  31. Replies
    33
    Views
    28,431

    VS 2010 Re: How tough is it to convert vb6 to vb.net?

    There's a little utility included in vs to convert your vb6 projects to .net but it just made a big broken mess every time I used it.

    There's really too much to talk about here so I would say just...
  32. Replies
    12
    Views
    742

    Re: string manipulation

    This should fix the problem of more than 3 occurences of "/".


    Dim num As Integer = Strings.InStr(9, bloglink, "/", CompareMethod.Text)
    If num > 9 Then bloglink =...
  33. Replies
    2
    Views
    368

    Re: Displaying the application version

    Your version increments with every publish, not every build.
  34. Re: How To Call a Form When Form Name is a String Variable

    Your predicament reminds me of this post.
  35. Replies
    5
    Views
    1,416

    Re: webbrowser inner html

    You may want to check out the WebBrowser's DocumentComplete event to grab that data. This way whenever a page is loaded your code is ran once, and only once, exactly when it is needed.

    I'm...
  36. Replies
    9
    Views
    783

    VS 2008 Re: Calculations giving Infinity?

    If I'm understanding you correctly, you are only required to know the hundreds?

    If that is the case, you only need ignore the left side of the number when it grows over 3 or 4 digits.

    Here's a...
  37. Thread: Wait in VB

    by ZenDisaster
    Replies
    8
    Views
    1,773

    Re: Wait in VB

    If you're going to use a busy waiting loop, use the one in the link provided by CDRIVE as it is not as likely to turn your processor into molten silicon.
  38. Re: Grab Selected Text From Webpage Using VB?

    Try Doc.selection


    Public Function GetSelection() As String
    GetSelection = CurrentDoc.selection.createRange().htmltext
    End Function
  39. Replies
    8
    Views
    838

    Re: Webbrowser & button click

    getElementByID does not return a collection of elements but rather a single element.

    Try removing .Item(0) from your first example.
  40. Re: Breaking code into managable pieces.

    Hi Rick, it sounds like you're on the right track. A standard module should work just fine. You need to hunt down which references are broken when you move the code and import those references into...
Results 1 to 40 of 196
Page 1 of 5 1 2 3 4



Featured


Click Here to Expand Forum to Full Width