|
As a scenario such as working with PowerPoint, Visio or even VB Studio as well as many other situations.
When in design mode you may have your toolbox or an outline preview showing on the left, some sort of properties listing on the right and your toolbar is almost certainly at the top. There are even toolbars available at the bottom.
I want to open for example PPt inside the center of my form and the workspace will take up the entire screen, while the entire toolbar on the top, outline pane on the left, slide selection pane on the right and anything I have on the bottom will all be off screen, but available quickly.
Throught the use of the four arrow keys and what I am sure will be plenty of code I would like to arrow left to show the outline pane and my work space or arrow up to get to a toolbar and so on.
Ultimately I would like my full screen to show my full work space with nothing else in the visible screen, not even the Title bar on top.
If I set the form1 size much bigger than 820,620 it defaults back to the builtin maximum allowable size. This machine is currently 800 by 600.
Thanks in advance for any assistance or ideas.
|
|
|
|
|
Hi.
I have a TextBox control with a child ProgressBar control, when ever i enter text into the TextBox, I want the ProgressBar to follow "the flow".
But I can't figure out how to do this in a simple manner. Do you guys have some ideas?
|
|
|
|
|
Try this:
private void textBox1_TextChanged(object sender, EventArgs e)
{
progressBar1.Maximum = textBox1.MaxLength;
progressBar1.Value = textBox1.Text.Length;
}
You can also set the MaxLength of the TextBox to make the ProgressBar fill slower/faster.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
I'm sorry, I don't think I explained my problem very well.
I want the progressbar's location to go up with the rest of the text.
Think of MSN messenger filetransfers in the chat window, when ever there is a transfer request, a progressbar is added to the textbox and you can continue to write messages. (and the text + progressbar, will scroll up when new text is added to the conversation).
I hope this is a better explanation.
|
|
|
|
|
I don't use MSN Messenger, so it is kind of hard for me to understand your question. If you could post a screen shot of MSN Messenger in action, I should be able to help you.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
I've made a screenshot since it's exactly what I want.
Here is the messenger conversation window with a filetransfer request:
http://ianqvist.dk/stuff/Filetransfer.png
And when text is entered in the chat, the progressbar (the whole filetransfer request) goes up, because the text is appended to the chat.
http://ianqvist.dk/stuff/FileTransferWithText.png
I'm in the progress of making the same thing, I now have a filetransfer request usercontrol and the textbox window (chat window) but i can't make the usercontrol go up when text is appended to the chat.
|
|
|
|
|
Ok, sorry I was way off. So what you want to do is have a ProgressBar (File Transfer Request Control) inside a TextBox. Am I right?
So what are you using for your File Transfer Control? Just a modified ProgressBar? If so, what changes have you made to it?
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
I really appreciate your help
I've made a usercontrol that contains a picturebox (for preview of file), progressbar (for transfer progress) and some labellinks (accept file, cancel file and so on).
I've experimented a little by using a FlowLayoutPanel. Every time i write a message, it will create a textbox and append it to the FlowLayoutPanel. This works well in the terms of positioning the filetransfer usercontrol and text, but then other problems start to arise, such as word wrapping problems, mouse selecting (i cant select text from 2 textboxes at the same time), so I don't think this is the right way to do it.
So I need a way of positioning the filetransfer usercontrol in a textbox and make it part of the textflow. (like the messenger screenshots I posted)
|
|
|
|
|
Well I've done some searching and I can't find an alternative way of positioning the File Transfer control over the TextBox. I think a FlowLayoutPanel would be your best/only shot. If you want, you could send me a copy of your control and I could see if I could tweak it a bit, but that's up to you.
Sorry I couldn't help more. Let me know if you need anymore help.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
I'm trying to use the FolderNameEditor in a property grid. Like this:
[Editor(typeof(System.Windows.Forms.Design.FolderNameEditor), typeof(System.Drawing.Design.UITypeEditor))]
But it seems that FolderNameEditor is not in that namespace. Although all the documentation that I've seen says that it is. I'm using VS2005 and the 2.0 framework.
Can someone tell me where this editor is?
|
|
|
|
|
Hi,
you must add a reference to the system.design.dll file in your project.
|
|
|
|
|
how can i get the numbers of days of a month dynamically by giving the month number and the year(not required)
thanks
etretyertyery
|
|
|
|
|
use the static DateTime Member functions
int daysinMonth = DateTime.DaysInMonth(2007, 1)
|
|
|
|
|
Hey
I created one windows service and created the set and deployment project for that
I installed this service successfully at the client machine
now I want to see each step of the installation process on the client machine
Is byy default windows installer creating the install.log file or we have to create it?
if it is by default whats the location of the file?
or if we have to create how can it be?
please guide me...
Thanks in advance
|
|
|
|
|
If installutil is used it is located where the exe for the window service is located.
Ben
|
|
|
|
|
Hello,
I haven't tried to install a windows service with a setup project yet. I always install them manually since there can be issues. Perhaps you should try to use the installutil manaully and see if the log files show up. I guess another option for the install logs would be where the setup.exe was run. The log files should have an extension of *.INstalllog or *.InstallState So you could do a search for those extension. The * is replaced with your exe name for your windows service.
Hope that helps.
Ben
|
|
|
|
|
I use get_selection to get the source code selected by mouse,and then I try to match it in whole html text source code,and now I hope to let the matched html block to be translated into corresponding IHTMLELEMENT,how can I do next step?
For example,there is the following code:
help
I selected "" and want to use red line to surround the table,who can give me some advices?thks.
|
|
|
|
|
hi,
please post you question in the right forum. that way you will get you answers quickly and with more accuracy.
regards
|
|
|
|
|
|
Dear All,
I am making a Windows Control Library(user control) using VS.NET & C#.NET. Now, i am
facing 3 problems:
1.In this control, i wants to remove some of the properties which are available by
default to the controls. These properties must be removed from the 'Properties window'
of the usercontrol. Also the user must not be able to set these properties using code.
I am able to remove the properties from the 'Properties window' by inheriting a class
from the System.Windows.Forms.Design.ScrollableControlDesigner & removing the properties
by overriding the PreFilterProperties function as show below:
protected override void PreFilterProperties(System.Collections.IDictionary
properties)
{
properties.Remove("BackColor");
}
But, doing so, this property is available to be set from the code. How can i remove this
property fully?
2.I wants to create a property for the control which has sub properties, like the
'Location' property of a button, which has sub properties as 'X, Y & Locked'.
My new property for the control must have some subproperties like this. How can i
achieve this?
3.I wants to add a property to the user control which allows the user to select a color.
When the user selects this property, it must display the same options which are
displayed for selecting the color for the satndard properties like 'BackColor'. Then the
user must be able to select the required color from these options & the value must be
stored in that specific property.
Kindly help me to acheieve the above scenarios
Best Regards,
Abhilash Chandran
|
|
|
|
|
hi,
well it seems that you have partly solved question 1.
you could also use the attribute: [Browsable(false)] on the properties that you don't wan't to show.
i don't know how to remove the property completely, but you could override the existing property and disable the set part.
question 2 : don't know
question3: you can add new properties that you want with the right data type
if you wanted to set the 'BackColor' property you could do:
[Browsable(true)]
public override Color BackColor
{
get{return this.bkColor;/*or base.BackColor; or any color*/}
set{this.bkColor=value;/*or base.BackColor=value; or what ever ...*/}
}
hope this helps
regards
|
|
|
|
|
Hi.
thank you for the information.
i will try that..
But the 3rd requirement is slightly different than wht u have mentioned.
I will make it more clear.
For eg: i am making a user control.
I adds a property called MyColor to it, which accepts a color as the value.
Now, when i uses this control in allications, the properties window for the control displays the MyColor property
When the user clicks to select the value for the myColor prperty, the color pallate must be prompted to the user from where he can select the color, like the color pallates displayed to select the color for BackColor property.
is there any method to achieve it.
Kindly help me
Best Regards,
Abhilash Chandran
|
|
|
|
|
hi,
so, it seems that you want to create your own property. it isn't that hard.
try this:
private Color _myColor;<br />
<br />
[Browsable(true),Description("This property will set myColor")]<br />
public Color MyColor<br />
{<br />
get{return _myColor;}<br />
set<br />
{<br />
_myColor=value;<br />
this.Invalidate();<br />
}<br />
}
if you do this, you will have access to _myColor and when used in VS, the property tab will display the color that the user can select from.
hope this helps
regards
|
|
|
|
|
|
Dear All,
I am making a Windows Control Library(user control) using VS.NET & C#.NET. Now, i am
facing 3 problems:
1.In this control, i wants to remove some of the properties which are available by
default to the controls. These properties must be removed from the 'Properties window'
of the usercontrol. Also the user must not be able to set these properties using code.
I am able to remove the properties from the 'Properties window' by inheriting a class
from the System.Windows.Forms.Design.ScrollableControlDesigner & removing the properties
by overriding the PreFilterProperties function as show below:
protected override void PreFilterProperties(System.Collections.IDictionary
properties)
{
properties.Remove("BackColor");
}
But, doing so, this property is available to be set from the code. How can i remove this
property fully?
2.I wants to create a property for the control which has sub properties, like the
'Location' property of a button, which has sub properties as 'X, Y & Locked'.
My new property for the control must have some subproperties like this. How can i
achieve this?
3.I wants to add a property to the user control which allows the user to select a color.
When the user selects this property, it must display the same options which are
displayed for selecting the color for the satndard properties like 'BackColor'. Then the
user must be able to select the required color from these options & the value must be
stored in that specific property.
Kindly help me to acheieve the above scenarios
Best Regards,
Abhilash Chandran
|
|
|
|