Search:

Type: Posts; User: 4x2y

Page 1 of 13 1 2 3 4

Search: Search took 0.11 seconds.

  1. VS 2010 Re: how to order liistview items by no. in the .ini?

    What do you mean by "how to order"? I have understood it as "how to sort" am i correct?

    After reviewing your code, i don't think it is populate the listview with the data in the ini file properly,...
  2. Replies
    11
    Views
    86

    Re: Inconsistency in radio button tab indices

    Is tab goes to yes, no, any in the same group?

    From your screen shoot, you have three group boxes "High Wind", "Direct sun" and "Precipitation"

    BTW: if there isn't any radio button checked,...
  3. Replies
    11
    Views
    86

    Re: Inconsistency in radio button tab indices

    There is no weird because the controls circled in green are in different container (as i see)
  4. Replies
    11
    Views
    86

    Re: Inconsistency in radio button tab indices

    This is standard behavior for RadioButton control, you can see this behavior in all Windows programs, e.g. the Notepad find dialog box.
  5. VS 2010 Re: how to order liistview items by no. in the .ini?

    You need a class for custom sorter, details and sample code is here
  6. Replies
    11
    Views
    86

    Re: Inconsistency in radio button tab indices

    There is a visual tab helper, go to the menu View> Tab Order, each control will overlapped with a number, click on these number in the order you want.
  7. Re: Maximize an External Application which is minimized in the system tray using VB.N

    No you cannot use Me keyword because that line is in a different module.

    Edit:
    The following is better


    Private Sub MyApplication_StartupNextInstance(sender As Object, e As...
  8. Re: Maximize an External Application which is minimized in the system tray using VB.N

    VB.NET has an option to make single instance application, do the following
    1- Go to the menu Project> prj_name Properties...
    2- In the application tab select the option "Make single instance...
  9. Replies
    3
    Views
    225

    Re: How to unhide the deleted files by WinRAR

    Read this topic it may help you.
  10. Re: Allowing a Visual Basic Application to Accept Drag-and-Drop Files

    When you get the dragged file name, pass it to a procedure to open it and read its contents and put inside the listbox.

    Try this


    Private Sub Form_OLEDragDrop(Data As DataObject, Effect As...
  11. Replies
    14
    Views
    190

    VS 2008 Re: what i'am doing wrong ????

    Ops sorry i missed to open the file :blush:
    try this new one


    Private Sub Form1_Shown(sender As Object, e As EventArgs) Handles Me.Shown
    Dim strMsg As String =...
  12. Replies
    14
    Views
    190

    VS 2008 Re: what i'am doing wrong ????

    Please give more details, what isn't work?
  13. Replies
    14
    Views
    190

    VS 2008 Re: what i'am doing wrong ????

    Why do you want to save the message in exe?

    In App1 save the message in a text file, in App2 read that file and show its contents in a message box, something like this
    in App1

    Private Sub...
  14. Replies
    14
    Views
    190

    VS 2008 Re: what i'am doing wrong ????

    Do you want App1 runs App2? if so
    Try this

    System.Diagnostics.Process.Start("path\to\showmessage.exe")
  15. Replies
    1
    Views
    94

    VS 2010 Re: Merging .TXT files

    You code for reading files is buggy, because FileData1.Split() is split by space while you must split by vbNewLine

    try this one

    Try

    Dim File1Data As String() =...
  16. Re: Allowing a Visual Basic Application to Accept Drag-and-Drop Files

    Most controls has OLEDragDrop event which you can use to open dragged file(s)

    Try this

    Option Explicit

    Private Sub Form_Load()
    Me.OLEDropMode = 1
    End Sub
  17. Replies
    3
    Views
    225

    Re: How to unhide the deleted files by WinRAR

    I don't use Avast, but any antivirus has an option to restore deleted malicious files.
  18. Re: VB - LED simulator Simulating a LED light emitting diode

    Use Label control and set its property BorderStyle to Fixed single, it will looks like Text box but it will not focused, so you can reduce the code by removing parts that back the focus to the last...
  19. Replies
    8
    Views
    145

    Re: How to improve this

    Double post...
  20. Replies
    8
    Views
    145

    Re: How to improve this

    The code without using Mod

    Private Sub Timer1_Timer()

    Static HH As Long
    Static MM As Long
    Static SS As Long
    Static TS As Long

    TS = TS + 1
  21. Replies
    8
    Views
    145

    Re: How to improve this

    I forgot to change variables declaration to Long instead of Single, it is better for speed and also there is no need for single type. There isn't any error can occur from that code, so no need for On...
  22. Replies
    8
    Views
    145

    Re: How to improve this

    Try this

    Private Sub Timer1_Timer()

    Static HH As Long
    Static MM As Long
    Static SS As Long
    Static TS As Long

    TS = (TS + 1) Mod 100
  23. Replies
    2
    Views
    213

    [VB 6] Re: Need Help PLEASE READ

    Try this

    Private Sub txtPlayerFireLocation_KeyPress(sender As Object, e As System.Windows.Forms.KeyPressEventArgs) Handles txtPlayerFireLocation.KeyPress

    If...
  24. Replies
    13
    Views
    193

    VS 2010 Re: Multi Item Property

    I think it was important to describe this step, because i knew it only from your properties window screen shoot, as it show the class name Form1 WindowsApllication1.SpecialForm

    Attachment 100091...
  25. Replies
    13
    Views
    193

    VS 2010 Re: Multi Item Property

    When i create a class with this code
    Public Class SpecialForm
    Inherits Form

    Public Property MyBorders As ToolStripStatusLabelBorderSides
    End Class

    i don't see MyBorders in the...
  26. Replies
    13
    Views
    193

    VS 2010 Re: Multi Item Property

    Can you please post a sample, because i did so but cannot see it in the form's properties window at design time.
  27. Replies
    13
    Views
    193

    VS 2010 Re: Multi Item Property

    As i understood, he wants to add his custom property Borders to a form and see/set it inside the form's properties window at design time.
  28. Replies
    13
    Views
    193

    VS 2010 Re: Multi Item Property

    Why you declare as array?

    Private mBorders As ClsPnlBorders
    <TypeConverter(GetType(ExpandableObjectConverter)), DesignerSerializationVisibility(DesignerSerializationVisibility.Content)> _
    ...
  29. Replies
    6
    Views
    2,326

    Re: VB10 - VBForums Reputations Saver 2

    Yes it has been fixed



    Only the following images > 16x16
    alienfrog.gif
    completeclear.gif
    confused.gif
    duck.gif
    wave.gif
  30. Replies
    6
    Views
    2,326

    Re: VB10 - VBForums Reputations Saver 2

    Thank you, i have updated my old VBforumReps.txt successfully :)
  31. Replies
    6
    Views
    2,326

    Re: VB10 - VBForums Reputations Saver 2

    Did you changed the format of the file VBforumReps.txt?

    I have added VBforumReps.txt (created by version 1) in the same folder of the version 2 in hope to merge new rep to previous but i got this...
  32. MsOf10 Re: Compare rows and copy to new sheet (VBA)

    Hi, me again :P

    Try this kickoff :)


    Sub FilterRows()

    Dim cDestination As Worksheet
    Dim cSource As Worksheet
    Dim intRow As Integer
  33. Replies
    5
    Views
    141

    MsOf10 Re: Set minimum value Column A (VBA)

    Try this

    Sub test()
    For j = 1 To 10 ' replace 10 with the number of last row
    If Trim$(Cells(j, 1)) <> vbNullString Then ' it is not empty
    If Val(Cells(j, 1)) < 10 Then
    ...
  34. Replies
    2
    Views
    191

    Re: c# programatically selecting dropdown value

    This error means that, the specified SelectedIndex is equal to or greater than the combobox items count.
  35. Replies
    1
    Views
    107

    VS 2010 Re: Image reuse in other forms

    Use code like this

    Form1.PictureBox1.Image = Form2.PictureBox1.Image

    @dvdk
    Post your problem in separate topic!!!!!!!
  36. Replies
    2
    Views
    122

    Re: Common dialog error

    It is better to separate different tasks in different subs/functions, this make coding, debugging and reading easy

    try this

    Private Sub Command1_Click()

    Dim strFileToOpen As String
    ...
  37. Replies
    5
    Views
    167

    Re: vb6 menu editor

    @The Welshman

    My code and the concept behind is similar to yours, but i didn't see it before submitting mine.
  38. Replies
    5
    Views
    167

    Re: vb6 menu editor

    Try this one

    Private Sub mnuSHSize_Click() 'show/hide map size
    mnuSHSize.Checked = Not mnuSHSize.Checked ' toggle check state
    SetFormCaption
    End Sub

    Private Sub mnuSHCoords_Click()...
  39. Replies
    8
    Views
    181

    VS 2010 Re: PictureBox screenshot

    Try this code, it is capture the screen region occupied by Picture1

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

    Dim imgBmp As New...
  40. Replies
    11
    Views
    239

    Re: function in visual basic

    funObjid_show variable is declared inside a function, so it is invisible outside that function.

    You must add Option Explicit at the first line of the code, it is important to warn you about...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4