Search Results - VBForums

Search:

Type: Posts; User: 4x2y

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    1
    Views
    150

    Re: Compare Textbox values

    Convert string to numeric, Val function is not supported in VBScript, so you can use CInt or CDbl function


    Dim NTGvar, NTPvar

    NTGvar = CDbl(textbox1)
    NTPvar = CDbl(textbox2)

    If NTGvar >...
  2. Replies
    4
    Views
    303

    Re: Simple 3-Way Splitter

    Yes, i have read this comment
    ' Function to keep Vertical Scrollbar at bottom of Textbox but i don't understand its meaning, that is, How Vertical Scrollbar can be at bottom of Textbox?


    Sorry...
  3. Replies
    4
    Views
    303

    Re: Simple 3-Way Splitter

    Nice, but i don't understand the need of this line SendMessage Text1.hwnd, EM_SCROLL, SB_BOTTOM, 0
  4. Re: What antivirus software do you use? I have buggy Avira 2015, but uninstalling it.

    I'm using BitDefender for many years, it is work great for me.
  5. Replies
    3
    Views
    124

    Re: Append string with multiple if statements.

    Or

    Dim UserNotes As New Text.StringBuilder
    UserNotes.Append(If(ExtAlpha.Checked, "Alpha", String.Empty))
    UserNotes.Append(If(ExtData.Checked, "Data", String.Empty))
    ...
  6. Replies
    8
    Views
    220

    Re: confused in file paths

    What you get and what is should be?

    What about replacing

    File_To_Upload_Path.Caption = App.Path & "\Incoming_Files\" & File2.Filename
    with

    File_To_Upload_Path.Caption = File2.Path & "\" &...
  7. VS 2015 Re: How do i disable this when i pause my program while debugging(screen pic attached

    I use this extension and it is working great.
  8. Replies
    1
    Views
    281

    Re: Difference between for and foreach loop.

    See this http://www.codeproject.com/Questions/655838/Difference-between-for-and-foreach-loop
  9. Replies
    7
    Views
    247

    VS 2013 Re: click mouse automatically

    Change the following line to meet the coordinates of the button you want to click it.
    SetCursorPos(0, 200) ' Move cursor to point 0, 200
  10. Replies
    7
    Views
    247

    VS 2013 Re: click mouse automatically

    Try this

    Imports System.Runtime.InteropServices
    Public Class Form1
    Private Declare Function SetCursorPos Lib "User32.dll" (ByVal X As Int32, ByVal Y As Int32) As Int32
    Private Declare...
  11. Re: you don't have the necessary permissions to use the .mdb object

    I searched for DDF ext and found that, the DDF file type is primarily associated with ACDSee, the question is that format compatible with Access?
  12. Re: you don't have the necessary permissions to use the .mdb object

    If possible, upload it too!
  13. Re: you don't have the necessary permissions to use the .mdb object

    Are you forget it?
  14. Re: you don't have the necessary permissions to use the .mdb object

    I found the following solution here, i hope it solve your problem.
  15. Re: How can I run the MSDN class example in VB.Net

    Yes, to use a class you have to call its public methods according to its documentation.
  16. Re: How can I run the MSDN class example in VB.Net

    You have to call one of AsynchronousSocketListener methods, e.g.

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    AsynchronousSocketListener.Main()
    ...
  17. Re: Textbox with scroll up and down the decimal value using mouse wheel.

    Here is a code to use with TextBox

    Private Sub TextBox1_MouseWheel(sender As Object, e As MouseEventArgs) Handles TextBox1.MouseWheel

    Dim v As Decimal

    If...
  18. Re: Textbox with scroll up and down the decimal value using mouse wheel.

    Use is NumericUpDown control instead of TextBox.

    Set Minimum, Maximum and Incerment properties to your desired values
  19. Replies
    4
    Views
    246

    Re: Multiple files saving with one dialog box

    It will fail if file Extension is > or < 3 characters, yours is 2 xy, also the user can specify different extension, but GetFileNameWithoutExtension(new_name) guarantee return correct result.
  20. Replies
    4
    Views
    246

    Re: Multiple files saving with one dialog box

    Just build the second file name from the sfd.FileName, e.g.


    'create a project directory
    Dim sfd As New SaveFileDialog() ' this creates an instance of the SaveFileDialog called...
  21. Replies
    11
    Views
    378

    Re: Timer Control Not Turning Off

    Maybe the Interval is changed somewhere else after setting to 0, e.g. another Timer procedure.
  22. Replies
    4
    Views
    182

    VS 2013 Re: Searching for a CheckState Solution

    Just remove Not :)


    CheckBox2.Checked = CheckBox1.Checked
  23. Replies
    4
    Views
    182

    VS 2013 Re: Searching for a CheckState Solution

    Not too hard

    Private Sub CheckBox1_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox1.CheckedChanged
    CheckBox2.Checked = Not CheckBox1.Checked
    ...
  24. Replies
    3
    Views
    160

    VS 2012 Re: Add items list from combobox to listbox

    If i understood well then try this

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    ListBox1.Items.Clear()
    For j = CInt(CB1.SelectedItem) To...
  25. Replies
    5
    Views
    209

    Re: Rewriting Reporting module - need advice

    Professional or not, you must do it using IF or other check statement.
  26. Replies
    5
    Views
    209

    Re: Rewriting Reporting module - need advice

    Add some IF statements, like this

    If CheckBox1.Checked = True Then
    Report.WriteLine("Nicotine - " + rNicMl.Text + "mL / " + rNicG.Text + "g (" + rNicDrops.Text + " drops)")
    ...
  27. Re: How to create form with border like the tray menu or volume control

    Set the following form's properties
    ControlBox = False
    MaximizeBox = False
    MinimizeBox = False
    Text = ""
  28. Re: Scanning files - Special folder paths

    Yes, agree, because Instr is not guarantee to return correct result e.g. it will always return True if special folder is part of root, that is if special folder is "C:\Windows", all subfolders under...
  29. Re: Scanning files - Special folder paths

    It is better to cache all system folders in an array on project startup then to check if a path is system folder or not just loop that array


    Private mstrSpecialFolderList(27) As String

    Public...
  30. Re: How to create a ContextMenu when the mouse button is pressed

    Creating context menu with two items when right click the form

    private void Form1_MouseClick(object sender, MouseEventArgs e)
    {
    if (e.Button ==...
  31. Re: Scanning files - Special folder paths

    It could be a character case problem, try this

    If InStr(1, sRoot, SpecialFolderPath(CSIDL_COOKIES), vbTextCompare) > 0 Then IsSpecialFolder = True
  32. VS 2010 Re: prevent user from closing via taskbar icon

    You can create your form class with that code and use it instead of standard form


    Option Strict On
    Option Explicit On

    Public Class MyForm
    Inherits System.Windows.Forms.Form

    ...
  33. VS 2010 Re: prevent user from closing via taskbar icon

    This should work

    Private Sub Form1_FormClosing(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing
    If MessageBox.Show("Are you sure?", "", MessageBoxButtons.YesNo,...
  34. Replies
    15
    Views
    471

    Re: Check Listbox - Move Cursor to Selected Item

    I didn't see your reply #13 before posting.

    Mark this thread Resolved
  35. Replies
    15
    Views
    471

    Re: Check Listbox - Move Cursor to Selected Item

    How the param of DBRecord_ShowSelected declared? ByRef or ByVal?
    Note if ByRef or ByVal is not exist, it is ByRef by default!
  36. Replies
    15
    Views
    471

    Re: Check Listbox - Move Cursor to Selected Item

    You didn't answer my question is objLB multiselect?
    When the ListBox is multiselect, setting the ListIndex property don't heaghlight the item, so you have to use objLB.Selected(idx) = True
  37. Replies
    15
    Views
    471

    Re: Check Listbox - Move Cursor to Selected Item

    Is objLB MultiSelect? If yes, use objLB.Selected(idx) = True
  38. VS 2010 Re: Keyboard listener when outside of application....

    I have created a simple SystemWideHotkey class for my own use

    It is attached with a sample code
  39. Replies
    3
    Views
    265

    VS 2013 Re: vb.net - double quote in string

    Try this


    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

    Dim sSource1 As String = "<input type=""hidden"" name=""fb_dtsg"" value=""123456""...
  40. Replies
    5
    Views
    304

    VS 2013 Re: Scanning and Deleting a Created Log - FIle

    Try this

    Option Strict On
    Option Explicit On

    Public Class CriticalValues
    Public Fan As Integer
    Public CPU_Temperature As Integer
    Public Graphics_Temperature As Integer
    ...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width