|
yes but new panel hide the others above, so if i need to work with the first one i can't whether i delete the others over.
|
|
|
|
|
Make a very big form so you can have all 4 panels side by side. And in the constructor resize the form to only have the first panel visible, and when you need to use another panel, move it to the position of the first panel.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
I think that you misunderstood the question. I happen to have the same question. What I'm looking for is a mechanism to create panels with controls at design time and flip through them (ala wizard) at runtime. The pain about using panels by themselves is that it's very difficult to overlay them at design time as the designer wants to keep inserting the topmost panel into the panel in the next layer. It's a mess. The only solution I have found thus far is to create the panels in different locations and then create them at runtime, locating them where needed. It would be very nice to have a TabControl-like container control to assist with this. I myself would use a TabControl, but there's no current mechanism in place that I know of to remove the tabs. (.Net 2.0 - Whidbey Beta 1)
If anyone can direct me to a resource for such a control, I'd be much obliged.
Thanks,
Bob Briggs
|
|
|
|
|
u can use the Control.BringToFront() and Control.SendToBack() ,within the designer, functions to get access to any control.
Mr.Cooper
|
|
|
|
|
Hello dear All
I am surfing very big problem last few days if you have
any idea please help me. I am developing application
software. I am using a tree view control and having one
problem in tree view control when I have expand all or
some node and on that time if tree control refresh then
all expanded node are collapse. I don't want to collapse
all expanded node. How can I do impalement this
functionality or I can again expand the entire node
which has expanded last time. Please Help me.
|
|
|
|
|
I can't figurout how , treeview will Collapse if you call Refresh method. Please check whether you are using CollapseAll method somewhere after updating or refreshing the treeview control. If you can show the code block, then that will be easy for getting into solution.
Sreejith Nair
[ My Articles ]
|
|
|
|
|
Is there any control that can convert text to speach
i saw some control that do that in .Net 2003 but i couldn't have it that was like Mouth form ..
thank you
|
|
|
|
|
|
|
How i could understand inside my application if the user if the cursor has clicked inside a textbox of him browser or another application?
|
|
|
|
|
|
Hi all,
I need to develop a mobile application in which the pocket pc devices will communicate with the pc server with http, and I need to have encryption on the network protocol. Is SSL a good choice for such mobile network protocol ? Or are there any suitable security protocol for mobile application ?
Thanks
|
|
|
|
|
I have the following code in a C#.net program I need to maintain:-
_PMdb = new PMDataAccess(ConnectionString.PM);
ClearFields();
/*
* spGetActivePromotions
* @Today datetime 8
*/
DataParameter[] p = new DataParameter[1];
string sdate = Settings.String(ConfigString.SimulationDate);
if (sdate!="")
p[0] = new DataParameter("@Today", DateTime.Parse(sdate));
else
p[0] = new DataParameter("@Today", DateTime.Now);
DataSet ds = _PMdb.GetDataSet("spGetActivePromotions", p);
all of which works fine but now I need to access the 9th column, called ManualTicketIssue, in this data.
My thought was that
_ManualTicketIssue =
System.Convert.ToInt32(ds.Tables[0].Rows[0]["ManualTicketIssue"]);
would do it but unfortunately not.
BTW Tables[0] is the correct table and as there is only one row Rows[0] should also, in my mind, be correct. _ManualTicketIssue is defined as an int and the column in the database is also defined as an int.
Please make suggestions on how I should proceed.
Regards,
Alf
|
|
|
|
|
Alf Stockton wrote:
My thought was that
_ManualTicketIssue =
System.Convert.ToInt32(ds.Tables[0].Rows[0]["ManualTicketIssue"]);
would do it but unfortunately not.
So what's the problem?? an exception? which one? what error message?
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
How do I programmatically scroll the datagrid to a particular row?
For example.
dataGrid1.Select(200);
On the datagrid, selected row is 200 but the scroll bar is not in the same location.
Thanks.
|
|
|
|
|
datagrid1.Select(50);<br />
datagrid1.CurrentRowIndex=50;
Here i used 50 to denote the grid row number or index.
Insted of that 50 , use your variable or value to fix the location of the datarow in your datagrid.
Sreejith Nair
[ My Articles ]
|
|
|
|
|
I've a picturebox i want to drag, but if i do it i would make the effect of moved icon that is my picturebox became transparent since to i release (drop) it, how can i do?
Thanks.
|
|
|
|
|
Hi all,
Can I add a checkbox control in a Datagrid control in .NET compact framework for pocket pc ?
Thanks
|
|
|
|
|
Hello,
Now I develop a tool using Datagrid.
When I mouse down a cell, I'd like to select a line included it.
For example, There is a header of row on Datagrid. If we mouse down it,
the line is selected. I'd like to do it without a header of row.
If you have some ideas, please tell me.
regards,
yu-yu
|
|
|
|
|
I have developed a sink using microsoft sample code for exchange store events but nothing happens when i try to debug my C++ code for the com object. I attach my visual C++ debuger to the processes inetinfo.exe and then to store.exe but appearenlty the com object is not being created when i send a message to admistrator through outlook web access. I my running Exchange 2003.
Anything special needs to be done?
Thanks
In Advance
|
|
|
|
|
i have a couple of questions, i hope you can help me with this:
1.is it possible to convert a visual c++ application into a vb.net application?
2.is it possible to convert a visual c++ application into a c# application, then convert the c# application into a vb.net application?
or just to be able to use the c# or visual c++ application in vb. net?
thank you for your replies
|
|
|
|
|
jedskie_a wrote:
or just to be able to use the c# or visual c++ application in vb. net?
answer to 1 and 2 is no. C+ simply has too rich a library to convert to simpler langauges like VB.NET, or even C#.
The answer at the end is yes. VB has always stood on the shoulders of C++. You can call any C# dll from VB.NET, and any C++ COM dll from C# and VB.NET. You can also compiled managed C++ ( pretend C++ ), which you can call directly.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
ah... ok.. thanks.. but will it run just the same as just it was in visual c++ when it is already in a vb.net environment?
|
|
|
|
|
Of course. Why would where it was called from change the code ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
How to delete or Remove Item with image from ListView in C#?
I am creating a ListView and setting a LargeImageItem. I am adding each item of string and index of the image. I also adding image to LargeImageList. Here is the code snippet in C#.NET
ListView lstView = null;
String fileName;
int index = 0;
private void addImage(filename, index){
lstView.Items.Add(fileName, index);
lstView.LargeImageList.Images.Add(Image.FromFile(fileName));
...
}
Now I want to remove item from the ListView. Here is sample code.
private void removeImage(index){
lstView.LargeImageList.Images[index].Dispose(); -----line 1
lstView.LargeImageList.Images.RemoveAt(index); -----line 2
lstView.Items[index].Remove(); --line 3
//lstView.Items.RemoveAt(index); --line 4
lstView.Invalidate();
...
}
If I use line 1,2,3 then if I try to delete 3rd image out of 5 image item in the list then it deletes 3rd image also deletes last image. If I use only line 3 or 4 then while deleting it works fine but if I add another image then it keeps the old image list pattern no matter which image I add.
Does anyone come across this problem? If anyone knows better idea, How to delete ListView item with image associated? And also able to add item after wards.
Hope it is interesting problem.
Thanks in advance
- Sudhakar
|
|
|
|