|
|
Sometimes Visual Studio REALLY frustrates me. I've got a problem that just started occurring in the last day or so and I have no idea why, nor do I know how to fix it. This is the error I'm getting:
An exception occurred while trying to create an instance of ECM.frmStdMdiChild. The exception was "Object reference not set to an instance of an object.".
frmStdMdiChild is a class that inherits from System.Windows.Forms.Form. All of the children forms in the project are of this type. I needed to expand upon the properties provided in the standard Form.
What's confusing is that if I look at the forms that it is complaining about, the only reference to frmStdMdiChild is in the Inherits line. The program compiles and runs fine. No problems that I can see. However, I cannot pull up the form designer on any of the children forms. It just gives me a screen with a red X, displays the message shown above, and tells me that has to be fixed before I can use the designer.
I have tried commenting out almost everything in the child form (including all of the "Windows Form Designer generated code" section, commented everything out in the frmStdMdiChild, and even tried changing the Inherits on the child form back to System.Windows.Forms.Form. All to no avail. At this point I am very much open to suggestions.
--In a world without fences, who needs Gates?
|
|
|
|
|
Hello. I have a datagrid with a dataset as datasource. I have a problem when I am trying sort the datagrid. I want sort the dataset at the same time for to know where the row clicked of the datagrid is in the dataset.
waiting help...
Thanks
|
|
|
|
|
Hi folks, I need your help!
I'm using VB to make some programming. Right now my project has a bunch of forms and my database got corrupted, so I almost lost my code.
The thing is I need a macro or similar way to 'EXPORT' my code (in VB's .cls format) when I start coding. And I want it for every form of the project (that's way I wanted the automation). Just in case I need it later (kind of backup).
Is it such a way?
Thanks in advance!
|
|
|
|
|
Just copy the files. They're all just text files, so I don't see what the problem is?
How does this database being corrupted figure into this?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Is this a VBA in MS Access sort of thing?
Jon
|
|
|
|
|
Right to the point. It's a VBA in Access.
I could copy the files (of course they're just text) but I've got quite a lot of file and it would a pain to copy all of them manually. So I want some kind of macro to automate the proccess!
Thanks.
|
|
|
|
|
Well, as nobody could help me, here's the answer I found by myself.
Just use this:
For i = 1 To Application.VBE.ActiveVBProject.VBComponents.Count
Application.VBE.ActiveVBProject.VBComponents(i).Export "file" & i & ".txt"
next i
This way all forms, modules, classes, etc. are saved on the local path in plain text format.
Sweet and easy, uh?
Hope it helps out there!
|
|
|
|
|
In order to avoid a null DateTime field in my ACCESS database table, how do I fill it with an 'empty' Date or DateTime string?
Thank you for your help in advance.
|
|
|
|
|
There's no such thing as an "Empty" date/time field in Access. It either has a valid date/time in it or it's Null. Since your database is doesn't allow Nulls, the only recourse you have is to put in a known bogus, but valid, date/time, such as Jan 1, 1970.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I could not delete the rows
using the delete key.
I can delete the rows in other way
but I prees the delete key in datagrid
nothing to happen
property Readonly = True
KeyDown
KeyPress
KeyUP
this keys are not working in datagrid
OS : XP
visualstudio: 2003
VB.net
Continue...
|
|
|
|
|
I may be wrong, but if you are setting the property Readonly = True, than you shouldn't be able to change the data.
Perhaps a code sample or more detail of what you are trying to do?
|
|
|
|
|
Of course those keys don't work. You set the ReadOnly property of the DataGrid to True! How can you expect to delete something from that which you specified can't be modified?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I keep getting the following error when trying to delete a row from a dataset using a datagrid (specifically the last row in the datagrid) :
An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll
Additional information: Object reference not set to an instance of an object.
Does anyone have a tried and tested method for adding,updating,and deleting rows from a dataset using a datagrid? I have found alot of information, and people seem to have had the same problem, but have not found a solution.
using visual basic .net 2003
|
|
|
|
|
Dim row As Integer
Dim str As String
row = DataGrid1.CurrentRowIndex
DataGrid1.Select(row)
Dim myTable As DataTable
myTable = DataGrid1.DataSource
myTable.Rows.RemoveAt(row)
u count how many rows are presented
the rows less than 0 exit the fucntion or exit sub
Continue...
|
|
|
|
|
Does anyone know of a full tutorial on the the datagrid and databinding?
My datagrid still will not delete the last record without crashing.
I think it has to do with the primary key of the database now though...
OleDbDataAdapter1.FillSchema(ds, SchemaType.Source, "spray_log")
OleDbDataAdapter1.ContinueUpdateOnError = True
OleDbDataAdapter1.Fill(ds)
ds.AcceptChanges()
The first line is supposed to keep my autoincrement of the IDNUM working, but when I look at it (IDNUM) in my datagrid, it will sometimes go from 2348 to 2350 instead of 2349. I can see why the command builder would have a hard time.
|
|
|
|
|
Could someone point me towards a good tutorial on troubleshooting/debugging?
|
|
|
|
|
|
|
hi guys,
I have a question, how to make a chat messenger like yahoo messenger or msn messenger and connected it with the server that use sql server ?
How to make the connection between the client that use the application program (messenger) and the server that contains the sql server ?
How to make this by using VB.Net ?
what is the starting point (what the things that i must know to perform this)?
thanks for all
|
|
|
|
|
Well, knowledge of TCP/IP would help alot. How to write clients that communicate using sockets, and most of all how to write a multi-threaded socket server. Just search the articles for "CHAT" and you'll come up with a bunch of examples.
I fail to see how an SQL Server figures into this, unless you're going to be logging everything everyone says.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
it is the problem with your operating system not the application
|
|
|
|
|
First of all, WHY ARE YOU YELLING??
If you're getting a message that says "This application in not a valid Win32 Application," it usually means that the .EXE file you launched is corrupted. You'll have to replace it with a new copy from a known good source.
What you're saying about the problem doesn't make much sense though. Are you saying that if you replace the .EXE, then run it, it works the first time, but every time after that this message comes up? Is it possible you have a bad, or dying, hard drive?
BTW: What does this have to do with VB.NET?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i,m a vb.net programmer
& yes when i replace the exe it works & then it gives the same message
it's working v.good on any pc with fat32
but not on ntfs
and it's not te os or the hardisk
so can u help me plz
|
|
|
|
|
I have no idea what's wrong. In 20+ years of doing this, I've never seen the problem before.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|