|
Mark Nischalke wrote: we should be more tolerant of the disability
Yep, tolerance is what we need most to preserve our own sanity around here.
|
|
|
|
|
hi
i am new to xml.i am trying to sort xml file with a specified letter.it should search all nodes(parent and childs (all)) in xml file and return the sorted xml file.i am using c# windows application.ex:here xml file.
Category>
Computers>
HP>
HP1/>
HP2/>
/HP>
IBM/>
Others/>
/Computers>
Printers>
HP/>
Dell/>
Others>
/Printers>
/Category>
i have taken one textbox if we enter any letter 'H'
it should returns all the nodes(parent or child)that are starts with the 'H'letter.the resulted file should be like this
Category>
Computers>
HP>
HP1/>
HP2/>
/HP>
/Computers>
Printers>
HP/>
/Printers>
/Category>.
help me in this problem.
thanks
|
|
|
|
|
You could edit your other post instead of posting twice you know. Also, no one will do your work for you. Do some research[^] and you might get some results[^] that will help[^] you along your way.[^]
|
|
|
|
|
hi,
i have tried a lot for somany days.but i did't get solution to this problem.i need get all the nodes(parent and childs)(as xml file) which are starts with a specified letter or word. can any one send suggestion to this problem.
thanks in advance.
regards
Jagan
|
|
|
|
|
hi
i am new to xml.i am trying to sort xml file with a specified letter.it should search all nodes(parent and childs (all)) in xml file and return the sorted xml file.i am using c# windows application.ex:here xml file.
<category>
<computers>
<hp>
<hp1>
<hp2>
<ibm>
<others>
<printers>
<hp>
<dell>
<others>
i have taken one textbox if we enter any letter 'H'
it should returns all the nodes(parent or child)that are starts with the 'H'letter.the resulted file should be like this
<category>
<computers>
<hp>
<hp1>
<hp2>
<printers>
<hp>
/Category>
help me in this problem.
thanks
|
|
|
|
|
i hav done the project in vb.net and backend as SQL Server 2000.
my connection string is
"Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=cyber;Data Source=MASTER"
here MASTER is my server name.
When i instal it in another computer i need to change my computer name to get my server name
Is there any solution to install the project with out change the server name.
|
|
|
|
|
if you want to use local sql server named as machine,
and if the sqlserver installed on this machine as default instance then you can use either ComputerName or "." , this means that you can user only (.) instead of (Master), but this may not work exactly wherever, but in most case that only one instance of sqlserver installed on target machine or you have an instance with the same name of target machine this method work correctly.
Human knowledge belongs to the world
|
|
|
|
|
Suppose i have any report and i want to get all the formula field used in dat report so if any of u have solution plz reply as soon as possible...
|
|
|
|
|
hi i need help creating dynamic array button for my panel
which will generate the butons depending on how many records are in the database
i am doing it in C# windows form vs 2005
so far wat i have is
Button[] btnvalveselect = new Button[count];
can anyone help?
modified on Saturday, January 10, 2009 8:15 AM
|
|
|
|
|
Depending on the number of records you're talking about, this can get out hand VERY quickly. You have to keep track of each button you create, wire up the event handlers you're going to need, and then, upon data refreshes, disconnect the event handlers, destroy the previous set of buttons and then create a new set.
Creating controls is expensive. Redrawing all those controls is, also, very expensive. The more controls you have, the longer it'll take your form to draw itself. So, if these buttons are going to end up in a scrolling environment, you may find that, with an increasing number of controls, scrolling performance slows down, dramatically.
To create a new Button:
Button newButton = new Button();
newButton.Location = new Point(x, y);
newButton.Size = new Size(100, 50);
newButton.Text = "Some Caption";
... blah, blah, blah ...
btnvalveselect[index] = newButton;
this.Controls.Add(newButton);
|
|
|
|
|
yes i know how to create the button but i dont know how to make the btnvalveselect[index] dynamic
as
is there like a redim function?
or dynamic way to create it so that it have no limit to the size it can hold?
|
|
|
|
|
if the count can change, consider a List< Button> instead of an Array; that will hold any number
of Buttons, and you can Add, Remove and enumerate them (e.g. with foreach).
|
|
|
|
|
ah i see what u mean but my ideal gui currently is a panel which hold a dynamically amount of buttons which would navigate by buttons outside the panel.
so far i have been able to get it all down except how to make a button array dynamic to hold an uncertain amount of array number.
any idea how?
and by the way i agree that a list box or buttons would solve the button easily too.
how ever i think because of the specific way i am placing the buttons in the panels i may have to choose the first way.
|
|
|
|
|
Are you familiar with generic lists, such as List< Button> or the old ArrayList?
If not, I suggest you read up on them, you won't use many arrays once you understand them.
They behave pretty much like a stretchable array, they can grow and shrink, you don't have to know
the size when you create them, and you can use an index on them as if they were arrays (internally
they are).
|
|
|
|
|
Hi,
if you are listing something (possibly with an unknown count), then want to operate on a subset of the
listed items, I would look at some of the listing Controls, ListBox is the first candidate.
Choose its SelectionMode appropriately and provide a single Button to operate on the selected items.
|
|
|
|
|
yeah i understand that a listbox or a combo box will be good for it
but unfortunately it must be buttons as its easier to click and its a requirement
|
|
|
|
|
Your app could react on a ListBox click too (effectively turning the entire row into one big button);
and you can always disable (or undo) selection mechanisms, if you don't need them.
|
|
|
|
|
Hi all,
I am creating labels at runtime and adding into panel.
I wants to create MouseHover Event to Label at runtime
For that i tried in following way.
But its giving Error "No Overload method 'lbl_MouseHover' matches to delegate 'System.EventHandler"..
for (int i = 1; i < 10; i++)
{
Label lbl = new Label();
lbl.AllowDrop = true;
lbl.Size = new Size(50, 16);
lbl.TextAlign = ContentAlignment.MiddleLeft;
lbl.ImageAlign = ContentAlignment.MiddleLeft;
lbl.Name ="lbl_" +i.ToString();
pnl.Controls.Add(lbl);
lbl.MouseHover +=new EventHandler(lbl_MouseHover); //Error
}
public void lbl_MouseHover(object sender, MouseEventArgs e)
{
}
please suggest me where i did wrong.......
Thanks in advance
|
|
|
|
|
sekhar.k wrote: public void lbl_MouseHover(object sender, MouseEventArgs e)
MouseEventArgs EventArgs
Thats it.
The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures."
|
|
|
|
|
Thanks for your suggestion.
Its worked...
|
|
|
|
|
Hi all,
I have a requirement of displaying both image and text in a single cell of DataGridview(Windiws Application).
Is this possible ,if yes please suggest me how to approach....
Thanks in advance
cheers,
sekhar
|
|
|
|
|
1. Provide padding in the TextboxColumn and then draw the image in the space created in the column using OnPaint.
2. Create your own datagridview column using the existing datagridviewtextboxcolumn class.
The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures."
modified on Thursday, January 8, 2009 9:56 AM
|
|
|
|
|
Thanks for your suggestion
|
|
|
|
|
I want to Invoke a Web Service using Visual C++ .NET. Please provide me with information.
I have sample code to invoke web service using c#. The web service method has complex data as input. Please reply.
|
|
|
|
|