Search:

Type: Posts; User: BXA1

Search: Search took 0.03 seconds.

  1. Replies
    2
    Views
    554

    Re: [2008] Custom VB.net Control

    It sounds like you want to create a component not a user control. Controls have interfaces.

    Right click your project in the solution explorer, and click add, and select component. When you add...
  2. Replies
    4
    Views
    897

    Re: [VB2008] Root Namespace

    Good article. Thanks.
  3. Replies
    4
    Views
    897

    Re: [VB2008] Root Namespace

    Update:

    If I create a new project by going to File->New Website, it creates a WebSite, and the option to set a namespace is not in the properties.

    If I create a new project by going to...
  4. Replies
    4
    Views
    897

    [RESOLVED] [VB2008] Root Namespace

    I VB2005 you can set the root namespace name of a project under the project properties. Where can I set this using VB2008?

    Thanks!
  5. Thread: 8" Screen

    by BXA1
    Replies
    1
    Views
    358

    Re: 8" Screen

    The size of the screen is probably not the concern. You would be interested in the desktop screen resolution. I think the minimum resolution in Win XP is 800X600. With a screen that small, that is...
  6. Replies
    1
    Views
    465

    Re: [RESOLVED] (.Net 2003) Debugging DLL

    It appears that it will let me trace in using the F11. I just can't right click and 'Goto Definition' for functions.
  7. Replies
    3
    Views
    1,561

    Re: VB.net GRAPH tutorial

    If you are using VB 2008 (I think it can work in 2005 also) take a look at the Microsoft Chart Controls for Microsoft .NET Framework 3.5. I have used it to display datetime data and it worked well. ...
  8. Replies
    1
    Views
    465

    [RESOLVED] (.Net 2003) Debugging DLL

    I have a Dll project written in VB.Net 2003 which compiles a Dll used in other projects. I need to debug this Dll while it is being ran in the other project. Does anyone know how I can do this, or...
  9. Replies
    5
    Views
    671

    Re: control arrays

    You need to make sure you set the array to an actual instantiated (right word?) object or declare each of them as new.


    Dim myRTBs(10) As RichTextBox
    For tickI As Integer = 0 To...
  10. Replies
    3
    Views
    491

    Re: [2008] copying a file

    If you did want to have unique names for the DBs (which would probably make keeping track of them easier) then you could use something like this to create new ones:


    Private Sub CreateDB(ByVal...
  11. Replies
    3
    Views
    491

    Re: [2008] copying a file

    You can loop through to see if the new name exists until you find a blank one, then copy the blank db as the new name.


    Const cMAXDBS As Integer = 100
    Dim strFolderPath As String...
  12. Re: [2005] Windows installer -- already there?

    That is wierd. It could be that the sp2 installation is corrupt maybe.

    If you goto 'Start'->'Run' type in:
    C:\WINDOWS\system32\msiexec.exe /?
    it will tell you your installer version. It may be...
  13. Re: [2005] Windows installer -- already there?

    .Net 2.0 will install using either Installer 2.0 or 3.0, but is a seperate install.

    .Net Framework 2.0 - (From Microsoft.com)

    System Requirements

    * Supported Operating Systems: Windows...
  14. Re: [2005] Windows installer -- already there?

    Windows Installer 3.0 is included with XP SP2. I am also pretty sure that the 3.0 installer is one of the 1st things download when doing a windows update. If the user isn't running SP2 and has...
  15. Replies
    7
    Views
    874

    Re: How to make a control refer to itself?

    Like said above, if this is a handler, you can have the same function handle multiple events, like so. You can use sender to access the obj that raised the event.


    Private Sub...
  16. Re: [02/03] Newbie: Making my own events

    You would raise an event so that you can handle the event outside of your class (like a call back sort of).


    'Code in your class
    Public Class Class1
    'declare an event with some stuff to...
  17. Thread: [2008] Database

    by BXA1
    Replies
    32
    Views
    1,425

    Re: [2008] Database

    If it is going to be a light weight app with no heavy data access by a large number of users, you may just consider storing the data in xml files in the app or user directory.
  18. Replies
    3
    Views
    3,886

    Re: [2005] Datagridview - Dock = Fill

    It looks as if your tablelayoutpanel is wider than your form. Right click the datagridview, and click the 'Select 'TableLayoutPanel1' (or whatever you named it). Then in the properties box, set...
  19. Re: Check for duplication before insert

    You can do a read, and search for that entry first.


    conn.Open()
    Dim cmd As New SqlCommand()
    cmd.Connection = conn
    cmd.CommandType =...
  20. Replies
    5
    Views
    732

    Re: [2005] Disabled Background Colour ???

    You can use the on paint event, and set the color based on the enabled setting.



    Private Sub Button1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles...
  21. Re: can you get all the computer user names and passwords to show in a text box?(VB 2008)

    You can list all accounts that have access to the computer using



    Imports System.Management

    Public Class Form1
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As...
  22. Replies
    7
    Views
    708

    Re: [2008] Recursion, Maybe?

    You could probably just reload the data when the form is made visible.



    Private Sub Form1_VisibleChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.VisibleChanged
    ...
  23. Re: [2008] Only allow numerics in input box?

    When you store the input to the list box, you could remove the characters you don't want.



    Dim strResponse As String = InputBox("Numbers Please", "Numbers only")
    Dim strNew As...
  24. Replies
    6
    Views
    935

    Re: Convert Text To Date

    I would suspect your error is being thrown by


    Dim tbIn As TextBox = DirectCast(sender, TextBox)


    What is your sender's type?

    The date conversion seems to work correctly. This...
  25. Replies
    3
    Views
    623

    Re: [2008] Sending SMS - text message

    There is a very good article on code projects about using SMTP to send text messages.
    http://www.codeproject.com/KB/IP/SendTxtMsg.aspx
  26. Thread: Graphics

    by BXA1
    Replies
    4
    Views
    608

    Re: Graphics

    You can use the graphics object.



    'set new bitmap scale of pic
    Dim objBitmap As New Bitmap(picturebox1.Width, picturebox1.Height)
    'create new graphics object
    ...
  27. Replies
    3
    Views
    2,871

    Re: arrays initialize in vb.net

    I don't think you can do initialization with set bounds. You could do this.



    Dim imageGrid(10, 12) As tileGrid_struct
    Dim myTileNoZ(,) As Integer = {{0, 0, 0, 0, 1, 0, 0, 1,...
  28. Replies
    2
    Views
    744

    Re: [2005] Calling a form dynamically ?

    You can do this using VB.Net Reflection.Assembly.



    Private Sub TreeView1_AfterSelect(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles...
  29. Replies
    9
    Views
    4,793

    Re: [2008] MouseDoubleClick and MouseDown Help

    I am not sure what all the extra code is for, but wouldn't this do what you want?



    Imports System.Drawing.Drawing2D

    Public Class Form1
    Inherits System.Windows.Forms.Form

    Private...
  30. Re: [2008] I need help with this chart it's upside down.

    You have to remember that the XY of the rectangle is topleft.



    Private Sub vbar()
    Dim I As Integer
    Dim X1, Y1, W, H As Integer


    ...
  31. Re: [2008] how to use one context menu in all forms??

    I would add a new classes and build the context menu. Note that any variables you use in the class handlers will need to be set by the calling form before hand (such as a filename).

    Right click...
  32. Re: [2008] Remove text from textbox1 between special characters

    InStr(myStr, "<<<")

    Will give you the character location of the first occurrence of "<<<" no matter where it is.

    for instance

    Dim myStr As String
    myStr = "aaaaa<<<a bunch...
  33. Re: [2008] Remove text from textbox1 between special characters

    You can use the left and right functions.



    Dim myStr As String
    myStr = "aaaaa<<<bbbbbbb>>>aaaaa"
    Dim newStr As String
    newStr =...
  34. Re: Changing an objects' property inside custom user control

    You should create a property in your user control



    Public Property SetText() As String
    'Property SetText() As String
    Get
    Return Me.Textbox1.Text
    End Get...
  35. Re: [2008] How do I make a VB.NET form the child of a form or container (not MDI)

    This will create from2 within form1. Is that what you needed?



    Dim extForm As Form2 = New Form2
    extForm.TopLevel = False
    extForm.Parent = Me
    extForm.Show()
  36. Re: [2008] Removing items from a ListBox

    This should do the trick. Removes the zero index for each interation.



    For ticker As Integer = 0 To Me.ListBox1.SelectedItems.Count - 1
    ...
  37. Replies
    1
    Views
    5,223

    Re: how to convert hex to string in vb6.0

    It sounds like your receiving ASCII bytes. If so, this should work.

    Read your data into a byte array and use strconv.


    Dim myBuffer() as Byte
    Dim myStr as String
    myStr =...
Results 1 to 37 of 37



Click Here to Expand Forum to Full Width