
rekam
Avatar/Signature-
Posts
43 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by rekam
-
Hello ! Is it possible to put an image in background without repeating it if the container is bigger as the image ?
-
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
-
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!
-
One more question ! Is this syntax ... xmlFile = nothing 'xmlFile is an xmlDocument object declared before ...useful to something. Is that "memory free" ?
-
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 !
-
I check that. For now, It returns me an error "is not an instance of an object". So I'm searching
-
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 :'(
-
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...
-
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 !
-
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...
-
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!
-
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 ;)
-
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!
-
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 !
-
Thanks Machaira, I'm trying that. But I have problem with the paint method. When I draw inside the Form itself, I use the onPaint event to repaint the graph. Everything is okay. But when I draw inside a pictureBox, the only intresting method is the paint method. But it's not very good. Some parts of the graph don't repaint...hum well, I'm searching a way to avoid that, but until now, I didn't find anything
-
Hello ! Is there an existing class which can draw statistics graphics , just like you can do in Excel ?
-
hi, I'm not sure I've understand you, but instead of 5, 3 and 2, why don't you use the length property of Array ? For array1 = 0 to myArray1.Length - 1 ... ... Next array 1
-
Hello I'd like to know how to print a document...I know it's sound quite simple, but the vb.net help is not very useful (for me...) The fact is I have some variable (such as title, text, header, footer), and I just want to print them : header TITLE text footer Can we do that with less than 20'000 lines programming ? Thanks !;)
-
Something very simple with array and XML
rekam replied to rekam's topic in Database / XML / Reporting
Thanks XyBoy, but I find a way to resolve my problem. I have builded a class which have a table as property. I use it like this : Dim myValTab(20) as new myTabClass 'I simplified some of the numbers For i = 0 to 19 for j = 0 to 4 for k = 0 to 8 myValTab(i).table(j, k) next next Next It does exactely what I want. It's been a while since I've done something which works, yessss:D ! -
Well, Brian, I think Me.Bounds = Screen.PrimaryScreen.Bounds doesnt exists in VB. It's either location or SetDesktopBounds, but it doesn't work. And a little question for Nerseus. Why is it a strange idea to lock a window ? I just decide to do this on my own, but if it's totally useless, I can drop this idea.
-
Hello, I need some help once again:p ! It's something very simple...but it don't works. I want my Form to take all the screen (so you don't see the taskbar). I would like no minimize, maximize, well no control box at all, and I would like a title in the blue bar on the top. For that, it's okay. But now, there's the problem. When you click on the blue bar, you can drag the form and move it. It't not very good for my application. I saw a property <locked>. "Great", I thought. But in TRUE, it's locking anything. You can move the form as you want. I tried to do use sub, which replace the form on the top-left edge of the screen, something like that : Private Sub myForm_LocationChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.LocationChanged Me.Location = New System.Drawing.Point(0, 0) Me.DesktopLocation = New System.Drawing.Point(0, 0) Me.Left = 0 Me.Top = 0 Me.SetDesktopLocation(0, 0) Me.SetDesktopBounds(0, 0, 800, 600) End Sub ...No way, you can move the form by clicking on the blue bar...urps, but why :confused: Is there something I missed ?? Thanks for help
-
Here's a part of my code...The error is : "The node to be removed is not a child of this node"... Dim fDom As New XmlDocument fDom.Load(Me.fileName) Dim paramDefault As XmlElement Dim oldParam As XmlNode 'This method returns a XmlElement type. It puts in paramDefault some children and some values. The fDom is passed by reference. paramDefault = Me.SetParamDefault(fDom) 'Then we select the old node from the document. Game is the root element. oldParam = fDom.SelectSingleNode("game/paramDefault") 'Here's the error... fDom.ReplaceChild(paramDefault, oldParam) fDom.Save(fichierTemp) I use the SetParamDefault method in other method and function in my class, and it works perfectely... Maybe I'm wrong, but it seems everything 's right..
-
Hello! I need some help to use the method ReplaceChild. What I know is the structure of it. domDoc.ReplaceChild( newChild, oldChild ) The problem I have is that the new child is not from the same dom document as the old child. The thing is, I don't understand why the two of them must be from the same file. It's not very logical...:confused: I mean, I have a node in a document. If I want to replace it, the new node will be *in any case* a node that is not in the file, I think... Well, I'm a bit confused about that. But I abolutely need this method, and I can't have the two nodes coming from the same document, sob... If someone has an idea...thanks a LOT !
-
Hello mutant, This way is quite interesting, but my sub is very very long. And it's only a very small thing which change if we give button in argument. So I have to write 2 times all the code, and modify it 2 times if I need to (and I surely have to...;) ). But well, since I or someone find the "optional" solution, i'll try with your method, thanks!