|
|
Hi, Im developing a console application in visual studio and I just want my project to produce a .exe like in C. Is this possible? I can run it from the start..debugging thing but I want the exe. Also how do you run from VS and pass in command Arguements? Thanks in advance
|
|
|
|
|
For VS 2005, for existing application, in solution explorer, right click on the project and choose "Properties", you will see Properties Tabs Windows. Select "Application" Tab and there is a combobox called "Output Type", select "Console Application", you will get Console Application like C.(for new apps, choose Console Application in start up.) For Command Line Arguments, don't close properties tabs windows. Select "Debug". You will see "Start Options", there you can set "Command Line Arguments" and "Working directory" as well.
For VS 2003, in solution explorer, right click on the project and choose "Properties", you will see Property Pages Dialog. On left window, you will see "common Properties" and "Configuration Properties". Expand "Configiration Properties", you will see "Debugging". On the right side, you will see "Start Options", expand this. You see "Command Line Arguments" and "Working Directory".
Enjoy!
|
|
|
|
|
The .exe is in your projects 'bin\Debug' folder.
Wacky waving inflateable arm flailing tube man!
- Family Guy
|
|
|
|
|
hi guys,
in my client/server application, i have a list in my server of connected clients. if the physical connection of the network is dropped, i would like to start a timer in the server app that will count up to lets say 2 minutes and by that time if the client still did not respond i would like to remove that client from the list. how will i create multiple timers to monitor each of my clients?
or if you can suggest a better way of doing this, i accept suggestions. thnx
|
|
|
|
|
You don't need multiple timers.
Just use one set it's interval to one second...
Then have a list of connected users with a property that stores the time of last action, you then go trough that list comparing current time with that time every time the timer ticks and do your logic there...
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
How i can get position of mouse when hold tap and the contextmenu show? Thanks
Nothing
|
|
|
|
|
hi pmasknguyen!
honestly, i'm confused with your question... but if you mean to get the mouse position,
you can use the MousePosition property of the control. but this is in screen coordinates.
if you want to convert it to control coordinate, use PointToClient method and pass the MousePosition value as a parameter.
and also you can override OnMouseDown method if you are inheritng a control and if not, you can use MouseDown event instead.
hope that's what you want.
microsoc
|
|
|
|
|
I have used OnMouseDown but it's just update mouse position when tap on the screent. But when hold-tap the contextmenu will show out and the Event will not occur. How to catch this and get position.
Nothing
|
|
|
|
|
so you mean, you want to get the Mouse position when the contextmenu shows?
if that's what you want, you can use the Popup event of the contextmenu. then on your event handler, you can now use the MousePosition property.
hope that solves your problem.
microsoc
|
|
|
|
|
Hello,
I need to change the index of the currentrow so i can select the next record in the datagridview.
gtz stijn
|
|
|
|
|
hi
How to add console in win app in vs 2005?
|
|
|
|
|
Set the project type to "console application" in the project properties dialog
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi!
What do you mean with "how to add console"?
You want a windows application and an additional shell window (often referred to as 'console')?
Then call Process.Start("cmd.exe"); (although I can't see what this is good for right now).
Or do you mean a console like you get in some FPS games where you can type in commands for your application?
In this case you'll have to implement it for yourself. For example, create a dialog with a TextBox and every time <Return> is pressed, evaluate the string in the TextBox and act accordingly.
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
hi guys,
how can i prevent a messagebox from reappearing? i have this timer that if the client is not connected to the server, a messagebox would appear informing the user that he is not connected to the server. i want the messagebox to show only once, until he is connected to the server. tnx in advance..
|
|
|
|
|
How long a message box is displayed is controlled by the user. If you want to remove the messagebox by code, you can't use a messagebox. Use a small form instead.
---
b { font-weight: normal; }
-- modified at 8:25 Monday 27th February, 2006
|
|
|
|
|
thanks for the reply..
ok, i thnk ill use a form as you suggested. how can automatically close the form? will i use a timer?
|
|
|
|
|
Couldnt you just use a bool value to indicate whether or not its shown (might have to create it as an object for this) and use an if statement to act accordingly ?
|
|
|
|
|
uhhh how is dat possible autekre? is that for the messagebox or the form?
|
|
|
|
|
public partial class Form1 : Form<br />
{<br />
private Boolean lShowedOnce = false;<br />
<br />
public Form1()<br />
{<br />
InitializeComponent();<br />
}<br />
<br />
private void Timer1_Tick(object Sender, EventArgs e)<br />
{<br />
if (this.Tag != "Connected")<br />
{<br />
if (!lShowedOnce)<br />
{<br />
lShowedOnce = true;<br />
MessageBox.Show("You are not connected to the server....");<br />
}<br />
if (ConnectToServer())<br />
this.Tag = "Connected";<br />
}<br />
}<br />
<br />
private Boolean ConnectToServer()<br />
{<br />
Boolean lConnected = false;<br />
return (lConnected);<br />
}<br />
<br />
}<br />
----------
There go my people. I must find out where they are going so I can lead them.
- Alexander Ledru-Rollin
|
|
|
|
|
hey thanks man!
i'll try this code immediately..
i really appreciate it..
|
|
|
|
|
hai iam using wiaeasy image for capturing image,its working fine when i use web cam, while using video camera its giving error message like No wia device found. pls give me the code or what i have use to get the image of video camera.
|
|
|
|
|
Hi!
Then why don't you ask the makers of wiaeasy image why it doesn't recognize your video camera?
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
Hi
I would like to use the C# Datagrid that was submitted by one of your authors,Linjie, but i keep getting the following error:
"Failed to create component: Collate", when I attempt to drop it on my form.
Please assist
Thanks
Christopher
|
|
|
|
|
Chances to receive a reply are much higher if you ask in the comments section of the article itself. The general C# forum isn't the correct place.
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|