|
Hi there
Try this code in your button :
Private Sub CommandButton1_Click()
Dim RetVal
RetVal = Shell("CALC.EXE", 1)
End Sub
You should compile your c# program and call it as above.
Yours
Wilco
|
|
|
|
|
That's what I needed. Thanks a lot!
|
|
|
|
|
hi Frnds
can i run c#.net windows application on client machine . where framework is not installed.
please guide me for this problem.
Thanks in advance.
Vicky
|
|
|
|
|
No, you can't. But it's a one time download that you can auto-detect and install .net (whatever version your application uses).
|
|
|
|
|
can u please tell me how to create a setup. including DB coonection also?
Vicky
|
|
|
|
|
master vicky wrote: can u please tell me how to create a setup.
You should report to your ISP that you can't can't get to Google and Micrsoft.com
|
|
|
|
|
i am not able to create the setup for my c#.net aplication.
after runing the its copying the source file to the client machine
please help me
Vicky
|
|
|
|
|
master vicky wrote: after runing the its copying the source file to the client machine
Born to rune...
(old T. Pratchett quote)
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Vicky, go into Visual Studio->New-> Project...->Other Project Types->Setup and Deployment->Setup Project.
|
|
|
|
|
Your installer will have the .NET framework as a dependency. The .NET runtime will be installed by the installer.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
master vicky wrote: can i run c#.net windows application on client machine . where framework is not installed.
It's like asking "How do I run a Windows Application in Dos?".
|
|
|
|
|
I've recently discovered the usage of WebService. You could say I'm a newbie. So far I've been having difficulties understanding it's limitation publishing a [WebMethod]. Is there a rule of thumb to what kind of methods that should be exposed using [WebMethod]?
For example, if I have a method that sets a datasource to an "Object" such as a WebControl GridView. Is this logical? Thing is I've mainly seen examples that only return strings. I've attempted to associate objects with [WebMethod] but came across many errors. Learning is definately trial and error, but need a boost in finding the right path.
Example of simple object associated Method:
[WebMethod]
public void setVisibility()
{
GridView gridView = new GridView();
gridView.Visible = False;
}
If anyone can offer tips, I'd appreciate it.
|
|
|
|
|
Ok, I was lucky enough to find a great source off the web. Now I have this understanding that WebService is more like transferring data rather than "objects". DUH!
If anyone wish to elaborate, that would be helpful as well. I now understand what is is mainly used for.
|
|
|
|
|
I think you're misunderstanding the purpose of web services. Typically, web service are used in distributed applications where one part of the application needs to consume some service e.g. request data or initiate a process on another remote part of the application. Web services are part of the business layer of an application. They are not suitable for UI-related operations.
Paul
|
|
|
|
|
I don't think you would want to try and control the visibility of a gridview in a webservice. You may want a webservice to return a dataset which is the data that the gridview is displaying.
Ben
|
|
|
|
|
Thanks all. I appreciate it. I've misunderstood the usage of WebService indeed. Looks like I'm on the right path now. Off to the yellow brick road.
|
|
|
|
|
I try to make import the DLL that i wrote in C# to C++ project and i getting this message
Error 1 fatal error C1083: Cannot open type library file: 'c:\.... DLL file path ....\maintdll.dll': Error loading type library/DLL. c:\.... DLL FILE PATH ......checkinguiincpp\checkinguiincpp.cpp 6
Someone can help me ?
|
|
|
|
|
Are you trying to import .Net dll to Unmanaged C++ ?
|
|
|
|
|
Is your C# COM dll registered on the system using the RegAsm utility in the .NET SDK? Can you look at your C# COM dll using the OleView utility?
|
|
|
|
|
I can see the TLB file - but i cant see the dll in the oleView.
The registration with RegAsm does not help.
What to do next ?
|
|
|
|
|
Yanshof wrote: The registration with RegAsm does not help.
When you run RegAsm on your dll, what happens?
|
|
|
|
|
I run it on the command line - and i getting back this message
Types registered successfully
|
|
|
|
|
Hiya
How can i create a sub form. Actually what i want is after i press a button on my parent form. It should open up a new sub form and hide the parent form and when i close the sub form, my parent form should comes up again.
Do i have to add sub forms to the application or how does it work basically....
Any help would be greatly appreciated.
Thanks
|
|
|
|
|
To simply create a sub-form that forces the user to use that sub form and not switch back to the parent form, use subForm.ShowDialog(parent); it will create a modal form that forces the user to use it before going back to the main form.
|
|
|
|
|
Can you pls tell me in a bit detail...
I have created a windows project and at the moment it has only one form. Over that i added a button and double click over button to write certain code to open up a new form and hide that one. So do i have to add another form first or how does it work. If i add another form i.e. Form2 then i can't write the code you said under the button action ...
i.e Form2.ShowDialog(Form1);
Nopes the intellisence doesn't give me any ShowDialog option...
Thanks
|
|
|
|