|
You might want to download the notes from the following websites, these are the notes my instructor teaches VB.NET with, they are really great notes. You will find what you're looking for in the unbound database notes.
http://www.mstc.edu/instructor/VGaul/Courses/Beginning%20Visual%20Basic/Begin%20VB.htm
http://www.mstc.edu/instructor/VGaul/Courses/Int%20Visual%20Basic/IntVB.htm
Treacherous_1
|
|
|
|
|
thanx buddy for ur help. its great. but still i'm having some problems. it would be kind of you if you can send a small sample program with code realated to my requirements as mentioned above.
|
|
|
|
|
Hi There!!
When I run the program that I have created for a Pocket PC device it does not show my application on the Project PC Emulator, is it possible to view your created program on there without having to upload it to a real Pocket PC!!, If so please can you give me advice on how to do this.
Thanks
|
|
|
|
|
Hi
How can prevent the Message box or warning box in Visual Basic. if possible,
pls send me the solution.
waiting for ur reply
Tkx
Krishna
|
|
|
|
|
You can't! If your code didn't launch the MessageBox, you can't stop it from popping up.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi
i have run a PDF file through multimedia. i have executing with a vb (exe) file. it will shows some warning message. if i give 'Yes' or 'No' nothing happend. while runnign vb file i don't want warning message or any message box.
pls help me or send me mail to krishnat_in@hotmail.com
w8ing for ur help
Krishna
|
|
|
|
|
For the life of me, I can't figure out what your doing... What are you talking about, "run a PDF file through multimedia"? What does this mean? What warning message? What exactly are you trying to do? Care to post a snippet of your launching code so we can see what your doing?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi...
I have used microsoft word 2003 to create a document. After that, I my vb.net coding... i use microsoft office 11.0 Object library to call this document and modify the text in the document... it work fine in my project... The problem is when i transfer this file and my project to another system tat have only microsoft word XP... the error will occur .... anyone know how to solve this problem??? thank you very much ...
the command line that cause error was:
wordDoc = WordApp.Documents.Open(FileName:=Directory.GetCurrentDirectory & "\New Report Template\" & TemplateFileName, ConfirmConversions:=False, Revert:=True, Format:=Word.WdOpenFormat.wdOpenFormatRTF)
the error message was:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in cosecmain.dll
Additional information: The server threw an exception.
|
|
|
|
|
Your code is obviously trying to import a COM object that does not exist on the machine, because it has an earlier version of Word to the one you imported on your dev machine. If an earlier version supports the functionality you want, then hopefully you can import it instead on your dev machine, and the new version will support the same object as well as the updated one.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
thanks for your help... what u mean is i have to use the olddest version of microsoft word (word 97) to create my template file and the project so the user tat using office 2000, xp or 2003 can run the project??
|
|
|
|
|
|
Yes... the "late binding" method has solved my problem. but, there is a command line tat will cause another problem..
my code
wordDoc.Content.Find.Execute(FindText:="#Memo1#", ReplaceWith:="abc", Replace:=Word.WdReplace.wdReplaceAll)
error message:
An unhandled exception of type 'System.MissingMemberException' occurred in microsoft.visualbasic.dll
Additional information: Public member 'Content' on type 'Application' not found.
do u know how to solve this??
|
|
|
|
|
IvanChang wrote:
do u know how to solve this??
Sorry, no. Does Word need the VB6 dll, perhaps ? I am guessing, you'd do better to wait for someone who knows more about VB than I do to answer.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
can I load user control on a form at runtime in visual basic 6
Monica
|
|
|
|
|
|
Let me clear it i have a usercontrol defined at designtime in my control with textboxes on it. i just want that control to be loaded on a form when some event is there. hope i made my problem clear.
MOnica
|
|
|
|
|
Is a user control not a control ? Here's another link from google, which seems to me to deal specifically with adding user controls at runtime.
http://www.vbcity.com/forums/topic.asp?tid=99341[^]
If that one is no good, I got a ton of info by googling VB6 'user control' add runtime, give it a go for yourself :P
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian
The links u have given is not helping me. There is error invalid class string.i am trying google also
|
|
|
|
|
Without seeing the code that generating the error message and the EXACT error message, it's really impossible to tell you what going on.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
How can i access the individual delegates attached to an Event?
In C#, I can use the GetInvocationList() Method on a Delegate.
How can i do this in vb.Net?
Thanks,
Zor
|
|
|
|
|
According to MSDN[^], VB.NET offers this the same as C#.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks Graus...
well, i did'nt explain it properly.
I need to be able to access individual delegates attached to an Event.
Lets look at a simple scenario...
Class MyClass
Public Delegate Sub MyDelegate(...)
Public Event MyEvent As MyDelegate
protected Sub OnMyEvent(...)
'RaiseEvent MyEvent(...) ' I do not want to do it this way.
' I want to be able to loop through each delegate attached to the event.
.
.
MyEvent.GetInvocationList() ' VB Compiler does not allow this.
.
.
end Sub
end class
Thanks,
Zor
|
|
|
|
|
Off the top of my head here, shouldn't that highlighted line you posted read:
Dim callbackList() As MyDelegate
callbackList = MyDelegate.GetInvocationList()
????
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
"MyDelegate" is Just a Type. Not an instance.
GetInvocationList() cannot be called on MyDelegate.
Thanks,
Zor
|
|
|
|
|
Is there any control which is like a panel control in visual basic.Net. Actually i have different forms(which i can make as user control) which i want to load on a single form when that option is selected otherwise how can i do that.
Monica
|
|
|
|