|
|
I tried to modify my code to generate the assembly in memory
instead of creating the dll on disk. and I get an error.
An unhandled exception of type
'System.IO.FileNotFoundException' occurred in mscorlib.dll
Additional information: Could not find file "C:\DOCUME~1\GDUDLE~1.MBI\LOCALS~1\Temp\cdqmv_u2.dll".
Unhandled Exception: System.IO.FileNotFoundException: Could not find file "C:\DOCUME~1\GDUDLE~1.MBI\LOCALS~1\Temp\cdqmv_u2.dll".
File name: "C:\DOCUME~1\GDUDLE~1.MBI\LOCALS~1\Temp\cdqmv_u2.dll"
does this mean it is still creating and loading from the disk? The filename it is displaying changes each time I run it so I assume it is a temp file.
=================================
When i was in school all I wanted was to get out into the real world.
Now that I'm in the real world all I want is to go back to school.
|
|
|
|
|
I need Help! I'm trying to convert this script to VB.Net but its in java and I don't fully understand java to well.
var logQuery=new ActiveXObject("MSUtil.LogQuery"); <br />
var recordSet=logQuery.Execute("SELECT * FROM <1>"); <br />
<br />
for(; !recordSet.atEnd(); recordSet.moveNext()) <br />
{ <br />
var record=recordSet.getRecord(); <br />
for(var col=0; col<recordSet.getColumnCount(); col++) <br />
{ <br />
if(record.isNull(col)) <br />
WScript.Echo("NULL"); <br />
else <br />
WScript.Echo(record.getValue(col)); <br />
} <br />
}
ok I tryed this but:
'ExecuteBatch' is not a member of 'System.Array'.
Dim szQuery As String = szSelectClause & szAS & szLogFileDir & szLogFiles & szWhere & HackCond & szGrouped<br />
Dim test3 As MSUtil.COMIISW3CInputContextClass<br />
Dim test2 As MSUtil.COMCSVOutputContextClass<br />
Dim g_LogParser As MSUtil.LogQueryClass() <br />
Dim recordSet As MSUtil.ILogRecordset = g_LogParser.Execute(szQuery, test3, test2)<br />
|
|
|
|
|
Hello,
I'm using vb.net . I want to make a window
behind all other windows. I don't want to use hide()
and SendToBack() don't work. How can I do it?
thanks
|
|
|
|
|
there isnt a zorder like in vb6 ,but SendtoBack works fine, i just placed a listview over the top of a richtextbox then on a command button did the following
ListView1.SendToBack()
and the listview got sent to the back ( behind the richtextbox )
|
|
|
|
|
Hi,
I have designed a usercontrol with a label-, a textbox- and a button-control. To accelarate the design-time I have tried to bring some of their properties on top of the property-editor, f.e. like this
dim fLV as boolean
<br />
<Category("Basic Properties Label")> _<br />
Public Property LabelVisible() As Boolean<br />
Get<br />
Return fLV<br />
End Get<br />
Set(ByVal Value As Boolean)<br />
fLV = Value<br />
Label1.Visible = fLV<br />
End Set<br />
End Property<br />
After that I have created a form with a tab-control and about 4 sheet. When I insert my new control on page1-3, then activate page 4 and run then program, all of my self-created controls are no longer visible. This effect is shown even at design-time after an execution of my program.
I'm looking for a solution , until now, I haven't found any. Maybe you have one?!
Greetings
Knut Freyer
Bonn
|
|
|
|
|
Hello,
I tried to fill combobox with the property :
ComboBox1.DataSource = SelectByName() 'return a datatable
ComboBox1.DisplayMember = "NOTES_TEXT"
ComboBox1.ValueMember = "ID_NOTES"
And it works well.. But when I try to do this on the same form :
ComboBox1.DataSource = SelectAllName() 'return a datatable
ComboBox1.DisplayMember = "NOTES_TEXT"
ComboBox1.ValueMember = "ID_NOTES"
ComboBox2.DataSource = SelectAllNotes() 'return a datatable
ComboBox2.DisplayMember = "NOTES_TEXT"
ComboBox2.ValueMember = "ID_NOTES"
The combobox are binding but I have two times the same value : the combobox1 have de value (data) of the combobox2 !! If I do that on a different form, it's work !!
Why.. it's two different DataSource..?! If it's because there is two times the same DisplayMember and ValueMember what I have to do ??
Thanks a lot for your answer..
Julien
|
|
|
|
|
Hi,
I'm a VC++ programmer, and I need now to develop some ActiveX controls in Visual Basic 6.0 for a client. Could you point some good book about this issue ? ( well and another good book to learn Visual Basic ).
Thanks in advance
Braulio
|
|
|
|
|
Mastering Visual Basic 6.0 (by Evangelos Petroutsos) - Sybex press, Is a great VB6 book and I recommend it.
|
|
|
|
|
From where i can download the Source code of that book. (for Free)
|
|
|
|
|
To download the source code for examples of this book go to
www.sybex.com[^]
and search for the title..You'll find a link in the page that directs you where to download code on the CD.
I'm not sure if the book itself is available online.
|
|
|
|
|
Hi,
i have 2 dynamic rectangleF and one string.
Now i want to use the substring to split the text in 2 parts.
If the first rectangle is full, then use the second one.
Is there any way to draw a string inside a polygon ?
If yes, i would use that..... but at the moment i can only fill text
in rectangleF with Drawing.String.
Or know someone how i can see the text.length for the first rectangleF (max. length),
so that i can use substring on it.
Hope someone can help
Darkmoon
|
|
|
|
|
I want to load a data grid with data in an XML file. I know i can do this with the ReadXML method of a dataset and then set the DataSource of the grid = to the dataset. But how do I take all the data in the grid and get it back into a dataset so I can save it back to XML format? Also how can you set the column widths for each column and do things like center the column headings and things like that?
|
|
|
|
|
When you databind your datagrid with a dataset, you are in fact setting up a "relationship" between the 2 objects. The changes done in the grid will be reflected to the dataset, so all you need to do is retain the dataset in memory.
Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning
Mark Twain
Get your facts first, and then you can distort them as much as you please
Mark Twain
|
|
|
|
|
Hello,
All I am trying to do is run simple programs that I learn from a book
every time I "Start without Debugging" it gives me a messageBox with "there were build erors"
Now this seems to happen when I rename the ".vb" file and rename the "Module" (I am in the beggining of the book and were are just on simple modules). Also under the build error 'Task List' it says "Sub Main was not found in 'ConsoleApplication1.Module1
Help. I am a rookie and i need help fast
|
|
|
|
|
It seems like you need to set the startup object in the project properties. TO access the project properties, you can either:
1. Click Project on the Menu Bar and select Properties, or
2. Right-click on your project in the Solution Explorer and select properties
On your project property dialog, you will see a combo box labelled "Startup Object". Navigate your combo box and select a startup object, which is usually a Sub Main method.
Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning
Mark Twain
Get your facts first, and then you can distort them as much as you please
Mark Twain
|
|
|
|
|
hi.. i have a problem regarding change some status frquently.
i m aorking a application of Port updateing and ports are updateing very-very frequently...i m collecting this information thru a event of a DLL. ..and when-ever status of any port will change the event genrates and give me the port no with the current status...then i should have run a function to changethe status....
now the problem is how can i update this information...thru therading or any easy way is for that? i m using vb.net and vb6...
regards
anand
|
|
|
|
|
vb6 is not strong in multithreading
but you can use an ActiveX EXE to do multithreading (but better to use APIs if you want some synchronization)
in .NET multithreading is supported.
|
|
|
|
|
Explorer Style
can we made a tree view or list view or any other control with style like title bar with close button...just like a outlook exp. or windows expl or internet exlorer's left hand panels....in these applications..we can close the tree view by CLOSE button...and make appear by menu..
i want to made same treeBox...
anand...
__________________
|
|
|
|
|
Make a custom control that contains a TreeView, leaving room at the Top to draw your own Button control. If you want to detect whether the button was Clicked, do it one of two ways:
1.) Determine if the MouseDown position falls within the Bounds of where you drew the Close Button. Use the code below to draw the button.
2.) Create a very simple separate control called "CloseButton" and all it does on the "OnPaint" event is the following code:
Dim g As Graphics = Me.CreateGraphics
ControlPaint.DrawCaptionButton(g, New Rectangle(50, 50, 50, 50), CaptionButton.Close, ButtonState.Flat)
g.Dispose() : g = Nothing
|
|
|
|
|
I'm obviously new to VB and I'd like to write a program that would have buttons on the left that, when clicked, will change the content on the right. I figured out that I can use a splitter control to seperate the form, but what control do I use for the left and right "frames"? I'd like it to work like a web page that has a frame on the left that stays consistent while on the right it would load other "forms" to add an item to inventory, or if another button is clicked a form would appear to view employees or something similar.
Can anyone tell me what controls would best allow me to do this? I'm using VB.NET.
Thanks...Brent
"It has become appallingly obvious that our technology has exceeded our humanity."
- Albert Einstein (1879-1955)
"I think there is a world market for maybe five computers."
- Thomas Watson (1874-1956), Chairman of IBM, 1943
"640K ought to be enough for anybody."
- Bill Gates (1955-), in 1981
"Half this game is ninety percent mental."
- Yogi Berra
|
|
|
|
|
Have you been to Myrtle Beach Computers's site? They have lots of really neat quotes there (including 3 of the 4 quotes in your sig).
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
You need www.dotnetmagic.com
|
|
|
|
|
|
Could anyone help me on how to attach a calendar in a text box whereby when we click on that text box, a calendar will appear. Then if we click on the date on the calendar, it will input inside the text box.
Thanks.
|
|
|
|