|
Hi all,
i want to know how to fire enter key press in the textbox to log into next form or to move fouce on the button
Thanks
|
|
|
|
|
Just use the event "KeyPress" or "KeyDown". Check if key pressed is "Enter".
If "Enter" pressed, then button.Focus(); or go to next form.
|
|
|
|
|
Use something like this....
private void Textbox__KeyDown( object sender_, KeyEventArgs args_ )
{
if ( args_.KeyCode == Keys.Return )
{
// Do whatever
}
}
|
|
|
|
|
|
Hi All,
I have tables called CALL and Operator.
Select Distinct(Mobile),MIN(DATE_OF_CALL),NAME_OPERATOR from Call inner Join Operator on
Call.CustomerId=Operator.CustomerID
where Datename(month,DATE_OF_CALL)='APRIL'
Group by Mobile
What i want is to get the first date of entry for each Mobiles in the month of april and the operator who attended them.
However i Have to group by Name_operator to run the above script.But i dont want them to be grouped by OPerator.I want the first entry of a mobile in the database together with the name of the operator who attended them.
How do i go about it Please?
Thank you so much.
|
|
|
|
|
Do NOT cross post, you were right with the database forum - cross posting to here is RUDE!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
How can i select all the items in list box by pressing Ctrl+A
i wrote the code to accept keys but i don't know how to highlite all the item in list view.
if(e.Control == true & e.KeyCode == Keys.A)
{
listView1.....??????
}
A S E L A
|
|
|
|
|
You can add to the SelectedItems collection.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
for(int i = 0; i < listView1.items.count; i++)
listView1.setSelected(i,true);
Use the above loop to select each item.
|
|
|
|
|
hey,
i have two treeview controls and whenever i try to drag a node that has children under it to the other treeview it only drags that node without its children.
Any ideas how to solve this?
am using drag and drop
thank u
|
|
|
|
|
try this[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
i did that and didnt find anything useful.. otherwise i wudnt post my question.. if u dont wana help just dont reply
|
|
|
|
|
Did you look at the first hit on the list - a complete method for drag/drop between trees. What do you expect from the forums.
I actually tried the search, recognised some of the links that I used when playing with this when I moved from VB to C# recently and figured it was an excellent place to start. If you cannot get anything useful from that list then you have my sincere sympathies as you must be in the wrong career.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
well if ud read my first post ud see that it does work the whole drag nd drop, its just tht i found a bug that it doesnt take the underlying nodes with.
there is nothing wrong with asking for help. it can turn out be timesaving when u dont have a lot of it.
|
|
|
|
|
Well, it sounds like your code doesn't go into the child nodes of the dragged node and moves them as well. So far, your code only moves the one node.
|
|
|
|
|
I want to store dynamic variables in a exe file (C#), that I can access [mostly just strings] to read or write. I was using the Application Settings class but it apparently saves the files in Application Data but I want my exe to take the values from the form and write them to itself or store them inside the executable file so that when I send the file to someone else it will have the preferences stored without having to do anything.
If this is not possible is there any way of making a C# builder application that will ask for variables and then create a new exe file with the variables pre-stored? Thanks
|
|
|
|
|
Take a look at this thread[^], it may help
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
You're much better off keeping those values in a seperate file. You cannot write to an .EXE file that is still running.
Not to mention the problems with finding the values in the binary file and CAREFULLY writing the news back so you don't screw up anything around it.
|
|
|
|
|
Hi there,
thanx for taking interest in my question. Please suggest me some sites where I can submit my software with some gains..... And is the EULA predefined during the time of creating the setup for the software? Or will I have to submit the entire Solution to the software dealers without creating any EULA or setup?
Please help,
Rajdeep.NET
|
|
|
|
|
And what is your question on C#?
|
|
|
|
|
Try the "Running a business" or the "Sales and Marketing" forum
I are troll
|
|
|
|
|
I assume that all here on CP will get a share of the profits, should you ever succeed in doing this.
We've written most of it for you!
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.”
|
|
|
|
|
Hi,
I am using CustomRoleProvider for connecting to ActiveDirectory.
My requirement is to:
- Add/Edit Groups,
- Add/Edit Department(Groups will belong to a Department),
- Add/Edit/Delete Users,
- Add/Edit Roles,
- Add/Edit Permissons and
- Add/Edit Role with subRoles under it.
My questionis is can we implement these features in ActiveDirectory?
Best Regards,
Mini Thomas
|
|
|
|
|
|