|
I've run into that problem myself. There is simply no way around this.
|
|
|
|
|
There is a way around it, but it is ugly and could cause you more problems in the long run. In fact, I don't recommend it at all.
Caveat out the way, here it is:
#if DEBUG
public class MyForm : Form
#else
public abstract MyForm : Form
#endif
Ugly, ain't it!
Normally you would be using the designer when your application was being built for debug. When you switch to release mode you lose the ability to use the designer, but it will still built. The main problem arises when you've forgotten that the class will really be abstract in the release build and you try and instantiate it and the release build fails.
Oh, and I think in VS2005 the MyForm.designer.cs file will keep losing the preprocessor stuff when you change things on the design surface - Fine for debug builds, but it will also cause the release build to fail.
If fact, I really really wouldn't recommend this course of action.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
Dear God man, how could you??
That is a truely abismal hack.
I take that back: it doesn't even qualify as a kludge let alone a hack.
Makes me want to try conditional comp. on namespaces ..
I'm largely language agnostic
After a while they all bug me
|
|
|
|
|
MidwestLimey wrote: Dear God man, how could you??
Don't say I didn't warn you!
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
MidwestLimey wrote: Makes me want to try conditional comp. on namespaces ..
I don't recommend that either - bitter personal experience. You really don't want to try it!
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
Hi Friends..can u plz tell me how to Export data from UltrawinGrid to PDF
|
|
|
|
|
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
|
|
|
|
|