
Antoine
Avatar/Signature-
Posts
60 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by Antoine
-
Dear, Is it possible in vb.net to create menuitems on the right of the mainmenu ? I mean I have on the left side: File, Edit, etc.... Then a lot of space And then on the right side: Help or something ? Thanks in advance Antoine
-
Hello, Is there a possible way to get the back and foreground color form an excel cell ? For instance: The backcolor of the cell is made red The forecolor of the cell is made blue Is there a way to get these values into variables for one cell ? I allready managed to read data from an excelsheet. But now I also want to try to get other attributes. Who can help me ? Regards, Antoine
-
Hello, Can anyone help me with the following problem ? I have a mainform and two "slave" forms. Problem is that I want to send data from slaveform 1 to slaveform 2. I get the error " Object reference not set to an instance of an object.". I declared the form with: Dim frmTelnet As frmTelnet frmTelnet.ttxtLineNumber.Text = 39 Where ttxtLineNumber.text is a textbox. When I declare the form with Dim frmTelnet As New frmTelnet then it seems that something is happening but that I can not see it (I see the telnet device flash which it is supposed to do), but the form stay's the same. In other words, nothing happens on the screen. What can be the problem ? Regards, Antoine
-
Ah okay, thnx, I will try that !
-
Hey, that works nicely ! Grtz, Antoine
-
Great thanks, sorry for the late reply, but I was out for a few days ! I will try that !! Regards, Antoine
-
Is it possible to spread the code in a program on multiple files, e.g. a communication routine in a seperate module or something ? And how do you communicate with that module then ? Regards, Antoine
-
Okay, As Grimfort told, I could use the Directcast, should I need more ? Do I have to declare something ? Cos' now I use AddHandler etc etc, AddressOf MyEvent If I want to use the "sender", do I need to set more then that ? Because I have 12 buttons, which all need (with a slight different though), the same routine, so I created those at run-time in an array. So I can let the program jump to that specific part in the code, but I don't know which button created the event ;). And that could make the whole thing work a lot better :D. Is that possible with sender ? Or should I do that in a whole different way ? REgards, Antoine
-
Hmm, nice and how do I use it then something like sender.text = "Hello world for instance ?
-
Dear, Does anyone know what "sender" stands for in (ByVal sender As Object, ByVal e As System.EventArgs) ? Where can I use it for ? Regards, Antoine
-
Great thanks !!!! :) Antoine
-
Dear, I've created a button during runtime, I have created an AddHandler when the button is clicked, I want to create a second event when the button is clicked with the RIGHT mousebutton. How can I do that ? There's not a "RightClick" in the Addhandler list.... Hope somebody can help me Regards, Antoine
-
:p :D :-\ I allready found the problem (I'm a shamed). I've forgotten to set this line MyButton(x) = New Button But thanks anyway :)
-
Hello, cmdOption is a standard run-time created button. In the box below you see the complete code of it. Maybe you can figure some out. 'LightControl Variables Dim cmdLight(11) As Button Dim cmdLightValue(11) As Boolean 'Intercom control variables Dim cmdIntercom(11) As Button Dim cmdDoor(11) As Button Dim cmdOption(11) As Button Dim cmdIntercomValue(11), cmdOptionValue(11) As Boolean Dim cmdDoorValue(11) As Integer 'Standard variables Dim TempCounter As Integer Dim TempString1, TempString2, FilePath As String Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load FilePath = System.Environment.CurrentDirectory & "\" 'Indeling verlichting box For TempCounter = 0 To 11 cmdLightValue(TempCounter) = False cmdLight(TempCounter) = New Button frameVerlichting.Controls.Add(cmdLight(TempCounter)) With cmdLight(TempCounter) .Width = 104 .Height = 40 .Top = 16 + TempCounter * 40 .Left = 8 .TextAlign = ContentAlignment.MiddleRight .Image = ImageList.Images(1) .ImageAlign = ContentAlignment.BottomLeft End With Next TempCounter frameVerlichting.Height = (12 * cmdLight(0).Height) + 24 frameVerlichting.Width = (cmdLight(0).Width) + 16 'Indeling intercom box For TempCounter = 0 To 11 cmdIntercomValue(TempCounter) = False cmdOptionValue(TempCounter) = False cmdDoorValue(TempCounter) = 0 frameIntercom.Controls.Add(cmdIntercom(TempCounter)) With cmdIntercom(TempCounter) .Width = 72 .Height = 40 .Top = 16 + TempCounter * 40 .Left = 8 .TextAlign = ContentAlignment.MiddleRight End With frameIntercom.Controls.Add(cmdDoor(TempCounter)) With cmdDoor(TempCounter) .Width = 48 .Height = 40 .Top = 16 + TempCounter * 40 .Left = 80 .TextAlign = ContentAlignment.MiddleRight End With frameIntercom.Controls.Add(cmdOption(TempCounter)) With cmdOption(TempCounter) .Width = 48 .Height = 40 .Top = 16 + TempCounter * 40 .Left = 128 .TextAlign = ContentAlignment.MiddleRight End With Next TempCounter Call DimAddHandler() Call ReadTextFiles() End Sub And it goes wrong at the With cmdIntercom(TempCounter) .Width = 72 Strange enough, the cmdLight works perfectly, but the cmdIntercom, cmdDoor and cmdOption don't Thanks allready !! Regards, Antoine
-
Excusez moi ? I'm sorry, I'm not good in computer languages :), can you explain it in normal English please ? What is an instance of a class ? [edit] Well I do exactly the same thing with another set of buttons, and there it works perfectly, so I copy en pasted this one, changed the variables and bang, it doesn't work anymore ? Al of this is in de form_Load Sub [/edit]
-
Thanks for the reply.... But when I do this: cmdOption(0).Width = 48 I get the same error :( How can we explain that then ? Regards, Antoine
-
Hi, I'm executing the following code: For TempCounter = 0 To 11 frameIntercom.Controls.Add(cmdOption(TempCounter)) With cmdOption(TempCounter) .Width = 48 .Height = 40 .Top = 16 + TempCounter * 40 .Left = 128 .TextAlign = ContentAlignment.MiddleRight End With Next TempCounter When I execute this, the debugger stops at the .Width and I get the following error: An unhandled exception of type 'System.NullReferenceException' occurred in BMSTestApp.exe Additional information: Object reference not set to an instance of an object. How can this happen ? And how can I solve this problem ? Regards, Antoine
-
I love this forum :D Thanks !
-
How can I create for example button's in a groupbox ? In VB6 there was the container option, but according to VB.NET it's read only here. How can I do that ? The button's are designed during run-time Regards, Antoine
-
I allready thought so :( , from my opinion VB.NET really sucks.... but I don't have a choice :-\ . But thank you for the information. I've tried it but then I have to make e.g. 12 "Sub's" for an array, while I could have made it in one if array's would've worked.... Thank you all for your information !!! Regards, Antoine
-
Yes I did that, but is that possible on an array to ? Regards, Antoine
-
Okay, I have created 12 buttons during runtime, now I want to add some activity to them. How can I generate an event when clicking a run-time created button ? THanks allready ! Antoine
-
Thanks that works :D
-
Ha, it seems to do something now, but it only sets the "WaveOut" slider. Is it possible to set the "MainOut" slider ? Does anyone know how the setWaveOutVolume works ? Which bits are for which function ? Bacause my balance slider is permantly on the Left side.
-
Volteface, That doesn't work (Winmn DLL not found) How can I fix it ?