|
It's possible but requires some more work.
You could for instance create a form with a tablelayoutpanel with two columns and 1 row.
In the left cell you add a treeview and you leave the righthand cell empty.
Then go to your solution and rightclick to 'Add->New Item', and select 'Custom Control'. Add one control for each of the "pages" you want to view for each of the nodes in the treeview.
Then add content to the various custom controls according to what you want on your "pages".
Create an instance of each of the custom controls in your forms constructor, and when you start adding the treeview nodes, you can add one of the custom control instances to each node.Tag property and a name for the "page" to the Text property of the node.
Finally in the treeviews node clicked event, you retrieve the node.Tag property, cast it to a usercontrol and add it to the tablelayoutpanel in the righthand cell.
-Larantz-
|
|
|
|
|
A bit too complicated for me, I am pretty novice in C#. My previous experiences were C, Delphi and LPC...
Do you know if there is a ready component that can do it?
|
|
|
|
|
hi
how can i change the currentrow in a datagridview.
some of rows in my datagrid is readonly and i want to jump to the next(or per) row to alow user to enter data.
the currentrow is readonly .
i used the currentcell but .....
please F1 me
thanX
|
|
|
|
|
I am working on ASP.NET. I would like to know how to highlight the row of records with colour in grid upon the page is loaded. My grid binds to a data source that run a stored procedure. The result of the stored procedure shows the current and previous records. Therefore, my user would like to know which row has been updated to the current value. Using the colour would identified the differences in the grid.
Please help.
Looking forward from your response.
Thank you.
Tyng
|
|
|
|
|
I have added some of the messages to my message queue yesterday but now i tried to iterate it now but no messages are there in the message queue can anybody tell me why and give me a suggestion to maintain all the messages in the message queue even though i restart my system.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
What message queue are you talking about? Why would you expect any messages to remain in the queue, and not being delivered?
---
single minded; short sighted; long gone;
|
|
|
|
|
i am going to have two services one will be queeing and the other service will be started according to the interest of the user on that time the second service has to manipulate the messages in the queue. Even though the system restarts also i want the messages it should not be deleted. What about the transactional messages if i am creating it will it remain in the queue?
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Hello...
I use AddRemoveProgramsIcon Property in Setup Project. I create an icon 16x16 with 16color.
It works only in Win XP, but not in Win 2000.
Has anybody also the same problem ?
|
|
|
|
|
Hello Friends,
I had an login form and an mdi parent form.
On the load event of mdiparent form I had called the login form as showDialog
If user cancel the login form then the mdi parent form should also be closed. but i am not able to do so.
I had tried to close it by making object of the mdiparent form but no use.
Only login form is closed not the mdiparent form.
closing of form is on the click event of cancel button in login form.
Please help,
Regards,
rahul saini
|
|
|
|
|
Something like
DialogResult result = LoginForm.Dialog
If (result == DialogResult.Cancel) this.Close();(or Application.Exit();)
else ....
|
|
|
|
|
Have you done anyting according to this:
DialogResult result = loginForm.ShowDialog();
if(result == DialogResult.Ok)
{
}
else if(result == DialogResult.Cancel)
{
this.Close();
}
or else you might try in loginforms cancel button clicked event:
public void buttonCancel_OnClicked(object sender, EventArgs e)
{
(this.Parent as Form).Close();
this.Close();
}
-Larantz
|
|
|
|
|
hi Avadhesh,
So what do you want??
vtkiet05
|
|
|
|
|
Hi
I want the reason and solution to fix it.
Regards
Avadhesh
|
|
|
|
|
I think what he means is to please elaborate on your problem... It's not quite clear what you are asking.
-----
*** Never give me an answer having anything to do with Visual Studio. I don't have this because I have two computers, one being my dad's mac, which is connected to the internet, the other being my pc, which is, sadly, not connected to the internet. The setup for the Visual C# program I think is called a "bootstrap" program, and it needs to connect to the internet to install the program. THEREFORE I cannot install this program onto my pc.***
|
|
|
|
|
i want an asp.net starter kit to build a company web portal.a web portal that contains Links,discussion forum, admin module, employee information, newsletter, announcement, picture gallery,user blogs,articles, roles and permission.
|
|
|
|
|
Does google not work where you live ? Or are you not talking about the web dev starter kit from Microsoft ? I can't imagine what else you'd want, tho.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Dear Experts,
I have a file contains the content:
<a class="asubmenu" href="index.php?act=area_link&act2=article_detail&category_id=1&pro_id=3&category_sub_id=57&article_id=16823">
<a href="index.php?act=area_link&act2=article_detail&category_id=1&pro_id=3&category_sub_id=57&article_id=16823" class="asubmenu">
<a class="desclink" href="index.php?act=area_link&act2=article_detail&category_id=1&pro_id=3&category_sub_id=57&article_id=16823">
I want to get : href="index.php?act=area_link&act2=article_detail&category_id=1&pro_id=3&category_sub_id=57&article_id=16823"
How can i help me?
Thank in advance
vtkiet05
|
|
|
|
|
It depends. Do you want to JUST search for that string ? You don't need regex for that, obviously. What bits are open to differ ? When you say 'get', what bits, if any, do you want to group ?
www.expresso.com is an awesome tool for writing regex
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thank for your reply.
I scanned the site and i know that that site contained those hyper links
I have a exp:
string exp = "<a href\\s*=\\s*(?:\"(?<1>[^\"]*)\"|(?<1>\\S+))";
this exp works fine and result is "<a href="index.php?act=area_link&act2=article_detail&category_id=1&pro_id=3&category_sub_id=57&article_id=16823"
but i want only result is "index.php?act=area_link&act2=article_detail&category_id=1&pro_id=3&category_sub_id=57&article_id=16823"
can you help me fix the above exp??
Thank in advance
vtkiet05
|
|
|
|
|
Hi Christian,
I fixed:
Change the string exp = "<a href\\s*=\\s*(?:\"(?<1>[^\"]*)\"|(?<1>\\S+))" to
string exp = "<a href\\s*=(\\s*(?:\"(?<1>[^\"]*)\"|(?<1>\\S+)))";
and the result is "index.php?act=area_link&act2=article_detail&category_id=1&pro_id=3&category_sub_id=57&article_id=16823"
Source code:
string exp = "<a href\\s*=(\\s*(?:\"(?<1>[^\"]*)\"|(?<1>\\S+)))";
// Create an instance of StreamReader to read from a file.
// The using statement also closes the StreamReader.
string line = "";
using (StreamReader sr = new StreamReader("temp.txt"))
{
line = sr.ReadToEnd();
sr.Close();
}
Regex regx = new Regex(exp, RegexOptions.IgnoreCase | RegexOptions.Compiled);
Match m = regx.Match(line);
while (m.Success)
{
string t = m.Groups[1].Value;
m = m.NextMatch();
}
(-,-)
vtkiet05
|
|
|
|
|
Is there a way to change the appearance of a form? For example, when you view iTunes in Windows, the form is gray.
-----
*** Never give me an answer having anything to do with Visual Studio. I don't have this because I have two computers, one being my dad's mac, which is connected to the internet, the other being my pc, which is, sadly, not connected to the internet. The setup for the Visual C# program I think is called a "bootstrap" program, and it needs to connect to the internet to install the program. THEREFORE I cannot install this program onto my pc.***
|
|
|
|
|
you change the color by setting it in the designer. There are many other properties you can set there. I recommend buying a book on Winforms.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Signature... v v v
-----
*** Never give me an answer having anything to do with Visual Studio. I don't have this because I have two computers, one being my dad's mac, which is connected to the internet, the other being my pc, which is, sadly, not connected to the internet. The setup for the Visual C# program I think is called a "bootstrap" program, and it needs to connect to the internet to install the program. THEREFORE I cannot install this program onto my pc.***
|
|
|
|
|
OK - you and I have covered at length before the various ways you can get the VS2005 C# Express Edition, however - all the designer does is expose properties on the form, you can set those properties in code yourself, if you need to.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Ever thought about using another IDE, like SharpDevelop, for example?
I'm pretty sure, SharpDevelop can be installed without an active internet connection and does have designer support.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|