|
In your installation project, open the Registry view and add your custom values as children to the "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" key.
NOTE: As always, you assume risk when changing the registry. Doing so can cause your system to become unstable or unusable. Please, do so at you own risk.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
I have a problem,
i build an aspx page a normal webform, on this i use a control from somewhere deep in the internet, it looks like a textbox, but has a small calendar attached, doesnt matter, works fine. The Problem is, that textbox has no 'TextChanged' Event, but i really need this one.
So my question is, could anybody help me, how to add this event to this custom TextBox, means how to add an event which is fired when the text in this box is changed!
Or in general how to create new events for existing controls/classes or whatever, damn .NET!
Hope someone is genius on that and can help me out soon,
looking forward not to kill myself
regards
Balu
|
|
|
|
|
|
Thanks for the fast reply,
i cant do this in Javascript cause i have to interact with another vb script editor and i cant use scripts on the html side, i need to pass my data from the code behind page, i have to use the event mentioned in the first post, to make an Sql call and then transfering recieved data to a vb script on whether the html side or in this special vb script editor!
I will see if the articel you posted could help me out!
If there are any other articles, how-to´s what ever on this topic, please post it!
Thanks again,
regards
Balu
|
|
|
|
|
how to create/extend the some of the standard controls like radio buttons / check boxes to make them more touch screen friendly.
It would be helpful if you can provide the options as early as possible
Thanks
Madhu Srinivasan
|
|
|
|
|
Do you just want larger targets for the touch screen? If so, just change their Height and Width properties to affect that. Ensure that the larger controls do not overlap.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Hi
Is there any tool in VS 2005 to do unit testing, creating test report.
Thanks and Regards
Srini
srini
|
|
|
|
|
I'm running beta 2, and there is a testing framework(?) built into it. Check out the (would you have guessed it?) Test menu.
Cheers,
Vikram. "When I read in books about a "base class", I figured this was the class that was at the bottom of the inheritence tree. It's the "base", right? Like the base of a pyramid." - Marc Clifton.
|
|
|
|
|
|
how can i see datagrid results in crystal report, or how can i connect datagrid that is belongig to a from with a crystal report. i designed datagrid as follows
SqlConnection conn;
string myquerry;
SqlCommand command;
DataSet veri_sert = new DataSet();
SqlDataAdapter adaptor = new SqlDataAdapter();
command = new SqlCommand(myquerry, conn);
adaptor.SelectCommand = command;
adaptor.Fill(veri_sert, "cash_register");
dataGridView1.DataSource = veri_sert;
dataGridView1.DataMember = "cash_register";
|
|
|
|
|
Hi.
I need a sample code that using it I can first delete all records in database (make database empty), then insert one row in it.
my database is Access, and languge C#.
Please help me in this context with complete code.
Thank's very much.
Best wishes
|
|
|
|
|
Well, at least you said please!
1) You give no details of the database tables, the table you want to insert into or any evidence that you have tried this yourself.
2) You EXPECT complete code? You will find a number of people here charge a good daily rate for coding, others are hobbyists who also give alot of time to a community such as CP. However, almost everyone is prepared to answer questions if the person shows SOME initiative (even a little). In your case there was ZERO!
3) Read How to get answers to your questions[^]
And if you were ever in any doubt - Notice a pattern in this posters questions?[^]
-- modified at 12:06 Thursday 5th January, 2006
|
|
|
|
|
I like your statement "And if were ever in any doubt...." The link really made me laugh.
You have my 5.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
private void deleteIt()
{
System.Data.OleDb.OleDbConnection oleCon = new System.Data.OleDb.OleDbConnection();
oleCon.ConnectionString("connectionstring");
oleCon.Open();
System.Data.OleDb.OleDbCommand oleCom = new System.Data.OleDb.OleDbCommand("delete from table", oleCon);
oleCom.ExecuteNonQuery();
oleCon.Close();
}
private void add()
{
System.Data.OleDb.OleDbConnection oleCon = new System.Data.OleDb.OleDbConnection();
oleCon.ConnectionString("connectionstring");
oleCon.Open();
System.Data.OleDb.OleDbCommand oleCom = new System.Data.OleDb.OleDbCommand("insert into table (value1, value2) Values("values1", "values2"), oleCon);
oleCom.ExecuteNonQuery();
oleCon.Close();
}
i dont know if this wil help you but its a try...
|
|
|
|
|
I've got an interesting Error on a recent program i've written that i am hoping someone could shed some light on.
My program at the moment consists of a main form and 2 word document programs written using vsto the entire things was written and tested in vs team system 2005 now i've written a set up program that essentially installs all the files and then registers the directory the word documents and their dll files are in with caspol.exe now on my computer it works just fine when i test the installation.
however i used my girlfriends computer as another test platform the install went fine she didn't have the .net 2.0 framework so the bootstrap loaded fine and it installed the framework it then proceded to install the app that all ran smooth and quick so i run the program and everything is working as it should.
but as soon as i try to open either of the word documents word gives the following error:
"The assembly * could not be found at or could not be loaded."
and yes that's the whole error message i have no clue where to even start....
if anyone has any ideas please let me know
thanks so much
Ryan
|
|
|
|
|
Ok this is a first for me I'm replying to my own post but i figured it out on my own and i figured it might benefit others so here goes.
Running on a hunch i decided to grab the VSTO runtime from msdn and install it on my girlfriends computer and viola works like a charm.
so i simply added a Process object in my custom installer class to install the VSTO runtime and now the installation works like a charm.
I do however have a side question if anyone cares to help
the file vstor.exe gives a few command line switches one in particular is /Q which it says is for quiet mode for installations now to me that means it runs completely in the background zero user interaction. well even with the /Q switch it still loads it's installation form. if anyone knows how to completely disabble that and still install the runtime it would be much appreciated
Ryan
|
|
|
|
|
I just downloaded vstor.exe and have confirmed your dilemma. It seems that the /Q flag does not get passed to the installer. If you want to do this, here's what I recommend:- Run vstor.exe
- When the installer form appears, open Explorer to "%TEMP%\IXP000.TMP"
- Copy all of those files to a "happy" place
- Cancel the installation
- Roll your own installation using those copied files and the command "install.exe /q"
Sometimes, even Microsoft makes mistakes with their installation programs....
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Hi,
I want to validate the email address using c#. I dont wnat to user any validator. Is it possible...
thanks in advance
Thanks
Warm Regards
Prakash-B
|
|
|
|
|
As a wise man once said Where does the first link lead you?[^]
So, you can use a regex as the above link will no doubt tell you, that will tell you if the email address is in the correct format.
You could also look for a webservice that will validate an email address as active - google will tell you more.
However, what did you mean by "I dont want to use a Validator"? Is this a web form or a winform?
|
|
|
|
|
|
Hi,
Thanks for your flying reply.
Thanks
Warm Regards
Prakash-B
|
|
|
|
|
i have made one window application. i would like to make that window application a window service.so that it works same as window service we have in control pannel->administator tools->services . when ever i start the system my application starts immediately.
Amit Grover
CDAC R&D
|
|
|
|
|
Hi,
for this u need to create a windows service application
when u create a new project select the Language and the type of the
project as Windows service
This will create a windows service application which has the OnStart method
this method is called whenever the application is started
Hope u get it.
Thanks,
Pramod
|
|
|
|
|
i have made a window service.i found one link from codeproject that is http://www.codeproject.com/dotnet/simplewindowsservice.asp.i downloaded the demo project from the site.but when i run the .msi to install the window serverice it gives me error "cann't found the file "../Doservicesteup.vdproj". then i follow the same setup which has given in the site to make own window service same error has come.how would i solve this error.
i also didn't know where to put my code. actullay i made a small application in which i have one window form.i would like to open that window form when window start. for that what i did is i give the path of my application.exe in OnStart() method of window service. it gives me a error message when i restart the window, when login form opened. plz help me where could i put my application code in window service
Amit Grover
CDAC R&D
|
|
|
|
|
Hi every one,
Wish u a happy new year !!!!
I am trying to develop a windows application which will run on touch screen LCD monitor.
but the touch screen requires bigger option button,check boxes, tab pages, scroll bars etc. in such a way that the enduser select the controls using his finger.
How can i adapt the .net windows controls for the touch screen application (like changing size,graphics etc.,)?
or is there any special controls available for touch screen in .net?
or is there any tool available to convert the normal controls to touch screen controls??
Please help...
Thanks & Regards,
Srini
srini
|
|
|
|