|
I would suspect from your example there that the problem is the quotes around 'no'. This implies that it is a string type. Replace this with false instead.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
hey this is not the problem, i still have the problem
plz i need that any help
bye
etretyertyery
|
|
|
|
|
tantoun wrote: set exist='no'
'no' is a string. This isn't going to work, as someone else said. It's almost certainly the case that you need to use a boolean to set it.
I googled, and found this[^] within seconds. We were right, you set it using the boolean type.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
Access doesn't like complicated terms like boolean. It actually calls the field type Yes/No.
|
|
|
|
|
Yeah, I guessed that was the case. I don't use Access, except to drive my CD database, and even then, it uses SQL Server on the back end.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
Is there any way around the limitation that the designer just doesn't work with forms whose base class is abstract?
Seems like quite an irritating limitation to me.
|
|
|
|
|
Unfortunately not, as the designer needs to be able to instantiate the class in order to display it on the design surface.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
originSH wrote: If you'd like this included at some point in the future please vote for it at:
Even although it is marked as "Closed (Won't Fix)" I've voted for it anyway - They may reopen it... perhaps.
Actually, that designation of "Won't fix" makes them sound like a petulant child. Ho-hum...
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
|
|
|
|
|
I just don't understand how other stuff like drag and drop support for data binding got prioritised over this.
Generics and abstraction are pretty core concepts and not a day goes by without me using them in classes for the most basic of stuff to the most advanced. Then I have to spend time working around this limitation when using WinForms :/ it sucks arse :P
Also why did they try to use backwards compatability as an excuse for not implimenting it? As I said in the comments I can understand lack of demand but which part would break backwards compatability.
|
|
|
|
|
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.
|
|
|
|