Jump to content
Xtreme .Net Talk

techmanbd

Avatar/Signature
  • Posts

    405
  • Joined

  • Last visited

About techmanbd

  • Birthday 05/07/1972

Personal Information

  • Occupation
    Automated Process Engineer
  • Visual Studio .NET Version
    Visual Studio .NET 2003
  • .NET Preferred Language
    VB.NET, C# Learning

techmanbd's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. It could be you are using an excel library in VB that is not compatible with the Excel program on the computer. I had the same problem a few years back, read this thread and it may help you. Using Late Binding is what you may need. http://www.xtremedotnettalk.com/showthread.php?t=79754&highlight=excel
  2. In .NET you don't use msgbox. You use messagebox.show("")
  3. Hello and welcome
  4. YOu can also use length if MyStringBuilder.length = 0 then 'code here if empty End If
  5. techmanbd

    Format

    dim intNum as integer = 12345 dim strNumber as string = intNum.ToString("##,###")
  6. Zero, I think this is what you are looking for with getting the peak value of the sample byte Array.Sort(sample) Dim intPeakValue as Integer = sample(sample.GetUpperBound(0)) This will sort the data in the sample array, then you get the upperbound value as an integer.
  7. use "cs" in the brackets instead of "vb".
  8. Ok thanks, I am learning the C# language and read the following in the help files. But after reading it again, I realized that that goes for the expression after the return word. Duh. :o
  9. I was wondering if it is proper to use the return in a void method to get of of the method as you would use exit sub in VB. It works I know that, but is it the proper way? For example VB private sub WWWW() if intL = 0 then exit sub ' other code here is intL not 0 End Sub private void WWWW() { if(intL == 0) { return; } // other code here if intL not 0 }
  10. Yes it will take along time to do the way you do it. I know this as we do log files for our automated test for days and weeks. I would make a file around 300 to 500 megabytes, then "copy as" to the file until you reach close to 16 meg. Or using a photo that is high in bytes. Then "save as" Pic1, Pic2, etc,,,, The picture way would be better I think now that I think about it.
  11. Hello Laura and welcome to the forum. I don't see why you are not getting the message box to show up. The only thing I can think of is look in the region "Windows Form Designer generated code" and find your TabControl1 area where it initializes and look to see if the handle is there for that method. It should look something like this this.tabInfo.SelectedIndexChanged += new System.EventHandler(this.tabInfo_SelectedIndexChanged); Also to answer your other question. If you are selecting a tab from that tab control. Look for for the selected tab like so: private void TabControl1_SelectedIndexChanged(Object sender, EventArgs e) { if(TabControl1.SelectedTab == this.tabpage2) { MessageBox.Show("Selected tab2"); } }
  12. AH yes, I have the "using.." at the top. When I start a new program it put it in.
  13. after "new" take the system out. It is just KeyPressEventHandler Yes, on the quote I heard it one day on Criminal Minds. When they start an episode, they do a famous quote and I heard that. I Have always thought this way, but the quote was the perfect way to say it.
  14. Below is the event when doing a kepress And you will also need to change the code in Designer Code for the event handler of the test box private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if(e.KeyChar == 13) { MessageBox.Show("ENTERED");// You code here } } Change this this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); to this this.textBox1.KeyPress += new KeyPressEventHandler(this.textBox1_KeyPress);
  15. Hello and welcome to the site.
×
×
  • Create New...