|
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
|
|
|
|
|
It's a bit difficult to understand exactly what your talking about or what your specifically looking for. But from what I can understand, wouldn't you be describing an MDI application? A parent form (MDI Parent) with a bunch of child forms (MDI Children).
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
More Precisely i have a medical application. In a consultation a doctor selects a diagnosis which has different findings and then surgery booked for it.
Now these diagnosis have many findings common and many differnt. so i was finding a way to load at runtime the differnt findings on the finding page with common still on that page. as there are about say 20 diagnosis i cannot make controls all on the same form.
i hope i made my problem a bit more clear .
Monica
|
|
|
|
|
monicatushar wrote:
Is there any control which is like a panel control in visual basic.Net.
Yes, there is. It's called 'Panel'. If you can't find it, sort your list of controls in the design view alphabetically ( right click for that option ), and look under 'P'.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
i am talking about Visual basic 6 not .net
monica
|
|
|
|
|
Oh - when you said 'Is there any control which is like a panel control in visual basic.Net.', I assumed you were specifying what version of VB you were using, when in fact you were saying you wanted one like the VB.NET one to use in a version of VB that was left unspecified. Sorry, I have no idea about that, I have never used VB6, nor would I ever be willing to. I just answer VB.NET questions as they often can be answered through my knowledge of C#.
Even if this is a legacy application, I believe that there are converters from VB6 to VB.NET, perhaps you could update the project ? I know it's possible to move VB.NET projects to C#, I've done it a number of times with very good success.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
Hello,
I think the "Frame" control is what you are looking for; it should be in the toolbox.
Hope this helps,
Mitch
My sig:
"And it is a professional faux pas to pay someone else to destroy your computer when you are perfectly capable of destroying it yourself." - Roger Wright
Get Perpendicular! (Hitachi Storage)
My CodeProject Blog
Most recent blog post: April 11
|
|
|
|
|
can anyone tel me how to access one variable retrieve from a database in one web form from another web form.....
and also how to allow multiple clients to have access to the web application....
|
|
|
|
|
shekkk wrote:
can anyone tel me how to access one variable retrieve from a database in one web form from another web form.....
Load it from the database again, or cache it per user.
shekkk wrote:
and also how to allow multiple clients to have access to the web application....
Put it on a public web server.
Christian Graus - Microsoft MVP - C++
|
|
|
|