Search:

Type: Posts; User: Peter Swinkels

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds; generated 4 minute(s) ago.

  1. Replies
    5
    Views
    173

    Re: Excel file remains opne

    I am not entirely sure what is going on but:

    To create an object reference to an open workbook using its file path and then close it:


    Dim wb As Excel.Workbook

    Set wb = GetObject(path)
    ...
  2. Replies
    6
    Views
    144

    Re: Add table with grid in datareport

    This looks like VBA code which belongs here: https://www.vbforums.com/forumdisplay.php?37-Office-Development. As to your question:
    ...
  3. Replies
    6
    Views
    208

    Re: Loop not working

    A few tips:
    1. Give controls and variables meaningful names.
    2. "If boolean = True Then ..." can be shortened to "If boolean Then ..." .
    3. Don't hardcode absolute paths and take a look at this:...
  4. Replies
    14
    Views
    291

    Re: More programmer pet peeves

    I remember downloading code and having to untangle the mess before I could use it... Also had a collaegue once who just copy-pasted his code together from the web and help files and whom you needed...
  5. Re: How do I create lots of controls faster in a dynamic form?

    A tip unrelated to your question but these lines can be shortened:
    Y = Y + 460
    Count = Count + 1
    to:
    Y += 460
    Count += 1

    As to your question, calling DoEvents should fix the freezing issue...
  6. VS 2019 Re: Check if the Column contains a value or not.

    Hi biggie cheese, welcome to the forum!

    Could you provide the relevant code relating to your table?

    yours,
    Peter Swinkels
  7. Re: any sample record screen or area or active window with Audio+video and save mp4 ?

    Perhaps this related topic will be of help https://www.vbforums.com/showthread.php?673844-Video-recorder-through-webcam-vb6?
  8. Replies
    15
    Views
    788

    Re: Re PlanetSourceCode

    Hi, no it isn't loading for me either. Check https://www.isitdownrightnow.com/. This seems more like a question for Chit Chat or the General Developers forum btw.
  9. Re: Why doesn't my cursor show ?

    Okay, okay. What version of Visual Studio are you using? I asked about ByVal because I remember it used to be inserted automatically by Visual Studio. I just checked and ByVal doesn't appear in...
  10. Re: Why doesn't my cursor show ?

    What cursor? A mouse cursor or a cursor in a textbox? Also shouldn't there be a Handles clause or did you use AddHandler? And a few nitpicks: I believe ByVal is unnessary in this case and why aren't...
  11. Re: How to disable mouse and keyboard for 10 seconds

    https://stackoverflow.com/questions/6406522/how-to-create-a-splash-screen-for-vb-net-program?
  12. VS 2010 Re: How to copy text from some internet document to RichTextBox?

    Okay. You’re welcome. But what were you trying to do?
  13. Replies
    6
    Views
    341

    Re: Catching an event in a serice

    Not an answer to your question, but why are you importing System.Diagnostics and then writing a full reference to stuff such as System.Diagnostics.EventLog? And why do you want to register mouse...
  14. Re: Registry Name from Handle

    https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regqueryinfokeya?
  15. VS 2013 Re: Vb net permutation list only between odds...

    Hmmm, the only thing that comes to mind is sorting the data before displaying it. At this moment I can't access vb.net.
  16. VS 2013 Re: Vb net permutation list only between odds...

    Could you post an example of the output you expect using { 1,2,3}?
  17. VS 2013 Re: Vb net permutation list only between odds...

    Hi Fikri,

    First of all your code is C#, this is a vb.net forum. If you would like to convert it to vb.net here's a useful link: https://converter.telerik.com/

    Evens with events and odds with...
  18. Re: Why is my TextBox not scrolling to the end ?

    Poppa, a few more tips (some of them I mentioned earlier):

    1. Use Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) to retrieve a user's profile path.
    2. Declare variables on a...
  19. Re: Why is my TextBox not scrolling to the end ?

    @wes4bit, I was referring to Poppa Mintin's code. Sorry for the confusion.
  20. VS 2019 Re: Problem switching source on Acrobat Viewer

    I made some changes to your code:



    Public Class Form1
    Public temp_counter As Integer = 1

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    ...
  21. VS 2010 Re: How to copy text from some internet document to RichTextBox?

    Hi ZlayaNewbie,

    You would normally do that by looking at the file's extension. If you haven't already done so, you might want to enable displaying extensions in Explorer:



    You will also need...
  22. Replies
    9
    Views
    278

    VS 2017 Re: Array in a Class

    This is something you see with people new to programming a lot, they just know enough to throw some code at a development tool to make something happen but lack any broader understanding and...
  23. VS 2010 Re: How to copy text from some internet document to RichTextBox?

    @zlayanewbie: the code I posted was just an example on how you could improve your code's style. Not what it does. Also, I told you you need to use format specific methods to retrieve the desired...
  24. Replies
    9
    Views
    278

    VS 2017 Re: Array in a Class

    Hello lchen0729 (or Larry?), welcome to the forum!

    I am not entirely sure what your question is, but if you want to retrieve/modify an array's contents through a property you might want to look...
  25. Replies
    19
    Views
    690

    Re: What Causes This?

    A blank project has a few external components by default. Examine a project file in a text editor or look at the components being used by your project. There are a few you can't even uncheck.
  26. Re: I keep getting this error (Visual Basic has stopped working)

    Hi, perhaps you could upload the relevant code? Is the form in question messing with API functions? Improper calls could easily make your program crash like that.
  27. Re: Why is my TextBox not scrolling to the end ?

    Hi Poppa Mintin, I examined your code and have a few coding tips:

    1. Personally I don't like declaring all variables on a single line.
    2. Initialize strings to Nothing or String.Empty rather than...
  28. VS 2010 Re: How to copy text from some internet document to RichTextBox?

    Hello ZlayaNewbie,

    Unless your documents are plain-text you will need to use a method specific to the format in question to load and display a particular document. Also, a coding tip:

    If you...
  29. Re: [VB2008 Express] API to determine selected ListBox item in an external applicatio

    You’re welcome. And yes, I admit to being guilty of self promotion. However I wouldn’t have recommended it unless I believed there would be something that really might help you. Did you actually look...
  30. Re: [VB2008 Express] API to determine selected ListBox item in an external applicatio

    Hello Aporokizzu. Welcome to the forum!

    You might want to look at this page: https://docs.microsoft.com/en-us/windows/win32/controls/tree-view-control-reference. Also, there are a few programs on...
  31. Re: How to make CsvToCsvConverter.vbs based on following code

    You're welcome!
  32. Re: How good is my source coding or what, then???

    That is good to know. Thanks.
  33. Re: How good is my source coding or what, then???

    1. Use On Error Resume Next only when you are certain you want to ignore errors.
    2. No comments.
    3. Hardcoded file handles. You might want to use FreeFile() to retrieve an available handle before...
  34. Re: Horizontal and Vertical Dot/Pixel Pitch from EDID

    https://stackoverflow.com/questions/10073261/how-to-fetch-the-native-resolution-of-attached-monitor-from-edid-file-through-vb ?
  35. Re: Is there any way to listen to WebSockets in Visual Basic .NET

    https://docs.microsoft.com/en-us/dotnet/api/system.net.sockets.tcpclient?view=netcore-3.1 ?
  36. Replies
    2
    Views
    283

    Re: Disable/Enable keyboard mapping

    https://www.vbforums.com/showthread.php?609106-change-keyboard-layout-globally ?
  37. Replies
    3
    Views
    227

    Re: Newbie Question

    Hello JonS 123, welcome to the forum.

    Here is a link about *.XLL files https://docs.microsoft.com/en-us/office/client-developer/excel/creating-xlls. What is it you want to accomplish? There might...
  38. VS 2017 Re: VB .Net Different Arithmetic Result in Two Apps

    Hello manimas, welcome to forum!

    Could you explain what you are trying to do? This might make it easier to understand the problem.

    yours,
    Peter Swinkels
  39. Re: Font and controls suddenly changed/resized

    The only thing I can think of is changing the DPI settings for the misbehaving programs in the compatibility settings.
  40. Replies
    75
    Views
    1,709

    Re: String sort

    Hello Veins333, welcome to the forum!

    I am not sure what you are asking, but if you want to iterate through each character in a string, look in to the String.Chars property and String.ToCharArray...
Results 1 to 40 of 498
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width