Jump to content
Xtreme .Net Talk

rekam

Avatar/Signature
  • Posts

    43
  • Joined

  • Last visited

Personal Information

  • Occupation
    student
  • .NET Preferred Language
    c++

rekam's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello ! Is it possible to put an image in background without repeating it if the container is bigger as the image ?
  2. It's strange, but it's the same problem...I think I'll cope that with Math.Round or something...even if it's not, let's say, "professional" :D
  3. Hello ! I have a very strange problem. Look at this : Dim a, b, c as double a = 1 b = 0.96 c = a - b msgbox(c) Why does the msgbox display 0.0399999999999999999 ?????? The result of this simple operation shouldn't be just 0.04 ? Really, I don't understand. And the worst : when b < 0.95, c is correct :confused: :confused: Well, has anybody already had such a problem ? Thanks!
  4. rekam

    free memory

    One more question ! Is this syntax ... xmlFile = nothing 'xmlFile is an xmlDocument object declared before ...useful to something. Is that "memory free" ?
  5. rekam

    free memory

    Yeah, it seems to work !! Thanks PlausiblyDamp ! But it's strange, I don't remember where, but I think I've read something about Dispose and Controls.Remove. It said that the Remove function worked the same as Dispose. In the facts, Remove doesn't dispose anything...but Dispose remove the object from the Form. That's all I wanted. Thank you very much !
  6. rekam

    free memory

    I check that. For now, It returns me an error "is not an instance of an object". So I'm searching
  7. rekam

    free memory

    Okay, here's my code. I use this to display values for a parameter. There'are 20 parameters, which have each a certain number of values. These values are displayed in TextBox. Each Textbox is saved in the array tableauBox. So tableauBox is an array of TextBox. gbData is the GroupBox where TextBoxes are displayed. ValuesParamDefault is an object I created which is an array which has a specified length depending of the parameter's key we want to display. First of all, I delete all elements allready in the gbData, if there'are some. Dim cpt as integer For cpt = 0 To Me.tableauBox.Length - 1 Me.gbData.Controls.Remove(Me.tableauBox(cpt)) Next Then I Redim the tableauBox ReDim tableauBox(Me.valuesParamDefault(key).length - 1) And then I create the new tableauBox with the new elements Dim i As Integer For i = 0 To Me.nbCases tableauBox(i) = New System.Windows.Forms.TextBox tableauBox(i).BackColor = couleurFond tableauBox(i).Location = New System.Drawing.Point(x, y) tableauBox(i).Size = New System.Drawing.Size(longueurChamp, largeurChamp) tableauBox(i).Text = cpt tableauBox(i).Tag = cpt tableauBox(i).Tag = posTrim tableauBox(i).MaxLength = 6 tableauBox(i).Font = styles.pTexte() 'Its value tableauBox(i).Text = Me.valuesParamDefault(key).table(market, posValue) Me.gbData.Controls.Add(tableauBox(i)) Next End Function When I go up and down the TreeView, these funcions are called and the memory raise more and more :'(
  8. rekam

    free memory

    I have 250Mb RAM. But if I go up and down my TreeView, after less than one minute, I have an error message outOfMemory exception...
  9. rekam

    free memory

    Hello ! I'm actually creating windows.Form elements at runtime. The thing is, when I change the selected item of a TreeView, all elements are killed and recreated (there are more or less of them depending of the selected item). After a few minute changing the selected item, if I look to the memory process, it uses 100 Mb !! Gasp ! When I create elements, I put them in an array. The first line of the method which create them is Redim myArray(quantity). It seems this is not enough to really delete them from the memory. So what should I do ? :confused: Thanks !
  10. yeah, something like that http://www.gotdotnet.com/team/ide/helpfiles/CustomHelpBuilder.aspx or that http://www.gotdotnet.com/team/ide/helpfiles/VBCommenter.aspx I'm searching yet for the .exe...
  11. ok, thanks !
  12. Is it possible to create an automatic documentation (in HTML format or whatever) in vb.net ? I know in C#, you have to put a comment like : ///< xml tag > ///</xml tag > And in vb, is there a way to do the same thing ? Thanks!
  13. Thank you all ! I resolve my problem...Well, it was not because ByVal or ByRef. The fact is I have four TextBox. They only accpept value between 0 and 100. The fourth textBox is readonly, and its content depends on the three others. So if I have 25, 10 and 25, the last textBox should have 40. I do the "automatic content" when keypress on one of the three editable textBox...Hum, well, it's a bit complicated. I have a class which inherits of TextBox. Each of the four textBox is an instance of this class. When an instance is created, I set 2 properties, which are : - the "automatic textBox" - the two other editable textBox Then, when I change a value, the last is calculated automatically. My problem was that the value of the last textBox didn't change. Now it's okay, but I don't really know why ;)
  14. So this is not possible to pass a control by val ? Well, my problem is when I change a value of a textbox in a class I created, it dosen't change anything. I saw I've passed the textbox ByVal instead of ByRef, but you guys tell me that a control is passed ByRef, no matter what. So my problem is outhere. Thanks!
  15. Hello, I have a little problem of understanding with ByRef and ByVal. Look at this code : Private Sub test( ) Me.TextBox1.Text = "before" '(1) Show textBox1 content MsgBox(Me.TextBox1.Text) '(2) Call method Me.rere(Me.TextBox1) '(3) Show textBox1 content after the call MsgBox(Me.TextBox1.Text) End Sub Private Sub rere(ByVal t As System.Windows.Forms.TextBox) t.Text = "after" End Sub If passed with ByVal, after the call, the text should be "before" ?? Because it's not the reference which is passed.... Can someone explains me what's happening ?? Thanks !
×
×
  • Create New...