Jump to content
Xtreme .Net Talk

muthuraman

Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by muthuraman

  1. Oh yes, it does. I have a function call which checks if each textbox has a non-numerical value and highlights the respective fields. Then I set back the color of all the fields to the default color. It works fine if I paste my code after this function call. Thanks a lot 'PlausiblyDamp'... :)
  2. Yes, I have some other code in the form load event
  3. Sorry about that. I created a new instance.
  4. Hi, The following is the code I tried. Dim test as TextBox 'The following code goes into Form Load event test.BackColor = System.Drawing.Color.Aqua test.Text = "Hello" test.Left = 300 test.Top = 400 Me.Controls.Add(test) This works fine if I have it in Form Load. The same code doesn't work inside a button click event.
  5. Hi there, I am trying to create a textbox dynamically in my code. When I try to set the backcolor of the textbox to somecolor, it doesn't happen. I find that the backcolor of the form is overriding the control's backcolor. Same is the case with forecolor. Can anyone help me?. Thank You.
  6. This wud work but the window would flicker. It is going to come to a position where you release your mouse and go back to 100, 100 after.
  7. Hi, I would like to prevent the user from being able to drag my form window. I set the FormBorderStyle of the property of the form to 'none' but this removes the caption bar which I don't want. Can anyone help me?. Thanks
  8. Use formName.ActiveForm.Close()
  9. Hi there, I don't want the user to be able to drag the window in my application. How can I do this?. Thanks in advance
  10. Hi, I am having two Chart Spaces (AxChartSpace) with one column clustered chart on each. I find that the scales of these two charts are different. How do I make them similar?. Can somebody help me?
  11. I am trying to use AxScriptControl in VB .NET. I am having some problem using this. The following is the code I used. Dim t As New Object Dim cmd as String AxScriptControl1.AddObject("TextBox1", t) 'There is already 'a textbox named TextBox1 cmd = " t.Text = 'hi' " AxScriptControl1.ExecuteStatement(cmd) I am getting an error at the last line saying unhandled exception. Can anyone help me?. Thank You
  12. I recently upgraded my application from Visual Basic 6 to Visual Basic .NET. I have a ADODB Command Object. In Visual Basic 6, I was able to destroy this object saying, Set obj = Nothing But .NET uses garbage collection and I am not able to use Nothing. I can't wait till the object is garbage collected as I have to initilize it and use it for someother purpose. I came across the 'dispose()' method. But this works only for VB components and not for ActiveX objects. Can anybody help me with this please?. Thanks, Muthuraman
×
×
  • Create New...