|
Hey all,
I was wondering if I'm even looking in the right direction on this one.
What I want to have happen, is in the client's PC, call CreateObject('ObjectOnServer.MyClass') then begin using the methods I built into the class on the server. Something like... getXML('identifiy where the xml is') and that will pass me back the XML.
Can the CreateObject access a class on the web? If so, any pointers on how would be appreciated.
Thanks,
Mike
Gaming at the GuildofBlades.com is the only way to really experiece the level 99 Soul-Sucking Sword!
|
|
|
|
|
This will only work if the component you want to call is registered on the clients machine as a remote-call object. You cannot specify the path to the object in the ProgID string you pass to CreateObject. Your object registration file must include this information. You'll use RegSvr32 to register the component using this file, just like any other. The registration file you use depends on the component you're registering.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
How to : key enter to next focus right cell in datagridview ?
|
|
|
|
|
use keydown... for next row... but if your talking about next cell right side using enter key then get the tab code then apply it to the enter key event...
nothing is impossible.....
|
|
|
|
|
Hi Everybody,
I am a new member in this forum and in fact on this site.
I need a link to a good tutorial on vb.net.
I will appreciate somebody's assistance.
Thanks.
"YOU CAN MAKE MORE MONEY ONLINE... STARTING TODAY!"
YOU CAN MAKE MORE MONEY ONLINE... STARTING TODAY!
No Start Up Costs! I will pay your way in Today! Join NOW!
http://www.trafficwave.net/members/webwareshop
|
|
|
|
|
Your best bet when starting out is to buy a book, not to read stuff online, which can be disjointed.
I'd sure love it if you removed that spam from your sig.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Christian Graus wrote: I'd sure love it if you removed that spam from your sig.
I second that
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
Hi, using VB net(2003) in a Windows Application, my question, How upon a button click allow calculation to be done if certain character are present in textbox like A to E, a to e, a dot, and finally the word cost. All other character must produce an error message. I try with ARRAY it does not seem to work. Could someone show me the way or a little tutorial would be greatly appreciate.
Thank you in advance.
|
|
|
|
|
A regex seems the best way to go. Better yet would be to only allow valid characters to be entered. The textbox has a KeyChar event, in this event, the eventargs include a boolean flag called Handled. If you set this to true, the keypress will be ignored.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
I got 2 quick questions:
1> System.Diagnostics.Process.Start("Explorer.exe", "%USERPROFILE%\My Documents\") returns folder doesn't exist because I have my documents in there, but I need to goto my documents, what should I do?
2> How do you set a global variable in .net that is accessable across multiple forms. Like Dim blah as Global?
Thanks...
|
|
|
|
|
arunforce wrote: %USERPROFILE%
You can't do this, you need to look up the path and pass the full path in.
arunforce wrote: How do you set a global variable in .net that is accessable across multiple forms. Like Dim blah as Global?
The only way is to have a class that holds it, and make it public and static. Consider making it a property, at least, and consider overall if it REALLY needs to be public. If you need to share stuff between two forms, a delegate is a better way to do it.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Then how do people do things such as that, with programs? It opens their my documents, I can do %userprofile% fine, I just can't attach my documents to the end. I don't think you know much about that.
And, how would I go about doing a class in VB.NET?
|
|
|
|
|
The Environment.SpecialFolder enum allows you to ask for the path to folders such as the userprofile.
arunforce wrote: And, how would I go about doing a class in VB.NET?
There is no way to write code in VB.NET outside of a class. Do you know what a class is ? If not, you need to take a step back and learn some basics.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hey all,
I was wondering how to right an application that sits on a server and connects to clients.
I have an application that users download and right now they pull files off my server, but I need to also be able to pull files out of a MySQL database... so I need to write a server side application for the client to talk to which pulls the information from the database and pushes it down.
Any ideas how I would accomplish that?
Thanks,
Mike
Gaming at the GuildofBlades.com is the only way to really experiece the level 99 Soul-Sucking Sword!
|
|
|
|
|
Hi again
This one sounds hard and not even !!!google!!! OMFG gave me an answer since I cannot phrase it so google understands the question.
When I click on a node in a treeview, how would I make it so that a panal or groupbox nearby will show the options for that selected node?
You are my last hope since I cant get google or MSDN to cough up any results.
------------------
If I had a £0.01 for the amount of times I have said to people "USE GOOGLE" I would be richer than Bill Gates.
|
|
|
|
|
The tree control has an event when the selected node is changed. You catch that, work out what node is selected, and show your contents accordingly.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Christian Graus wrote: The tree control has an event when the selected node is changed. You catch that, work out what node is selected, and show your contents accordingly.
I was going to suggest something like that. Is there a way the OP could data bind the selected node to the panel/groupbox?
BTW, I like the Dilbert sig
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
PaulC1972 wrote: BTW, I like the Dilbert sig
It's todays cartoon, go to www.dilbert.com to see it 'in the wild'.
PaulC1972 wrote: Is there a way the OP could data bind the selected node to the panel/groupbox?
I don't believe the nodes themselves have events, no. Having one event call different methods based onthe node selected seems nicer to me, anyhow.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: I don't believe the nodes themselves have events, no. Having one event call different methods based onthe node selected seems nicer to me, anyhow.
Okay. Was just wondering if there were more than one way of doing this. Your solution sounds quick and easy
---mod
I like how Dilbert was going on about Six Sigma Last modified: 1min after originally posted --
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
Quote ----------------
The tree control has an event when the selected node is changed. You catch that, work out what node is selected, and show your contents accordingly.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
Quote ----------------
Um guys I still need help?!?!?? What event.. Catch?.. event..?
Can someone give me a code snippet because I'm the type of person that learns how to code from code snippets and then experiments with it. I am stuck here with a tree view and a panel thats not doing anything....
Many thanks
---------------------------
If I had a £0.01 for the amount of times I have said to people "USE GOOGLE" I would be richer than Bill Gates.
|
|
|
|
|
Try using the NodeDoubleClick event procedure ...
Private Sub TreeView1_NodeMouseDoubleClick( .... ) Handles TreeView1.NodeMouseDoubleClick<br />
GroupBox1.Text = TreeView1.SelectedNode.Text<br />
End Sub
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
I tried that but at the end (the bit thats in bold) it says the signitures are not the same
Its underlined in blue saying it
Private Sub TreeView1_NodeMouseDoubleClick( .... ) Handles TreeView1.NodeMouseDoubleClick
---------------------------
If I had a £0.01 for the amount of times I have said to people "USE GOOGLE" I would be richer than Bill Gates.
|
|
|
|
|
Try to create the event procedure through the Properties window...
Some people have a memory and an attention span, you should try them out one day. - Jeremy Falcon
|
|
|
|
|
What am I looking for in the properties panel? (sorry about this I'm just real tired and my eyes are fuzzy)
ugh... what have i gotta change in the properties panel? Is it that tag field or is it something in the node properties somewhere?
---------------------------
If I had a £0.01 for the amount of times I have said to people "USE GOOGLE" I would be richer than Bill Gates.
|
|
|
|
|
What version of Visual Studio are you using?
Some people have a memory and an attention span, you should try them out one day. - Jeremy Falcon
|
|
|
|