|
I just realised you had jumped in. I thought the OP was saying. Well, I guess he's another who asks a question that's vague, then never replies when people try to help.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
hey rajesh thanks for rply
actually i m creating a window application
in which i m generating the auto complete source of a textbox from database
what i want to do is when user types in textbox if thr is no matching result then typed character should be removed and autocomplete dropdownlist appear again with the matching result.
i dont want to permit the user to type wrong entry
|
|
|
|
|
no it is not for a website, it is for windows application, thank you
|
|
|
|
|
thank u, its working now but the autocomplete dropdown list not coming when the last character removed
|
|
|
|
|
hey christian
sory for late rply
actually i m creating a window application
in which i m generating the auto complete source of a textbox from database
what i want to do is when user types in textbox if thr is no matching result then typed character should be removed and autocomplete dropdownlist appear again with the matching result.
i dont want to permit the user to type wrong entry
thanks for ur rply in advance
|
|
|
|
|
Could you handle that in the KeyPress event instead?
|
|
|
|
|
i m already using it on keypress event
thanks for rply
|
|
|
|
|
Try the following:
private void button1_Click(object sender, EventArgs e)
{
String s = textBox1.Text;
s = s.Remove(s.Length - 1);
textBox1.Text = s;
}
I think you got the solution.
|
|
|
|
|
How about textbox1.Text = textbox1.Text.Substring(0, textbox1.Text.Length -1 ); ?
However, if you read the other posts, we think he's writing a web app. He also doesn't seem to really want help, he's not posting back.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
no christian i want help, i have some problem with my internet connection thats why i m not able to rply,
n i m creating a window application
|
|
|
|
|
thanks for rply
ur code work fine
now when my last character is removed i want to show auto complete drop down again without pressing any key
can u help me with that
thanks in advance
|
|
|
|
|
Can you clear me the question? I am not understanding your question.
|
|
|
|
|
ok,
when we type any character in a textbox which have autocomplete option it shows a list of matched items. when we press any wrong character or the character which does not match with the autocomplete list the list is disappered. At that time if we press backspace then again autocomplete list appears with the matching items.
like that i want to show the item list again by removing last unmatched character programatically like e.g.(textbox.length-1).
I think autocomplete list generates on key_press event of textbox.
Hope now it is easy to understand
waiting for ur rply
thanks in advance for ur rply
|
|
|
|
|
ok i think it doesnt have any solution
thanks for all the rplys
|
|
|
|
|
hello every body.
I speak english alittle bit .
I want create Two Application C#.NET , and use pointer in memory
same :
Application#1.exe ( write value to pointer "A" )
Application#2.exe ( read value from pointer "A" )
|
|
|
|
|
This has nothing to do with pointers, it has to do with inter process communication. WCF is the best way to achieve that.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
How to read table from MS_WORD using C#
|
|
|
|
|
What have you tried ? Did you search with google ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
This is my coding, DeleteComand and InsertComand work, but UpdateComand not work, if change dap.AcceptChangesDuringFill is true, then UpdateComand work, but Delete and Insert not work, please help me to solve this problem as impossible as
DataSet dsLocal = new DataSet();
DataSet dsServer = scsiClass.getDS("SELECT * FROM [t_HR_Group]", "t_HR_Group");
SqlDataAdapter dap = new SqlDataAdapter("SELECT * FROM [t_HR_Group1]", con);
dap.MissingSchemaAction = MissingSchemaAction.AddWithKey;
dap.AcceptChangesDuringFill = false;
dap.UpdateCommand = cmd.GetUpdateCommand();
dap.DeleteCommand = cmd.GetDeleteCommand();
dap.InsertCommand = cmd.GetInsertCommand();
dap.Fill(dsLocal, "t_HR_Group");
SqlCommandBuilder cmd = new SqlCommandBuilder(dap);
dsServer.Merge(dsLocal, true, MissingSchemaAction.AddWithKey);
//dsServer.GetChanges();
int cn = dsServer.Tables[0].Rows.Count - 1;
for (int i = 0; i <= cn; i++)
{
DataRow dr = dsServer.Tables[0].Rows[i];
if (dr.RowState == DataRowState.Unchanged)
{
dr.SetAdded();
}
else
if (dr.RowState == DataRowState.Added)
{
dr.AcceptChanges();
dr.Delete();
}
}
int eff=dap.Update(dsServer.Tables[0]);
|
|
|
|
|
The controls you are using, are rubbish. Perhaps if you write your own code, you will get some control over what's going on.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: The controls you are using, are rubbish
Well, DataAdapter isn't a Control, but yes it's rubbish.
|
|
|
|
|
Hello everyone. I'm trying to create an MRU button list, similar to the one used in Office 2007 software. I've searched for months and all I can find it MRU list examples using menuItem and menuToolbars. I can't see how this would really be that much more difficult but for some reason, I keep drawing a blank.
I have a container like a panel control that will allow for buttons to be dynamically added to it.
Any help would be appreciated.
Preferably in C# but I can convert from C++ and Visual Basic as well.
Thankyou.
|
|
|
|
|
Well, all you need to do, is track what was recently used, and add to your container, right ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I need to figure out how to create the button dynamically, which I have. But creating a click event for the buttons dynamically is giving me trouble.
|
|
|
|