|
|
In a VS 2010 application I've been instructed to set a breakpoint and do a Quick Watch.
Can anyone tell me what a Quick Watch is and how you do it?
Thanks
Darrall
|
|
|
|
|
It's a way to watch a variable. When you hit the breakpoint, click Debug>QuickWatch... (or press Ctrl+D, Q ) and the QuickWatch dialog will appear which displays the value of the variable at that point.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Thanks Pete
|
|
|
|
|
You're welcome.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
If you google for 'quick watch vs tutorial' youls find lots of people who can tell you this and more.
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
The only valid measurement of code quality: WTFs/minute.
|
|
|
|
|
|
hi
i am using to form in my application each form have a datagridview i want to transfer all the rows of one datagridview to other form datagridview how?
|
|
|
|
|
You can bound both the datagridview with the same datasource.
- Praveen
|
|
|
|
|
You can use this method to get the DatagridView DataSource.
public Form2(DataGridView dg)
{
InitializeComponent();
this.dataGridView1.DataSource = (DataTable)dg.DataSource;
}
|
|
|
|
|
i did't bound any datagrid to any datasource but i just added some rows to one datagrid and want to copy it to other form datagrid using the code
RegistrationForm rg = new RegistrationForm();
for (int i = 0; i < dataGridView2.Rows.Count-1; i++)
{
string[] values = { dataGridView2.Rows[i].Cells ["TestID"].Value.ToString(), dataGridView2.Rows[i].Cells["TestName"].Value.ToString(), dataGridView2.Rows[i].Cells["Charges"].Value.ToString(), dataGridView2.Rows[i].Cells["DeliveryDate"].Value.ToString() };
RegistrationForm.dataGridView1.Rows.Add(values);
his.Close();
|
|
|
|
|
Hey guys, I'm currently working on a windows application and I'm looking for some help from developers with this experience ... Currently it's being tested on a single computer after fixing all the bugs I'm planning to distribute it and my target is around 100 to 200 clients.
1- the best method for Creating an install file (other than visual studio built in one which I'm already using)
2- the best way to update the software (currently I have to reinstall it on the client's machine)
3- Any useful tips or articles on creating online update
4- currently I install SQL 2005 and attache my database, a friend of mine suggested SQL lite, which one is more efficient?
5- Security, I know it's almost impossible to guarantee this 100% but I'm looking to find the best method, adding CD keys which has to be confirmed online, having USB security keys, ... what do you recommend ?
Thanx guys, I'm looking forward to your tips and help and if you've got any articles regarding my question please share it with me cause I'm here to learn.
Regards,
K
|
|
|
|
|
Hi ,
I will Answer only About what I am Sure of ...
1- I use NSIS Script ( I love it )
4 - Sql2005 or Sqlite ?
SQL 2005 | Sqlite
------------------------------------------------------------------
Work on network (Server) | Work On Single Machine only ( embedded)
Hard to Deploy and Install | Copy and paste to Deploy
Up to 13.00 GB DataBase Size | Up to 2.00 GB Size
5 - I use SmartAssmbelly , and I never used Dongle before ( but you must take a look at www.safenet-inc.com[^])
I know nothing , I know nothing ...
|
|
|
|
|
mrkeivan wrote: update the software
Look into Click Once deployment?
I recommend SQL Server (at least the Express version), you never know when you may need to scale up in the future.
|
|
|
|
|
Hi!!
i wanted to know if u cud tell me how can i make my program work in this manner..
run-> xyz.exe -start //to start
now the my program is running..
now to stop it...
run-> xyz.exe -stop //to stop
i'm thinking that when i write this last command, i use diagnostic class to kill xyz.exe process..
wat say.. m i thinking right... is there anyother way to do it..
|
|
|
|
|
I do that with my Windows Services.
|
|
|
|
|
wat m saying.. is that possible...
|
|
|
|
|
Possible? Yes.
Sensible? No.
What you are asking for is pretty much a windows service. You could do what you want, but it would be technically much more difficult than a service. Weren't you asking about TSRs earlier? The answer remains a the same, Windows services will do what you are asking, is there some reason you can't use them?
Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.
Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.
|
|
|
|
|
actually..
i dont know how to write window services...
and moreover m having just a month to complete my program...
my program does 3 works...
keylogger for security purposes,
watches mentioned files,
and kills mentioned processes...
now to that i've the knowledge abt all three...
but wat i'm lacking is the way i want to integrate them...
|
|
|
|
|
Search for a beginner's article on services here.
|
|
|
|
|
coudle u plz link me to the best article on services... i've found one..
[^]
is this the correct one..
|
|
|
|
|
That's a good one, remember to read the messages at the end. These can contain answers to problems you hit on the way.
|
|
|
|
|
i'm unable to understand this services from that article..
i understood its using service controller class in c#..
but m confused where should i place my code to be executed in it..
it says that the control should be transfered to os after the service is executed. but i want my program to be kept running otherwise it wont be logging keys, or watching files, or killing mentioned processes..
i hope u got my point..
|
|
|
|
|
|
Definitely sounds like you need a Service. They're not difficult.
To be able to control a Service from the command line I do something like:
private enum Action
{
None = 0
,
Status
,
Install
,
Uninstall
,
Start
,
Stop
}
[System.STAThreadAttribute()]
public static int
Main
(
string[] Args
)
{
int result = 0 ;
try
{
Action action = Action.None ;
if ( Args.Length > 0 )
{
System.Enum.TryParse<Action> ( Args [ 0 ] , true , out action ) ;
}
switch ( action )
{
case Action.None :
{
if ( System.Environment.UserInteractive )
{
System.Console.WriteLine ( "Syntax: JunkService STATUS | INSTALL | UNINSTALL | START | STOP" ) ;
}
else
{
System.ServiceProcess.ServiceBase.Run ( srv ) ;
}
break ;
}
case Action.Status :
{
System.ServiceProcess.ServiceController svc =
new System.ServiceProcess.ServiceController
(
srv.ServiceName
,
System.Environment.MachineName
) ;
try
{
System.Console.WriteLine ( svc.Status ) ;
}
catch ( System.InvalidOperationException err )
{
System.Console.WriteLine ( err.Message ) ;
}
break ;
}
case Action.Install :
{
System.Configuration.Install.ManagedInstallerClass.InstallHelper
(
new string[] { System.Windows.Forms.Application.ExecutablePath }
) ;
break ;
}
case Action.Uninstall :
{
System.Configuration.Install.ManagedInstallerClass.InstallHelper
(
new string[] { "/UNINSTALL" , System.Windows.Forms.Application.ExecutablePath }
) ;
break ;
}
case Action.Start :
{
System.ServiceProcess.ServiceController svc =
new System.ServiceProcess.ServiceController
(
srv.ServiceName
,
System.Environment.MachineName
) ;
switch ( svc.Status )
{
case System.ServiceProcess.ServiceControllerStatus.Stopped :
case System.ServiceProcess.ServiceControllerStatus.StopPending :
case System.ServiceProcess.ServiceControllerStatus.PausePending :
{
svc.Start() ;
break ;
}
case System.ServiceProcess.ServiceControllerStatus.Paused :
{
svc.Continue() ;
break ;
}
}
break ;
}
case Action.Stop :
{
System.ServiceProcess.ServiceController svc =
new System.ServiceProcess.ServiceController
(
srv.ServiceName
,
System.Environment.MachineName
) ;
if
(
( svc.Status != System.ServiceProcess.ServiceControllerStatus.Stopped )
&&
( svc.Status != System.ServiceProcess.ServiceControllerStatus.StopPending )
)
{
svc.Stop() ;
}
break ;
}
}
}
catch ( System.Exception err )
{
System.Console.WriteLine ( err ) ;
}
return ( result ) ;
}
(JunkService is a Service I've been fiddling with to learn WCF.)
|
|
|
|