|
add an event handler for the TextChanged property of your textbox
there you can filter data of your collection according to the value.
or you iterate your collection and find the substring in each value (OK if not to many values) or you execute a query creating a new resultset and replace your collection. (this one is better)
maybe someone else has a better method.
good luck.
No hurries, no worries.
|
|
|
|
|
V,
Thanks for the response,
I assume you mean that the TextChanged property will pass a value to be queried in the Database? Do you think it would make more sense to have something other than the textbox, maybe a dropdown box?
Thanks again,
G
|
|
|
|
|
No, the app will enter this event while typing, you then get the value out of the textbox and do stuff with it.
For filtering I think this is better than the combo, those are usually used to filter on contexts, eg. an online cpu hardwareshop would implement a combo with values: Motherboard, graphical cards, memory, etc. to narrow down the search. The searchvalue itself is typed in a textbox...
good luck.
No hurries, no worries.
|
|
|
|
|
I have a windows based application. It collects data from user and on click on submits, it has to submit data to web service. Later, need to show the results from web service.
When user click on submit, I am trying to show an hourglass image and text please wait. But when I click on button, window behaves like hanged till it gets response from web service. After getting response, it shows the image and text.
How can I show image while it is connecting to web service and getting response.
Thanks in advance
- ashish
|
|
|
|
|
Try calling Application.DoEvents after the code for showing the image and text.
www.troschuetz.de
|
|
|
|
|
|
rami60i'm developing a project containing a pinging function
i ping multiple ip's in sequance
i check if the soket.available>0 i start recieving on soket
the problem is the soket keep filling the memory causing very law vertual memory
is there any way that i can reset the memory usage by the socket or do any thing to free the memory after i finish every recieve on soket
or even restart the socket?????
|
|
|
|
|
There is something seriously wrong with your code. There's nothing in a socket to modify tochange it's memory consumption habits.
You said you were just pinging IP addresses? That won't fill up memory. Without seeing your code, it's impossible to tell you what's going wrong.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
From MSDN Library:
When you are finished sending and receiving data, use the Shutdown method to disable the Socket. After calling Shutdown, call the Close method to release all resources associated with the Socket.
|
|
|
|
|
I want to display 50% opaque progressbars on top of my listview items as seen in this screenshot.
My Test ScreenShot
The screenshot is a hack I made to show what I want to happen. How can I do this? I need the listview items to be seen through the progressbar controls and respond to mouse-events, etc. Is there some way to extend the listview items to get this functionality?
|
|
|
|
|
|
|
Hi
I am Ilangovan,newbie for .NET.I have to send picture messages & ring tones
through GSM/GPRS modem using C#(preferred) or VB.NET...I need sample code for that.anyone can help me pls...
Thanks in advance
Regards
M.Ilangovan
Thank you very much
|
|
|
|
|
How I can remove a sheet by excel file using SQL.
I tried to use the Drop Table command, but it remove the contents of the sheet; but I not want remove the sheet contents I want remove the entire sheet.
Tanks,
Gianp.
|
|
|
|
|
im hiding the groupbox and i want to fill the empty space with datagrid that is still visible. how do resize the datagrid to feet the space, is there a easy way?
|
|
|
|
|
You can simply assign a new Location and Size property to any control to alter its appearance:
grpBox.Hide();
dataGrid.Location = grpBox.Location;
dataGrid.Size = grpBox.Size; Regards,
mav
|
|
|
|
|
i dont understand why
1.) dataGrid1.Size = groupBox3.Size + dataGrid1.Size;
work
and...
2.) dataGrid1.Size.Height = groupBox3.Size.Height + dataGrid1.Size.Height;
dont
i wanna change only dataGrid1 Height
|
|
|
|
|
|
can you help me please ...am learning
not workink code:
groupBox3.Hide();
dataGrid1.Location = groupBox3.Location;
dataGrid1.Size.Height = groupBox3.Size.Height + dataGrid1.Size.Height;
|
|
|
|
|
As I said already: The Size object is immutable. That means that once created it does not change. You cannot set the Height of a Size object because that would change the object, you have to create a new Size object and use that
In your code that means the line
dataGrid1.Size.Height = groupBox3.Size.Height + dataGrid1.Size.Height; cannot work because you are attempting to set the Height property on an immutable object. (If the property is on the left hand side [LHS] of the equals operator then that is a set operation, if the property is on the right hand side [RHS] of the equals operator then that is a get operation)
So, going back to what I said, you have to create a new Size object. Something like this would work
Size newSize = new Size(dataGrid1.Size.Width, groupBox3.Size.Height+dataGrid1.Size.Height);
dataGrid1.Size = newSize;
By the way, you should really attempt to name your controls (and all variables) with sensible names. groupBox3 and dataGrid1 are not self-explanatory. You will have difficulty in determining what you were trying to do if you come back to look at the code later.
Does this help?
My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
|
|
|
|
|
it helps! thx!!
|
|
|
|
|
You could put the groupbox in a panel, and then when you hide the groupbox, set the Dock property of the datagrid to DockStyle.Fill
|
|
|
|
|
thx for tip!
|
|
|
|
|
And you may try :
dataGrid1.BringToFront();
|
|
|
|
|
Hi everyone,
This is a very stupid question...But...
What help systems does .net have built in features for?
Is it HtmlHelp or standard html files? does the framework
even have any built in features for help?
End of stupid question.
Si
|
|
|
|