Search:

Type: Posts; User: Arve K.

Page 1 of 13 1 2 3 4

Search: Search took 0.09 seconds.

  1. Thread: c# to vb.net

    by Arve K.
    Replies
    8
    Views
    913

    Re: c# to vb.net

    Translated using InstantVB.


    Option Infer On

    Imports System
    Imports System.Collections.Generic
    Imports System.Linq
    Imports System.Text
    Imports System.Threading.Tasks
  2. VS 2017 Re: How do you make a loop which display the value of seconds from 0 to 60

    That won't work...
  3. VS 2017 Re: suspend screen updating and after code is finished resume

    SuspendLayout
  4. Re: Adding lines of text to a list of Strings.

    You should use the List.AddRange method, which accepts the array from the .ReadAllLines method.


    Option Strict On
    Option Explicit On

    Public Class Form1
    Dim list As New List(Of String)
    ...
  5. VS 2017 Re: Start Program At Computer Startup With Admin and NO UAC

    I would start here...
  6. Replies
    4
    Views
    1,970

    Re: Message box with random input

    Option Strict On
    Option Explicit On

    Public Class Form1
    Dim rn As New Random

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    ...
  7. Re: Is it possible to prevent another keypress event after one key is already pressed

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

    by Arve K.
    Replies
    12
    Views
    1,299

    Re: Toot Toot!

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

    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...
  10. 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
  11. Re: HELP writing a program in VB containing Listboxes etc.

    Hungarian notation are so last decade :cool:
  12. 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...
  13. 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,...
  14. Re: Font Size "sometimes" gets very small or very big (sometimes)

    Good luck ;)
  15. 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.
  16. Re: Font Size "sometimes" gets very small or very big (sometimes)

    You should post the code for the DeserializeFontObject function.
  17. 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.
  18. 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.
  19. 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 :)
  20. 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.
  21. 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...
  22. 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...
  23. Replies
    6
    Views
    738

    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.
  24. Replies
    9
    Views
    814

    Re: visual studio 2015 replacement

    Yes, just like the first result in a Google search for 'visual studio visual basic' would have told you...
  25. 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...
  26. 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...
  27. 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...
  28. Replies
    4
    Views
    1,631

    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...
  29. Re: How to make forms and controls load faster...

    The app looks cool :)
  30. 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...
  31. Replies
    7
    Views
    2,115

    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...
  32. Replies
    7
    Views
    2,115

    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}...
  33. Re: How to make forms and controls load faster...

    This would be my first try: SuspendLayout
  34. Replies
    7
    Views
    2,115

    VS 2017 Re: How do you change the form that first opens?

    Project > Properties (at the bottom) > Application > Startup form
  35. Replies
    9
    Views
    3,417

    VS 2017 Re: Form went blank

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

    Re: textbox format - numbers

    .ToString("N0")
  37. Replies
    2
    Views
    627

    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...
  38. 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()...
  39. 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...
  40. Re: Unable to pass a string with spaces to a batch file

    :blush:
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width