|
Hi,
Use Activate -method on target form.
Mika
|
|
|
|
|
You need to be a bit more verbose with your question. What have you tried so far code-wise?
"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
|
|
|
|
|
If it is on some button click or any other event, create an object of the form you need to open and use ShowDialog()
|
|
|
|
|
I would have gone by limozin
|
|
|
|
|
Hi,
I'm writing a programm to import a very special cad-format (that can't be opened with autocad etc.) to show specfic elements in a WinForms application.
The information in the cad-file have coordinates, that can be positiv and negativ.
I thought about drawing the element with System.Drawing.Graphics, but I would like to have functionality like zooming etc.
I'm looking for a control, that I can integrate in my Application that have buttons for zoom-in, zoom-out, move the content (a handling like in google earth would be great).
I've searched for something like that, but I didn't find anything.
Can anyone help me with this? I don't want to implement these features myself.
Greets
|
|
|
|
|
Member 2132190 wrote: I've searched for something like that, but I didn't find anything.
I searched for like 30 seconds to find this[^]
led mike
|
|
|
|
|
|
Member 2260473 wrote: 1 Map 1/ Map 2 Node 1
2 Map 5/Map 10 Node 5/ Node 6
3 Map2 Node 7
If that's some sort of a puzzle why do you expect people to try and figure it out?
If it's not a puzzle then it makes no sense so we have no idea what you are trying to do.
led mike
|
|
|
|
|
Hi,
I'm using C# 2.0 to create a popup control derived from the ToolStripDropDown class in order to be able to host any System.Windows.Forms.Control in a popup.
This is working quite well, except for some issues during design-time.
I have a control that opens a popup of the type described above. What I would like to happen in design time, is for the popup to show when the button is selected. I have managed to hook up the selection logic quite easily. Showing the popup correctly, and in a way that allows it to be edited (through its associated ParentControlDesigner-derived designer class) has been a rather nightmarish enterprise so far.
It appears as though the popup cannot be designed properly because its not part of the control hierarchy on the form being designed (it is instead exposed through a Popup property on the control that opens the popup). The popup IS sited.
How do I show the popup in the designer window in a way that will allow it to be edited?
Thanks in advance for any suggestions,
Sincerely,
Danny van Kasteel
If it's worth doing, it's worth doing well
|
|
|
|
|
I recently found an article on MSDN about PropertyGrid Control[^] and wanted to know if there was a SolutionExplorer Control as well?
Dave Henry
-----------------------------------------
evil mastermind or genius benefactor?
NEVER trust the bunny...
|
|
|
|
|
David Henry wrote: if there was a SolutionExplorer Control as well?
Yes. It's called TreeView.
led mike
|
|
|
|
|
led mike wrote: Yes. It's called TreeView.
Yes and if I'd asked about something like the PropertyGrid Control I'm sure you'd have said "Yes. It's called Gridview" but if you had actually looked at the link I gave the PropertyGrid uses reflection to build a control that works EXACTLY the same as the one in VS even if one of your properties is type Image , when the user clicks to edit, it shows an image selector dialog box.
So I'll ask you again and if you don't know just say so don't be a smart arse.
Dave Henry
-----------------------------------------
evil mastermind or genius benefactor?
NEVER trust the bunny...
|
|
|
|
|
David Henry wrote: Yes and if I'd asked about something like the PropertyGrid Control I'm sure you'd have said "Yes. It's called Gridview"
No. Unlike you, I attempt to actually know what I am talking about.
David Henry wrote: the PropertyGrid uses reflection to build a control that works EXACTLY the same as the one in VS even if one of your properties is type Image, when the user clicks to edit, it shows an image selector dialog box.
What does that have to do with SolutionExplorer?
David Henry wrote: So I'll ask you again and if you don't know just say so don't be a smart arse.
First, it's possible you are talking about VS2008 which I have not seen. But it's your thread and you did not specify. Second, if you put Spy++ on the VS2005 SolutionExplorer you would see it is a SysTreeView32 .
So either way maybe you should wait until you actual learn how to know things about programming before you start trying to insult other developers on the internet. In the meantime, you can kiss my f***in ass you moron pile of sh*t.
led mike
|
|
|
|
|
led mike wrote: No. Unlike you, I attempt to actually know what I am talking about.
You're right I feel so ashamed. No wait I don't. I was just pointing out that your comment was of no help and added nothing to the thread.
led mike wrote: First, it's possible you are talking about VS2008 which I have not seen. But it's your thread and you did not specify. Second, if you put Spy++ on the VS2005 SolutionExplorer you would see it is a SysTreeView32.
No again you have shown that you did not even look at my reference article, I was talking about a control in VS2005. But you're right I should have explained myself fully, as I'm not a C++ programmer I would not have thought to use Spy++ thank you for the tip.
led mike wrote: So either way maybe you should wait until you actual learn how to know things about programming before you start trying to insult other developers on the internet. In the meantime, you can kiss my f***in ass you moron pile of sh*t.
ok now I'm not English but I have a few points for your last tirade.
- You started the preceding paragraph with the word First indicating a number of points, these never appeared.
you should wait until you actual learn how to know things about programming
maybe try :-
you should wait until you actually know something about programming before you start trying to insult other developers
I really don't think calling you a smart arse is such a big deal but
moron pile of sh*t.
that is a little excessive.you can kiss my f***in ass
no it is you who can kiss mine.
And its little exchanges like this, why I don't ask questions here very often.
I'd like to apologize to everyone who has been reading this thread, it's my fault I fed the troll.
Dave Henry
-----------------------------------------
evil mastermind or genius benefactor?
NEVER trust the bunny...
modified on Monday, August 11, 2008 5:16 AM
|
|
|
|
|
David Henry wrote: I really don't think calling you a smart arse is such a big deal but
David Henry wrote: that is a little excessive.
What are you a Republican? You think you are the one that gets to decide what an insult is? You started this bullshit not me. You asked what the SoltionExplorer control was and I told you. All the rest of this bullshit is because of your mouth, and you are not even man enough to know and admit that. F*** off a**hole.
led mike
|
|
|
|
|
I am using Visual c++ NET 2005
In each forms I write down the path of Icon property.
When I load the program, the Icon appear on the left corner of Title bar but in left side of menu bar appears the default icon. I do no where to change this . I need that appears in menu bar a new icon instead of the default.
I need your help.
|
|
|
|
|
You need to set the Image property of the menuitem
|
|
|
|
|
i have to create dynamic numbers of timers in vb.net , how can i approch it...
|
|
|
|
|
By dynamic I assume: an unknown amount of timers need to be created during runtime. With that assumption, you will have to have a loop and collection that will store Timer objects. The following is C# pseudocode that may help with clarifying your thoughts:
Collection<timer> colTimersNeeded=new Collection<timer>
for(int i=0;i<amountneeded;>{
Timer t=new Timer();
t.Enabled=true;
...set other timer settings including duration, etc...
t.Tick+=delegate
{
...this is an anonymous method (I am not sure if their is such a thing in VB, if not you can still create a delegate here that will point to another method with proper parameters through EventHandlers). Add what needs to happen in this method....
}
}
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Hi
I have a System.Windows.Forms.TreeView, but I only want to show the checkboxes on som of my nodes!
The ShowCheckBox property exists on TreeNodes for System.Web.UI.WebControls.Treeview, but not on System.Windows.Forms.TreeView.
How do I obtain the same functionality for TreeNodes on System.Windows.Forms.TreeView?
Regards
Troels Timm
|
|
|
|
|
Sorry, did not understand your question correctly.
troelstimm wrote: but I only want to show the checkboxes on som of my nodes!
To show nodes differently you need to use OwnerDraw. I suggest you construct a custom TreeView and add the features you need. You can find many articles here on CodeProject that have used OwnerDraw on TreeView controls for examples. Also there is small example code in the TreeView documentation on MSDN that may help.
You will likely need to to extend TreeViewNode as well so that each node can maintain it's state.
led mike
|
|
|
|
|
Hi
Sorry my mistake, not a clear question
I ONLY want the checkbox on some of my nodes, not all of them.
The reason why I refer to the Web is that it seem to be possible to show/hide the checkbox on the TreeNode class. This is is not available on the Forms.TreeNode.
So how to control showing checkboxes on TreeNodes and not on all nodes (the entire treeview)
Troels
|
|
|
|
|
Dear sir,
We are developing one windows application. In that we have Remember me & Load on startup ( check box )functionalities are there. Both working fine as individual selection. Like if i check the Remember me check box, for the next time login the login form remembered my id & pwd. if i check Load on start up check box, and if restart the system my application is automatically starts up.
problem :
both check box functionalities are not working together. i mean if i check both the check boxes. Application is automatically start up when system starts but the login form does not contain my login id & pwd.
if i check Individually both functionalities working fine.
Please help me. what should i do. To make both work together.
|
|
|
|
|
You would need to post the code that is handling your processing.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
this is the code we are using for the processing.
// for Application LOAD when we start our machine.
public static bool AutoStart {
get
{
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run", true);
string startupValue = (string)key.GetValue("VideoRep");
key.Close();
if (startupValue == null) return false; else return true;
}
set
{
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run", true);
if (value)
{
key.SetValue("VideoRep", "\"" + Application.ExecutablePath + "\"");
key.Close();
}
else
{
key.DeleteValue("VideoRep");
key.Close();
}
}
}
// for Remember Me Checkbox functionality.
public static string[] RememberMe
{
get
{
string uname = "";
string pword = "";
if (File.Exists(CONFIG_FILE))
{
BinaryReader binReader = new BinaryReader(File.Open(CONFIG_FILE, FileMode.Open));
try
{
// If the file is not empty, read the application settings.
if (binReader.PeekChar() != -1)
{
uname = binReader.ReadString();
pword = binReader.ReadString();
}
}
catch (Exception) { }
finally { binReader.Close(); }
}
return new string[2] { uname, pword };
}
set
{
if (File.Exists(CONFIG_FILE))
File.Delete(CONFIG_FILE);
if (value != null)
{
try
{
using (BinaryWriter binWriter = new BinaryWriter(File.Open(CONFIG_FILE, FileMode.Create)))
{
binWriter.Write(User.Username);
binWriter.Write(User.Password);
}
}
catch (Exception)
{
}
}
}
}
//checkbox checked events code
private void cbRememberMe_MouseClick(object sender, MouseEventArgs e)
{
if (User.RememberMe[0] != "") User.RememberMe = null; else User.RememberMe = new string[2] { User.Username, User.Password };
}
private void cbLoadStartup_MouseClick(object sender, MouseEventArgs e)
{
if (User.AutoStart) User.AutoStart = false; else User.AutoStart = true;
}
this is process we are doing please give me reply, what should i do to make both functionalities work together.
|
|
|
|