User Profile
Collapse
-
I am using .NET. I've never played with dlls at all in any programming so I guess I got some reading to do to figure them out. Any pointers as to where I should be looking?... -
I get an error at runtime:
"An unhandled exception of type 'System.Runtime .InteropService s.COMException' occurred in ConsoleApplicat ion1.exe
Additional information: Class is not licensed for use"
it occurs:
Sub Main()
'New a MSComm control
Dim MSComm1 As MSComm
MSComm1 = New MSComm() <== here...Leave a comment:
-
Using streaming Serial Data in VB.net v1.0
So VB 6.0 had MSComm. VB.net 2.0 has its own form for reading from the comm port, but VB.net 1.0 didn't. I've read that you were supposed to use MSComm for 1.0, but it appears to be unlicensed on my computer (I don't have 6.0?). Can anyone point me in the right direction. I want to read text streaming from a GPS over comm 1 into my program and use a certain part of the string to update the program. -
I copied the code from the corrupted project into a new one and it works fine. Still stumped about the problem though.
It appears to be referenced. The suspect code is 'Inherits System.Windows. Forms.Form'
References includes "System.Windows .Forms"
This is how all of my other projects are as well.
Glad I found a workaround, but I cannot distinguish this project (which is broken) from the rest...Leave a comment:
-
I already did the reinstall. And I don't get the error message in any projects except for one. The reinstall did not fix this problem. Could it be that the project is corrupted somewhere in some file that I don't know about. I know nothing about vb.net project structure and whether there is some master file that holds project properties that may have been corrupted or whether there is a way to troubleshoot such a problem.Leave a comment:
-
Corrupted Program?
I installed a third party piece of software designed to add mroe user control to the datagridviewer control and then uninstalled it. I found that it has somehow corrupted a Program I'm working on, so that I got the message "Type 'System.Windows .Forms.Form' is not defined" as I rolled over my "inherits system.windows. form.form" line in the code. This happens in all my clases of this project.
When I click on design... -
I figures it out. The save file dialog threw a vbnewline character into the filename it was pumping out. For some reason, my computer ignored this character while other computers did not.Leave a comment:
-
Illegal characters in path
(edited to add): this is in Visual Basic .net
I am at a complete loss...
I've been building a program on my machine, running it out of the developer with the f5 key and builidng it and running it off of my machine every once in a while. It works perfectly.
I built it and sent it to my co worker's machine to test it out and it returns an "Illegal characters in path" error when the line:
... -
Sadly it appears that I'm using vs2001. I guess I need to try some completely different work-around...Leave a comment:
-
Yes, I am using a datagrid object, not a datagridview object. I've never used one of these objects before this project, so I have no real idea how they work. I know that generally they are used with databases instead of arrays. Would a database as an intermediary step be a necessary middleman?Leave a comment:
-
Thanks for replying. I feel like kind of a moron, but I'm still unable to figure this out. This is a windows app, not a web app. I think part of my problem is that I cannot figure out how to refer to the columns of the actual data grid. I can refer to columns of the data table, but cannot do anything with them width-wise. I think it may be that I'm applying a data table to be the data source of the data grid and cannot refer to those columns...Leave a comment:
-
I moved on to different parts of the program hoping that when I came back to this problem I would magically think of a way to fix it...but I'm still having the same issues.
I am unable to size my columns to the width I want in the datagrid. I am able to resize all columns together, but not as seperate entities. I want column d to be really wide, but a,b,c can all be fairly small.
I am unable to figure this out. There...Leave a comment:
-
Restarting a program or Modal box without buttons in vbnet?
I am making a program which opens textfiles, initiates a bunch of variables and opens the file for editing.
I want to be able to close one text file and open another with the variables at their original settings.
I think it would be easier just to completely exit the program and reopen it, so I created another form which only contains the new() sub
...Code:Public Sub New() MyBase.New() -
So I am now able to display the DataGrid with all of my data.
I want to set individual column widths, but code such as:
colB.width = 100 does not work, i think maybe because I'm running vb.net 1.0?
I can set a datagridcolumns tyle, but how do i apply this to a column?
[code=vbnet]
Dim styleA As DataGridColumnS tyle
styleA.Width() = 1200
[/code]
[code=vbnet]...Leave a comment:
-
So using a DataTable will work,
In order to create a table with an unknown number of rows, I need to loop to create Row objects. How do I create objects in a loop such that each has a different name. Or am I missing something and there is a better way to create a bunch of rows?
my idea was soemthing along the lines of this...but &i doesn't work as i wished it did...
[code=vbnet]
Private Sub Thisarray()...Leave a comment:
-
-
Thanks.
My program is a notetaking program for surveying, so I'm trying to make it super robust. The array that is holding the data, reopens the text file each time it's going to do soemthing to it and restores it after every change it makes. Towards the robust attempt, I'm trying to avoid using a database for storage altogether. Perhaps if it's just an intermediary step, It's not such a big deal, but if I could go straight from...Leave a comment:
-
displaying Array data in a Data Grid in VB.net
I'm trying to get an array to display in a data grid form in vb.net
The array has been imported from a csv, such that every array item is [date,time,flag] but I can split or join as needed to change the format of the array.
I want date, time, and flag to be seperate columns and each array item to be a new row.
I don't know where to start with this problem. I have looked through the msdn website and done...
No activity results to display
Show More
Leave a comment: