|
I dont want to use template .. i'm inherting my class from "Installer" ... so i need to know how do you do it using Installer as a base class ..
Thanks N Regards
Prakash N
|
|
|
|
|
Well, you can't check for .NET framework into an installer class: the class will need the Framework to run, so it will crash if there is no .NET installed.
To do what you want, look for Launch Conditions.
|
|
|
|
|
Thanks a lot Mirko. Its helped me a lot
|
|
|
|
|
i just want to know one more thing .. what if i want to install the framework or SQL SERVER 2005 from the directory at the time of installation if the launch condition fails. Please let me know how can i do this ..
|
|
|
|
|
Right click on your setup project and press Properties, a window will open. Then, click on the Prerequisites button.
You will now see a list of packages that your application can depend to, check the ones you want to use and select Download prerequisites from the same location as my application to copy them in the output folder thogether with the msi file and Setup.exe.
If you have Sql Server installed on your machine you should have a Sql Server entry in the list, otherwise, look here.
|
|
|
|
|
i have SQL SERVER 2005 enterprise edition but in the prequisite list it shows SQL SERVER 2005 express edition ?? i dont know why .
I have downloaded BMG (Bootstrap Manifest Generator) tool but it has bugs and i cant generate the manifest .. have any other similar tool ??
|
|
|
|
|
Probably because not express versions of Sql Server are not freely redistibutable (you will need licenses for each machine on which you install it).
If your application is to be distributed on several client machines, then I suggest you to use Sql Server Express.
If you have problems with BMG, you should address them to this discussion page.
|
|
|
|
|
Ok mirko, thanks for the suggestions. It helped me a lot ..
|
|
|
|
|
is it possibale to do so???
if yes then how???
is there a way to create a dll in c# without creating a class????
thanks
Have Fun
Never forget it
|
|
|
|
|
|
thanks
the meaning without any "classes" is to have also functions!!!!
but i guess it;s not possibale
Have Fun
Never forget it
|
|
|
|
|
|
|
it's the right way...
|
|
|
|
|
It seems that I'm stuck on something small but I've been working on it for quite some time and I'm exhausted...
I have a method that returns a bool whether a TcpConnection was successful or not...
The method attempts TcpListener.AcceptTcpClient
however I want it to return false if no client has been connected within a specified time (e.g. 2000 milliseconds)...
How can I achieve this? I attempted the .BeginAcceptTcpClient and .EndAcceptTcpClient but these still block OR if I use the Thread.Sleep() I block the method from accepting any connecting client.. I need the result to be returned if a TcpClient is accepted or the operation 'timed-out' - whichever comes first. Please help!
|
|
|
|
|
something like this?
[pseudo C#]
private bool GetNext(out TcpClient client)
{
client = null;
while ((less than 2000 ms has elapsed) and (!TcpListener.Pending())
{
Sleep a bit
}
if (TcpListener.Pending())
{
client = TcpListener.AcceptTcpClient();
return true;
}
return false;
}
|
|
|
|
|
Hello,
I have a datagridview in my application.
I want to add an option that the user could resize the datagrid (table) as he wants (for example when the mouse is on the border of the datagrid, the cursor will change to resizing cursor and he could drag it (and so resize the datagrid).
How can i do it?
|
|
|
|
|
Most people arrange for the resize of the FORM rather than the control. If your DGV is set to dock.fill then it will be the control that expands when the form is resized.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
OK, But i want the DGV to be resized inside the form. For example if the mouse on the border of the DGV, it's cursor will be changed to resizing cursor and the user could drag it to its new size.
|
|
|
|
|
There are loads of hits for this, on Google.
One of them was Allow the User to Resize Controls at Runtime[^], have a look and see if it helps.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
|
michaelgr1 wrote: But i want the DGV to be resized inside the form
So you have loads of unused/wasted space inside your form - I'd call this lousy design, a form should be reasonably tight with no wasted space on it.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi,
I used this tutorial : http://www.codeproject.com/KB/cs/ResizeControlsRuntime.aspx
I have below my DGV another control (DGV), but when i resize the first DGV (below the second DGV), the second DGV hides part of the resizes DGV (it's on top of it). I have a resize option to the second DGV too.
What can i do that the resized DGV will be always on top of all other controls (DGV)?
If i can't do it, what can i do so the first DGV will be always on top of other DGVs (when i resize it)?
|
|
|
|
|
While I have not looked at the article - they are articles, designed to demonstrate a particular aspect of, in this case resizing, .net. You should not take this as a "good" design for UIs, thats not what the author was trying to achieve.
If I am doing a form that is resizable then there will be 1 or more list controls (ListView/DGV etc). These are the controls I will have docked as fill, all other controls will be placed inside panels and docked to an edge. This then allows the FORM to be resized and the list control expands. If there are 2 DGV then use a splitter control and allow the user to resize the DGVs.
I have NEVER designed a form where a DGV can be resized OVER THE TOP of another DGV, I would consider this a bad design.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
But i need it to be like that.
|
|
|
|