dcsimg

Search:

Type: Posts; User: Arve K.

Page 1 of 13 1 2 3 4

Search: Search took 0.90 seconds.

  1. Re: Is it possible to prevent another keypress event after one key is already pressed

    looks like vb6...
  2. Thread: Toot Toot!

    by Arve K.
    Replies
    12
    Views
    844

    Re: Toot Toot!

    Congratulations :) Thanks to you, I read the documentation ;)
  3. Replies
    9
    Views
    476

    Re: Procedure too long

    Don't use a Word document. If you can't post the code here for whatever reasons, then use a service like Pastebin and share the link here
    Since the name of your procedure is CommandButton, it seems...
  4. Re: [RESOLVED] Odd question regarding the vertical line of "dots" on a toolstrip cont

    Those are the move handles for the Toolstrips... You can hide them with the .GripStyle property
  5. Re: HELP writing a program in VB containing Listboxes etc.

    Hungarian notation are so last decade :cool:
  6. Re: Unable to get transparent image in picturebox to stay transparent

    It just looks like the font you are using have some un-smooth edges:
    167779

    Aliased vs anti-aliased:
    167777

    Or click here to open the source of the image above...
  7. Re: Unable to get transparent image in picturebox to stay transparent

    Hi jumper, maybe its just the font, but it doesn't seem to be anti-aliased.


    e.Graphics.TextRenderingHint = TextRenderingHint.SingleBitPerPixel
    e.Graphics.DrawString(string1, font, solidBrush,...
  8. Re: Font Size "sometimes" gets very small or very big (sometimes)

    Good luck ;)
  9. Re: Font Size "sometimes" gets very small or very big (sometimes)

    If the sizes of these bitmaps are not consistent then this would be a good candidate for the root cause of your problem.
  10. Re: Font Size "sometimes" gets very small or very big (sometimes)

    You should post the code for the DeserializeFontObject function.
  11. VS 2017 Re: Auto Scroll Bar Margin / Position Adjustments

    Put a Panel inside your form and move your controls (except the title bar) to this panel, and then use the auto-scroll property of the panel instead.
  12. Re: the designer cannot process name "formattingenabled' at line 30.

    It is present, it always is. However, it is hidden in your project folder so you won't be able to see it unless you choose to see hidden files and folders.
  13. VS 2017 Re: How to select multiple items in Simulated Listview drawn to form

    Yeah, it would only work for the actual ListView object unfortunately :)
  14. Re: the designer cannot process name "formattingenabled' at line 30.

    There should be no need for copying anything, as Visual Studio will automatically create the folder and its content for you.
  15. VS 2017 Re: How to select multiple items in Simulated Listview drawn to form

    What exactly is a 'Simulated Listview'? Do you mean that you are creating and adding it to the form's Control collection at run-time instead of design time?

    If so, did you enable the MultiSelect...
  16. Re: the designer cannot process name "formattingenabled' at line 30.

    Have you tried to delete the .vs folder and then do a rebuild? Usually it helps for these occasional hiccups...
  17. Replies
    6
    Views
    334

    VS 2012 Re: Adding two text box to sum text box

    A little, but maybe not so known feature of the Label, is that if you double click it, it will copy whatever text it is holding.
  18. Replies
    9
    Views
    333

    Re: visual studio 2015 replacement

    Yes, just like the first result in a Google search for 'visual studio visual basic' would have told you...
  19. Re: How best to watch a directory for changes such as number of files

    The forum doesn't handle attached images very well. I suggest you use a service like Lightshot (prnt.sc), and then share the url to your image.

    They also have a nice app you can download that...
  20. VS 2017 Re: Simple Text Encryption Capable Of Being Decoded By Hand

    Why re-invent the wheel?

    .Net is already capable of encrypting/decrypting.

    Edit:
    Or I might have misunderstood the topic. In that case, you should create some kind of table and map each...
  21. Re: Wallpaper is not streching like it should and I don't know how to fix it...

    Just a note...
    Dim ScreenHeight As Int32 = My.Computer.Screen.WorkingArea.Height
    is actually the screen height minus the Taskbar height (normally around 40 pixels if the Taskbar is not...
  22. Replies
    4
    Views
    245

    VS 2017 Re: Print Array in a Label

    I would probably go for a Dictionary(of DateTime, SomeWeatherClass), and then compare the DateTimePicker.Value with the Keys of that dictionary and then use the Value for the correct Key...
  23. Re: How to make forms and controls load faster...

    The app looks cool :)
  24. Re: To dynamically control some dynamically added controls

    You can add a List(of Control) to the Tag property instead:

    Option Strict On
    Option Explicit On

    Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles...
  25. Replies
    73
    Views
    3,574

    Re: Integer divergence calculator

    That is so ugly; use interpolation:

    Label3.Text = $"{num1} to the power of {expo} is {result}"
  26. VS 2017 Re: How do you change the form that first opens?

    I find that quite unlikely, but ok...


    As the message says, it should be inside a method (sub). Put it in the form_Load procedure.


    frmThree is obviously a Form, so why not declare it as...
  27. VS 2017 Re: How do you change the form that first opens?

    Sounds like your form (frmThree) is TopMost. Either set the TopMost property to False, or make the new form TopMost:


    Dim SecondForm As New frmSecond With {.TopMost = True}...
  28. Re: How to make forms and controls load faster...

    This would be my first try: SuspendLayout
  29. VS 2017 Re: How do you change the form that first opens?

    Project > Properties (at the bottom) > Application > Startup form
  30. Replies
    9
    Views
    439

    VS 2017 Re: Form went blank

    Can you open the file containing the code (form?.vb) in, for example, Notepad?
  31. Replies
    4
    Views
    215

    Re: textbox format - numbers

    .ToString("N0")
  32. Replies
    73
    Views
    3,574

    Re: Integer divergence calculator

    The System.Numerics assembly must be referenced in order to use the BigInteger.
  33. Replies
    2
    Views
    204

    Re: form on top of all

    This should do the trick:


    Private Shared ReadOnly HWND_TOPMOST As New IntPtr(-1)
    Private Const SWP_NOSIZE As UInt32 = &H1
    Private Const SWP_NOMOVE As UInt32 = &H2
    Private Const TOPMOST_FLAGS...
  34. Re: [RESOLVED] Centering a second form on the main form

    Certainly.



    Private Sub Button11_Click_1(sender As Object, e As EventArgs) Handles PreviewCSV.Click
    SpinnerForm.StartPosition = FormStartPosition.CenterParent
    SpinnerForm.ShowDialog()...
  35. Re: Object initialization can be simplified - message

    Instead of this...


    Dim TextFormat As StringFormat = New StringFormat
    TextFormat.LineAlignment = StringAlignment.Center
    TextFormat.FormatFlags = StringFormatFlags.FitBlackBox


    you can...
  36. Replies
    73
    Views
    3,574

    Re: Integer divergence calculator

    165537
  37. Re: Unable to pass a string with spaces to a batch file

    :blush:
  38. Re: Unable to pass a string with spaces to a batch file

    I was planning to post ProcessStartInfo.ArgumentList, but interestingly enough, "ArgumentList is not a member of ProcessStartInfo" :eek::confused:

    Edit: Ah.. .Net Core :p
  39. Replies
    3
    Views
    254

    VS 2017 Re: Conversion from String Error

    Well, whoever wrote that book should be punished for teaching bad practices :rolleyes:
  40. Replies
    13
    Views
    477

    Re: Handled Exception

    You will also get an warning with that code, telling you that a return statement is missing.

    Private Function IsFileOpen(fileName As String) As Boolean
    Try
    Using fs =...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width