|
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
|
|
|
|
|
Software_Specialist wrote: i.e Form2.ShowDialog(Form1);
Nopes the intellisence doesn't give me any ShowDialog option..
Create an object of Form2 and then do a ShowDialog() .
private void btnOpenForm_Click(object sender, System.EventArgs e)
{
Form2 objForm = new Form2();
objForm.ShowDialog();
}
If you want to hide a form and reshow then you would need to send an object of your current form to Form2
In Form1
private void btnOpenForm_Click(object sender, System.EventArgs e)
{
Form2 objForm = new Form2(this);
objForm.Show();
this.Hide();
} In Form2 you store the object of Form1 and when you close the form, do a Show() on the object you sent from Form1.
private Form frmParent;
public Form2(Form objForm)
{
InitializeComponent();
frmParent= objForm;
}
private void btnClose_Click(object sender, System.EventArgs e)
{
this.Close();
frmParent.Show();
}
|
|
|
|
|
Thanks for your reply..
But only one part of your explanation is working. i.e. first part. Now i am able to open a second form.
But i am unable to hide it and also 3rd part is not working. If i include this then i get error over the main form button control that Form2 needs argument...
Form2 objForm = new Form2();
public Form2(Form objForm)<br />
{ InitializeComponent(); <br />
frmParent= objForm;<br />
}
So any guesses...???
|
|
|
|
|
I suggest you take a beginners cource in C# first and study the chapters on classes and methods.
You specify the a class Form2 with a constructor that reuqires an argument. So he compiler tells you to include the argument. In this cae, you want to pass a reference to the calling form, so you should specify:
Form2 objeForm=new Form2(this)
this refers to the current object in this case.
Rudolf Heijink
|
|
|
|