Create An Object During Run Time?
Feb 3, 2009
I want to allow my user to add certain small pictures into a form which has a bigger pictures. My idea is to simply allow the user to move small pictureboxes that is set on the top of the form to wherever she wants it to be. My problem is that she may want more than one instance of the same picturebox. I am wondering if I can create a picturebox (complete with the picture) during run time?
View 2 Replies
ADVERTISEMENT
Sep 22, 2011
hey guys i need a code that shows me how to make program create an object in run-time...(if this line is clear enough dont read next cause i did even confuse what i want)
the best example i found is dividing procedures..lets assume i did a calculator which also can show the calculating in a picture....when a user use dividing a line has to appear between two numbers(like: ___) and how can i create that line in run-time...
. i was using visible property to do that but when theres a lot possiblities ... its easy to that in run time but i dont know how..
View 9 Replies
Jan 9, 2012
I havn't got any test code for this, as i dont know what way i am going to approach this yet.
at the moment i have a groupbox on a form with 3 radio buttons.
what i would like to happen is when a radio button is selected for it to display a panel with a few controls on it.
i am looking to know what is the best way to code this, i have read a few guides on creating objects at runtime, but none of which i have looked at have any information on adding objects to the likes of a panel.
i am thinking that their are probbably 2 way to attempt this.
my logical thinking tells me i should either
1) Create a class will contain the controls and subs that i need and then try to load the class when it is needed.
2)create a control array then try and work with it that way.
View 9 Replies
Sep 6, 2007
I am getting a run-time error within my VB app:
Run-time error '429': ActiveX component can't create object
I have run this application under WinXP and previous Windows operating system fine, but when I installed my application on Windows Vista I get the above error at run-time.
how I could resolve this error as I believe it is not a programming error as the app works on other Windows OS's fine. Could it be something to do with registering dll's etc.
View 6 Replies
Feb 1, 2012
I am getting a run-time error within my VB app: Run-time error '429': ActiveX component can't create object. It goes away after IIS reset.
View 5 Replies
Jun 3, 2009
Source File: MathNet.dll
Output file: MathNet.tlb
Included Classes MathNet.Division and MathNet.Multiplication
[code].....
View 10 Replies
Oct 26, 2009
I have an object that is defined as a global variable based on custom class. Within that class I have an event that gets fired a certain intervals. These events are fired on the same thread as where the object is declared. How do I create a global object, but have the events within that object fire on a separate thread?
View 2 Replies
Jan 12, 2011
I am trying to write an VBA application in Excel 2010 using "Microsoft Soap Toolkit 3.0" on 64 bit Windows 7 to consume an web service. But i got an error while initializing an object of SoapClient30.
Error message is :: Runtime error '429' :ActiveX component can't create object.
View 2 Replies
May 3, 2011
I was create Access database with Access 2003. I create VB project with Visual Studio 2005 Standard With connection wizzard I create coonect with this Access database, select all tablesI see this database inside Data sources and inside Server explorer Test connection is OK When I drag and drop table from Data sources, Wizzard don't create DataGridView, DataSourceBinding etc .. and I see popup window with mesage: Object reference not set to an instance of an object and then "game over"
View 2 Replies
Sep 21, 2009
Under component services, a COM+ component is used by the company, right-clicking it and choosing 'Activation' tab will show the 'constructor string' that is used for DB server connection by all applications. How can I access it the simplest way possible?
[Code]...
View 1 Replies
Nov 12, 2010
I have a class library that contains a number of classes. I would like to dynamically create an instance of one of these classes, set its properties, and call a method.
Example:
Public Interface IExample
Sub DoSomething()
End Interface
Public Class ExampleClass
[Code].....
View 1 Replies
Jun 3, 2009
i have drawn on a e.graphics object and now want to transfer the drawn stuff onto a bitmap object how can i do this?
View 2 Replies
Apr 12, 2006
I am developing an IT Asset Tracking application using VB 2005 and SQL Server 2005 Express edition. Will I need to create classes to represent objects such as Computers, Printers, Scanners/Faxes, Contracts, Purchase Orders etc or are there any other approaches.For example, if I am correct, I will have a class called Computer and its properties will include Make,Model,CPU,Hard Disk,Memory etc. Is this the right approach.
Computers can be split up into Desktop PC's, Servers and Notebooks. Would I have to create separate classes for these as well or would they be ok under the Computer class.Once I create an object from the class, how can I use the object to interact with the SQL db.I am a beginner to VB.NET 2005 therefore I am slowly getting to grips with OOP.
View 13 Replies
Nov 28, 2010
I want to create a class is it where I can do...
[code]...
How do I do this? Do i create a class and create a instance of CarData? but how do I add Color and Year etc to it?
View 3 Replies
Nov 12, 2009
I just want to create an service which will on start read my XML file .It gets the number of parameters connected to PC. I just want to know that is it possible to create the timers at run time in my service and the timers should start at the same time but will having different time span to exicute means one timer will start after every one minute while another after 2 or 3 or whatever i set.
View 1 Replies
Feb 29, 2012
I am attempting to create a new mobile app using VB in visual studio 2008. I select "File" "New Project". Select "Smart Device" in new project window. Select the "Smart Device Project" from templates. Select ".NET Framework 3.5". Select "OK" and get the dreaded "object reference not set to an instance of an object"
View 1 Replies
Dec 15, 2011
how can i modify my object at run time? I have a form containing two panels; textbox, picturebox, and a label are in the panel1 where as panel2 is likely to be the user screen.. User drag the textbox from panel1 to panel2 and it is added there.. Now, i want to provide the facility to the user to modify the size using mouse similarly as we use to modify using mouse while making our forms.. It is like re sizing the button or picturebox at run time.
View 1 Replies
Sep 29, 2011
Private Sub MyXbeeZB_XbeeZBIODataSampleRxIndicatorEvent() Handles MyXbeeZB.XbeeZBIODataSampleRxIndicatorEvent
Dim MachineNumber As Integer
For j = 0 To i - 1
If MyXbeeZB.XbeeAddress64 = XbeeAddress64Array(j) Then
[code]....
View 12 Replies
Jul 15, 2011
I'm subtracting hours from a date object like so:
startDate.AddHours(-7.0)
endDate.AddHours(-7.0)
However It doesnt seem to affect the day of the object. My question is this, when subtracting hours from the object does it subtract it from the global date? I.e make "May 7, 2011 1:00:00 AM" into "May 6, 2011 6:00:00 PM" when subtracting 7 hours or does it just affect the hours of the object?
View 7 Replies
Feb 7, 2010
Every time that I want to make a thread in the ThreadPool I make a stupid little function like Worker_O below.[code]...
Is there a way in VB .net to cast from Sub(i as integer) to Sub(o as object) without making Worker_O? Worker_O is ugly to me.
View 1 Replies
Feb 27, 2012
I have a string variable that contains "19:39:43", I would like to convert that to a date object. When I try I get a formatexception was unhandled error during debugging. I want to convert it to format of hours:minutes:seconds but cannot see how this can be done..
Code snippet:
Dim strtxt As String = "19:39:43"
Dim Datevar As Date = Date.ParseExact(strtxt, "HH:mm:ss tt", Globalization.CultureInfo.CurrentCulture)
I tried just "HH:mm:ss" but not sure if that worked...
View 8 Replies
Aug 3, 2011
i want to save the value of date time picker control object to mysql but it kept saying error.the code perfectly works for text box values but it doesn't work for date time picker control.
View 1 Replies
Jun 16, 2010
I'm looking for a way to convert a 5 character time representation to a date object. ie. "0937a" should be "6/16/2010 9:37 AM" or "1215p" should be "6/16/2010 12:15 PM".
View 2 Replies
Feb 7, 2011
I am looking for assistance writing code, (VB 05), that would cause an object, (like a circle on screen), to get larger and smaller over preset periods of time, (about ten second increments).
View 6 Replies
Jul 14, 2009
Run-time error '5200' Method 'endMessage' of object 'ISoapConnector' failed
Dim Serializer As SoapSerializer
Dim Connector As SoapConnector
Dim Reader As SoapReader
Set Connector = New HttpConnector
[code]....
View 4 Replies
Feb 17, 2010
Im doing my first project with WinForms, and Im trying to get the DataBinding working. Theres no database in my project, but I'd like to bind some of the TextBoxes to objects' properties. In the other section of this forum (here) I found this line of C# code which does it: textBox2.DataBindings.Add(new Binding("Text", this.myPerson, "LastName"));
my question is can data binding to object properties be set up during design time (without writing code)? If so, how? P.S. I know how I would set up this binding if in WPF, but I'm forced to use WinForms.
View 1 Replies
Dec 5, 2011
I'm a newbie in visual basic dot net. I tried to create a design in run-time. Here's my simple code.
Dim frmLogin As New Form
Dim lblUserName, lblPassword As New Label
Dim txtUserName, txtPassword As New TextBox
[code].....
View 1 Replies
Jan 2, 2012
I design program for patient daily Schedule and u can see in the the first pic which have button if u look in the first button (Bokking ) where u can add patient information as u can see in the secone pic and in the the 3 pic there is text (create date) my question is how can I create time& date take the time and date for my computer in this text ?
View 10 Replies
Jun 5, 2011
Possible to create new tables in my database at runtime. What components will I have to use?
View 2 Replies
Aug 27, 2010
I am trying to create a ListView control at run-time and populate it with data from a SQL Query, I can create and execute the SQL query returning my desired data, I can create the listview control, but I can not get the list view to Populate data from the ListviewGroup I am creating from the SQL query. Code Snippet Follows.
Dim ItemGroupSQL As New ListViewGroup
' Create three items and three sets of subitems for each item.
a = 0
[Code].....
This will create a ListView Box and populate the data in a very odd way, every row will have 5 columns with the same data repeated in each column. I have verified (using the commented out msgbox statements you see) that the ItemGroupSQL variable is being populated correctly. but Listview1.items.addrange(itemgroupSQL.items()) does no add the data to the listview correctly
Am I using incorrect syntax for Items.Addrange?
View 4 Replies