Skip to content

Visual Basic

Visual Basic Questions

This category can be followed from the open social web via the handle visual-basic@forum.codeproject.com

34.4k Topics 120.1k Posts
  • Displaying image

    help tutorial question learning
    4
    0 Votes
    4 Posts
    0 Views
    N
    sorry, i dont understand that. how about u paste some of your code or email me your project .zip'ed if its too long to paste. nadroj_@hotmail.com ------------------------ Jordan. III
  • The ListManager's position must be equal to rowNum

    help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    3 Posts
    0 Views
    A
    Hi Dave, Thanks for getting back to me. I installed the same .NET Framework that came with my VB.NET . It's really odd. Vi
  • Cash Registers Question !

    csharp json question
    3
    0 Votes
    3 Posts
    1 Views
    W
    You can communicate with some models of casio electronic cash register (ECR) using serial communications. When I say some, I believe that certain models require an aditional comms board to be fitted. You will also require the protocol manual for the specific model of ECR to understand the format of the data to send. An understanding of how to manually program the ECR would help you understand the protocol manual. If you have no experience of this technology then you probably have a steep learning curve ahead. Have you climbed the north face of the Eiger? :) Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students LearnVisualStudio.Net
  • Type 'DataListCommandEventArgs' is not defined.

    csharp asp-net help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Checkedlistbox control

    question csharp graphics json
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • AD: Visual Basic Database tutorial

    tutorial database
    2
    0 Votes
    2 Posts
    0 Views
    S
    hi im 18 yrs old programmer i know how to make programs with database but i also want to try other techniques in coding a program using database. can u give me some sample code or advice in writing program (im usually dont write functions) truly yours jaydee
  • text from form1 to form 2

    tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    D
    xtremean wrote: i've never come across how to get the string in a text box on one form another text box/label/whatever on another form. That's because your thinking about the code on one form directly manipulating the controls on another form. The reason you don't see that in the books is because it's bad practice. What you should be thinking about is having public variables somewhere that both forms can access. For example, you have two forms, one has a string that needs to be passed to the second. The first form just has a label, a textbox and a button on it: Public Class Form1 Inherits System.Windows.Forms.Form   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim newForm As New Form2   newForm.strDataThisFormNeeds = TextBox1.Text newForm.Show() End Sub End Class Form1 is simple, just type something in the textbox and click a button to send the string to Form2. The code in the button click just creates a new instance of Form2 and set the public variable that Form2 exposes to the string in Form1's textbox. Form2 just has a label and a textbox on it and exposes a public string like this: Public Class Form2 Inherits System.Windows.Forms.Form   Public strDataThisFormNeeds As String   Private Sub Form2_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Activated TextBox1.Text = strDataThisFormNeeds End Sub End Class This is just a VERY simple example and does NOT show all the possible methods of passing data between forms! RageInTheMachine9532
  • Control inside datagrid

    database graphics help question lounge
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Hide text Tab in a TabControl

    design tutorial
    3
    0 Votes
    3 Posts
    0 Views
    S
    Thanx for the suggestion. in fact I've found what I was looking for : Panel. ;P I now use Panel to put all control I need and I use a toolbar with this button to change panels. panel1.bringtofront() etc.... Bye Sybux
  • 0 Votes
    2 Posts
    0 Views
    S
    You can try to make a little function that return string and manipulate your data in this function !
  • Formatting a diskette?

    csharp help question
    5
    0 Votes
    5 Posts
    0 Views
    D
    You can't pass that information to SHFormatDrive, but you can set the volume label after the disk is successfully formatted. You can use SetVolumeLabel, declared in kernel32, by passing in the root path of the drive, like A:\, and the name you want: Private Declare Function SetVolumeLabel Lib "kernel32" \_ Alias "SetVolumeLabelA" ( \_ ByVal rootPath As String, \_ ByVal newLabel As String) \_ As Integer Dim rc as Integer   rc = SetVolumeLabel( "A:\", "LabelTest" ) RageInTheMachine9532
  • E-Mail problems with SMTP

    csharp com sysadmin help workspace
    3
    0 Votes
    3 Posts
    0 Views
    K
    I posted my question on 4 different message boards and received great feedback from all. I like to take the info I received and post the solution if possible so others might benefit if they run into the same problem. There is a great website that was suggested and I used which gives in depth info on System.WebMail. The site is http://www.systemwebmail.net/ and I would highly recommend it to anyone with questions like the one I had. Also, one suggestion was to look for the inner exception. I used the following code and found that my inner exception gave me much more info as to what my real problem was. My inner exception was ‘550 Relaying is prohibited’. Relaying needs to be configured correctly on our server. Without the inner exception, I wouldn’t have known this. Try SmtpMail.SmtpServer = "EX_SRVR" SmtpMail.Send(Message) Catch ex As System.Web.HttpException strLogMsg = "Error connecting to exchange server: " ex.Message If ex.InnerException.ToString <> Nothing Then MsgBox("The following InnerException reported: " & ex.InnerException.ToString) End If End Try Thanks again to all!! :) Lost in the vast sea of .NET
  • Data Binding

    csharp wpf wcf help
    2
    0 Votes
    2 Posts
    0 Views
    E
    You can bind your UserControl to the Textbox's Text property (or any other properties). Here's an example: UserControl1.DataBindings.Add(New Binding("UserControlProperty", TextBox1, "Text")) Check MSDN on Data Bindings[^] for more information. Edbert P. Sydney, Australia.
  • application package?

    csharp visual-studio question sysadmin
    3
    0 Votes
    3 Posts
    0 Views
    S
    Thank u. I have done.
  • AUTOMATION SERVER ERROR

    help question csharp visual-studio com
    2
    0 Votes
    2 Posts
    0 Views
    D
    You might have a corrupted Windows Script component. Download the latest version from here[^], install it and try your making a project again. RageInTheMachine9532
  • Autorun compiled vbcode in xp

    windows-admin help tutorial
    2
    0 Votes
    2 Posts
    0 Views
    D
    Well, those are the options you have. If the user is a member of the local Users group, running from StartUp or the registry is not a problem. What is so limited about this user? Do you get any error messages when you try to run the program from the Startup or Registry? Are you having installation problems with error messages? RageInTheMachine9532
  • makefiles in VB.Net

    csharp
    4
    0 Votes
    4 Posts
    0 Views
    E
    You're right, but I didn't exactly know which one you'll have to select, so I just said them all, just to be sure... :rolleyes: (¯`·._.·[eRiK]·._.·´¯)
  • search function

    help
    4
    0 Votes
    4 Posts
    1 Views
    J
    Brendon, I want to make sure we're still talking about Visual Basic 6; your earlier example and code led me to this conclusion, but if we are really talking about Visual Basic.NET, then there is much different approach. The code in the VS.NET magazine article (here[^]) was an excellent example of running a query and binding it to a MS Hierarchical Flex Grid on a Visual Basic 6 form. If you boil it down to the most basic elements, it looks like this: Dim cnn As ADODB.Connection Dim rs As ADODB.Recordset Set cnn = New ADODB.Connection Set rs = New ADODB.Recordset cnn.Open "..." ' details omitted rs.Open "SELECT \* FROM Customers", cnn, adOpenKeyset, adLockOptimistic Set MyFlexGrid.DataSource = rs However, I get the feeling from your recent inquiries (via email) that you are also concerned about the SQL syntax for joining a Customer Orders table on one or more Customer records. That would be fairly easy to produce, but I have no idea what your table looks like, so I can only offer the most basic suggestions, if that is the case. Let me know, OK? What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
  • Check if program is already running

    help question
    2
    0 Votes
    2 Posts
    0 Views
    B
    put the following: if app.PrevInstance then MsgBox "This app is already running!" end end if If it's broken, I probably did it bdiamond