|
Dear All,
I think i have simple problem using c#. I develop an application in where i need to browse for folder in windows.
I have a browse button and i like to load the "Browse For Folder" Dialog box where folders are only displayed with New Folder button.
I made such control using my own logic but its very slow like it takes 1-3 minutes to load all directory of hard drive.
your aid is really appreciated.
|
|
|
|
|
|
Then don't load the entire directory structure of the drive. You load only what you're showing the user. When the user "opens" one of the folders, you go get the contents of only that folder and populate that node with the new information.
|
|
|
|
|
Hi All,
Is there any free RSS Feed Reader that can be incorporated in .NET Windows based applications?
Either you love IT or leave IT...
|
|
|
|
|
|
It helps a bit. Thanks so much for your reply.
Either you love IT or leave IT...
|
|
|
|
|
HI:
i want to check the dymatic checkbox in TableLayoutPanel
each column only can choose one checkbox.
but, i don't know how to write the code.
help me....thank you^^
public partial class Form1 : Form
{
private MyTableLayoutPanelObj myTbObj = new MyTableLayoutPanelObj();
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
myTbObj.SetTableLayoutPanel();
this.splitContainer1.Panel2.Controls.Add(myTbObj.Satisfy_TableLayoutPanel);
}
}
public class MyTableLayoutPanelObj
{
public enum ControlType { Checked };
private TableLayoutPanel tableLayoutPanel = new TableLayoutPanel();
public int count = 0;
public TableLayoutPanel Satisfy_TableLayoutPanel
{
get { return this.tableLayoutPanel; }
}
public void SetTableLayoutPanel()
{
for (int subject_x = 0; subject_x < 6; subject_x++)
{
CheckBox control = new CheckBox();
control.CheckedChanged += new EventHandler(control_CheckedChanged);
control.Name = subject_x + count.ToString();
control.Text = control.Name.ToString();
control.Dock = DockStyle.Bottom;
this.tableLayoutPanel.Controls.Add(control, subject_x, count);
this.tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f / 5));
}
}
void control_CheckedChanged(object sender, EventArgs e)
{
:confused::confused:
}
}
|
|
|
|
|
Hi to all,
for start let me say I'm new to c# but I have some experience in VC++. This is one of my first app in c# and off course I bumped into a small problem.
I wont to display contextmenustrip when user press right mouse button, I'm having trouble with coordinates, they are funny out of form. Of course I've tried with clienttoscreen or screentoclient but nothing changes. Here is my code
private void treeView_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
if (e.Button != MouseButtons.Right) return;
TreeNode curNode = e.Node;
treeView.SelectedNode = curNode;
ContextMenuStrip menuStrip = this.cmsState;
Point cPt = new Point(e.X, e.Y);
PointToScreen(cPt);
menuStrip.Show(cPt);
}
menu appears OK but on wild coordinates, where am I wrong?
Thanks!
|
|
|
|
|
Point desiredPoint = treeView.PointToScreen(cPt);
menuStrip.Show(desiredPoint);
instead of your last 2 lines
SkyWalker
|
|
|
|
|
|
Hi..
This is very urgent..
I have three dll files which I want to make them one dll file.
Is that possible?
And if so, how?
Thanks in advance.
|
|
|
|
|
That depends on the type of .DLL files. If they are normal library or COM-based .DLL's, there's no way to do it. If they are .NET .DLL's, then you can use ILMerge[^] to combine them.
And noone cares if the question is urgent or not. Since you're not paying for any support and we're all volunteers here, the urgency of your question has no bearing on the speed of our answers.
|
|
|
|
|
blackangelss wrote: This is very urgent..
Please refrain from using phrases like this in your post. Makes people less likely to help.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
|
What's the best practice for C# Forms for the above? Thanks.
----------------------------------------------------------
"unzip; strip; touch; finger; mount; fsck; more; yes; unmount; sleep" - my daily unix command list
|
|
|
|
|
I had this problem and I don't know if I took the best approach but I used flowlayoutpanels a lot using percentages and always maximized my form.
probably not the best approach but it worked, you can get max size using System.Windows.Forms.SystemInformation.PrimaryMonitorSize property
|
|
|
|
|
In what way? Is this a dialog form or a window form? Will the computer in question have multiple monitors? If so, will they be different sizes (that's the way my setup is)?
You need to ask the question a different way.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Thanks for your time.
What I would like to happen is that say in my development machine which is 1680x1050 my form displays in a certain way. If the application is deployed in a machine of lower resolution I would like say all the controls in the form to adjust proportionally (i.e. height, width, spaces in between).
cheers,
swjam
----------------------------------------------------------
"unzip; strip; touch; finger; mount; fsck; more; yes; unmount; sleep" - my daily unix command list
|
|
|
|
|
If you want to scale *everything* by the same amount the brute force way is to get the screen resolution of the target computer and multiply the size/position parameters of everything by the ratio of your resolution to theirs.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
I would design the form to fit within a "lowest acceptable size", and then allow the form to be re-sized. Each control would have an appropriate anchor setting. This will be quite tricky to get just right, but it should be possible.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
You can use AutoScaleMode property
|
|
|
|
|
Before .NET I solved this problem "by hand". I arranged the controls to look ok at the lowest acceptable resolution. Then for higher resolutions I had extra space in the X and Y directions.
I allowed selected controls to "grow" by a percentage of this extra space. For example, my button controls ignored extra space, but a list box would use it to show more of its information to the user.
I also defined rows and columns of controls that would keep the same space between them even when one or more of those controls grew.
With docking and anchoring you can often come up with a simpler solution in .NET.
|
|
|
|
|
Hello friends,
I want to ask is it better to implement SIP protocol in C# instead of java means to say ,is it easier and reliable ?
Thanx in advance
messages sent here
|
|
|
|
|
That largely depends on the programmer, not the language. Easiest way would be a third-party component for the language of your choice
|
|
|
|
|
Both the languages are extremely vast and useful. You will find help on both of them and can do it in both the way you like.
Ahsan Ullah
Senior Software Engineer
|
|
|
|