Search Results - VBForums

Search:

Type: Posts; User: 4x2y

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: you don't have the necessary permissions to use the .mdb object

    Are you forget it?
  2. 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.
  3. 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.
  4. 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()
    ...
  5. 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...
  6. 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
  7. Replies
    4
    Views
    209

    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.
  8. Replies
    4
    Views
    209

    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...
  9. Replies
    11
    Views
    295

    Re: Timer Control Not Turning Off

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

    VS 2013 Re: Searching for a CheckState Solution

    Just remove Not :)


    CheckBox2.Checked = CheckBox1.Checked
  11. Replies
    4
    Views
    163

    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
    ...
  12. Replies
    3
    Views
    140

    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...
  13. Replies
    5
    Views
    192

    Re: Rewriting Reporting module - need advice

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

    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)")
    ...
  15. 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 = ""
  16. 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...
  17. 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...
  18. 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 ==...
  19. 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
  20. 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

    ...
  21. 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,...
  22. Replies
    15
    Views
    421

    Re: Check Listbox - Move Cursor to Selected Item

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

    Mark this thread Resolved
  23. Replies
    15
    Views
    421

    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!
  24. Replies
    15
    Views
    421

    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
  25. Replies
    15
    Views
    421

    Re: Check Listbox - Move Cursor to Selected Item

    Is objLB MultiSelect? If yes, use objLB.Selected(idx) = True
  26. 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
  27. Replies
    3
    Views
    219

    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""...
  28. Replies
    5
    Views
    286

    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
    ...
  29. Replies
    5
    Views
    286

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

    Extract the value from the line and compare with your value, I cannot give you a code because It is depending on the format of the line that contains the critical value.
  30. Replies
    5
    Views
    286

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

    Try this code

    Private Sub DeleteLogs()
    Dim sFiles() As String = IO.Directory.GetFiles("path\of\log\files", "*.log", IO.SearchOption.TopDirectoryOnly)

    For Each sFile In...
  31. Thread: change characters

    by 4x2y
    Replies
    2
    Views
    212

    Re: change characters

    Use Replace function, e.g. raw = raw.Replace("<br>", vbNewLine)
  32. Re: Choosing a file and write the location of the file in a text file in VB6

    To work with ListView

    Private Sub cmdNext_Click()
    Dim i As Long
    Open App.Path & "\folders.txt" For Output As #1
    Open App.Path & "\files.txt" For Output As #2
    For i = 0 To...
  33. Re: Choosing a file and write the location of the file in a text file in VB6

    It is not working code, it is just illustrate what to do, try the following

    Private Sub cmdNext_Click()
    Dim i As Long

    Open App.Path & "\folders.txt" For Output As #1
    Open...
  34. Re: Loop all elementi in userform and enabled to false

    Oh... never do that, if you set the form.enabled=false, it will stuck on the screen and you cannot move or close by mouse
  35. Re: Loop all elementi in userform and enabled to false

    Private Sub Command1_Click()
    On Error Resume Next ' To skip error that may occur if a control hasn't Enabled property, e.g. Line
    For Each ctl In Me.Controls
    ctl.Enabled = False
    ...
  36. Re: Choosing a file and write the location of the file in a text file in VB6

    Yes i know, but it is ugly and needs to use DriveListBox with it to choose drive.
  37. Re: Choosing a file and write the location of the file in a text file in VB6

    Choosing folders is a bit different because there is no component for "Browse for Folder" dialog, see this...
  38. Replies
    2
    Views
    176

    Re: Visible command kills graphics?

    Add GroupBox1.Refresh() after GroupBox1.Visible = True

    Public Class Form2

    Dim g As Graphics

    Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
  39. VS 2013 Re: how can i make one string from different listview lines

    Dim s As String = String.Empty
    For j = 0 To ListView1.Items.Count - 1
    s &= ListView1.Items(j).Text & ListView2.Items(j).Text & ListView3.Items(j).Text
    Next...
  40. Replies
    21
    Views
    506

    Re: Error 5 on Something so Simple

    It works, but if that code is part of math program, it should popup error message, try to calculate using Windows calculator, it will say Invalid input
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width