|
Hello,
just wanted to ask you ppl how we can add a help feature in a windows app, like the one that shows you the index n search facility. It has something to do with .chm files but I dont know the details.
Any ideas, link??
Thanks in advance
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
First of all u need to have the .chm file...u can make a .chm file with tools available in the net...try WinChm tool u will get the trial version of it...After making the desired chm file drag a helpProvider control onto your form and attach the chm file to it ( u will find it in the control properties) Now invoke the helpprovider on the help button click
Koushik
|
|
|
|
|
Thanks Koushik that looks pretty helpful
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
u r welcome dude!
Koushik
|
|
|
|
|
I'm using datalist control in shopping cart. i want show/hide the details of shipping addresses for multiple products
for that i'm using a table (with multiple textboxes) and a button in datalist.
when i'm clicking button in datalist total table's are
visible otherwise all table's are invisible ..
tell me how to hide address details of particular product in
datalist..
suman.c
|
|
|
|
|
|
Rocky.......
I'm not finding any answer in ur reply for show/hide ship details
suman.c
|
|
|
|
|
when i'm clicking button in datalist total table's are
visible otherwise all table's are invisible ..
tell me how to hide address details of particular product in
datalist..
with this I thought you want to show/hide datalist items. I think I was wrong. We can't understand anything when u say you wanna hide a product table coz we're not the one's seeing what you r doin right? So try to explain what u wanna do in terms of .NET object manipulation ok.
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
|
ur welcome but did that help u out??
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
I'm explaining u in easiest way ....
when we are clicking a button textbox should be visible.........
when we are clicking again the same button textbox should invisible
Both these controls are placed in datalist......
so that multiple buttons & textboxes are coming I am not able to differentiate the click events when i'm clicking one button all textboxes disappearing.... and if i click again all textboxes disappearing .......
one button should work for one text box ()..........
Help me I think you understood the question........
waiting for ur reply.
|
|
|
|
|
I'm explaining u in easiest way ....
when we are clicking a button textbox should be visible.........
when we are clicking again the same button textbox should invisible
Both these controls are placed in datalist......
so that multiple buttons & textboxes are coming I am not able to differentiate the click events
when i'm clicking one button all textboxes disappearing.... and if i click again all textboxes appearing .......
one button should work for one text box ()..........
Help me I think you understood the question........
waiting for ur reply.
|
|
|
|
|
OK now I got the idea. and I'm gonna try and give u a few guidelines and I Hope it works for u
1st you need to use Javascript. use the getElementById() function in orderto get the column of the textbox u wanna show/hide.
In the button you should make an onclick method and change its text to 'show' when its clicked with text 'Hide' and vice versa
On the basis of this text you can toggle the show/hide functionality in Javascript.
I hope u get it done now..
best of luck
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
Hi
How to generate a pdf file from a byte array.
I have data in byte array. I want to open a pdf file in new window with Save option.
Any one help on this...
|
|
|
|
|
Open a new window (using Javascript or target="_blank") and request a page for it. Make the page return the byte array as response by using Response.BinaryWrite.
---
single minded; short sighted; long gone;
|
|
|
|
|
i have a dropdownlist in web control.i wanted to retrieve the dropdownlist selectedindex , and for that i want to use the get and set properties .
i am writing the following code.
int index;
public int DropDownListSelecttedIndex
{
get
{
return DropDownList1.SelectedIndex;
}
set
{
index = value;
}
}
the above code is write?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: the above code is write?
Syntactically it's correct, but logically wrong. You are not assigning the variable index back to Dropdown list.
|
|
|
|
|
public int DropDownListSelecttedIndex
{
get
{
return DropDownList1.SelectedIndex;
}
set
{
index = value;
DropDownList1.selectedindex = value;
}
}
If it would be like that ?Then was it right?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Yes. But still why you are assigning value to variable index if you are not using it ?
|
|
|
|
|
public int DropDownListSelecttedIndex
{
get
{
return DropDownList1.SelectedIndex;
}
set
{
DropDownListSelecttedIndex = value;
}
}
Is it right now?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
I want to add child nodes in tree veiw
how can i do it.
foreach (DataRow row in tbs.Rows)
{
treeVu1.Nodes.Add(row["TABLE_NAME"].ToString());
foreach (DataRow row1 in clmns.Rows)
{
TreeNode tnode = new TreeNode("COLUMN_NAME");
//here i want to add columns names as child
}
}
regards,
chanzeb chaudhary
|
|
|
|
|
you need to get the particular TreeNode object to which you wanna add the child to and then use the Add function like that. how to get that Node programatically is up to u.
Hope that helps
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
hi friends,
i did lot of R&D on this but finally i was stopped here ........and i am unable to do this ...please provide the solution for this ..
i am passing the parameters from webapplication(asp.net to c#)
i wrote the code in asp.net is like this
System.Diagnostics.ProcessStartInfo startInfo;
Process p = new Process();
p.StartInfo.Arguments = "new" ;///this line is for passing the parameters to that exe)
startInfo = new System.Diagnostics.ProcessStartInfo(@"Mainform.exe");
how can cal the above parameter ("new") in the exe(c#)
Ramesh
|
|
|
|
|
Hello,
I dont' know if I understand your question.
But if you want to know where you get your argument in your C# project.
It is the Main Entry Point
public static void Main(string [] Args)
{
if (Args.Length > 0)
{
string value1 = Args[0];
}
Hope it helps!
All the best,
Martin
|
|
|
|
|
The following code is being executed in a highly threaded environment.
1. Why does the Debug.Assert statement sometimes fail?
2. What can be done to stop this from occurring?
public class Warehouse
{
private int stockCount = 0;
public void DecrementStock ()
{
if ( stockCount > 0 )
stockCount--;
Debug.Assert ( stockCount >= 0 )
}
public void IncrementStock()
{
stockCount ++;
}
}
|
|
|
|