|
I got the idea about multicoulumn combobox but i am having difficulty in implementing it to a datagridviewcombobox. Can anyone help me.
|
|
|
|
|
Like we have FlowLayoutPanel, where controls can automatically get laid out according to their sizes and sequence, I have a requirement of a fluid layout.
In a rectangle or area (say 500w X 100h), there are some fixed small controls. lets say a rectangle control of (100w X 30h) is fixed at point (0 top , 150 left) Now, I need to fill this bigger rectangle with small shaped controls with constant areas but variable widths. Height can be maximum wherever possible.
The controls not adjacent to fixed control will be rectangles So, no problems. The controls adjacent to fixed controls will need to take polygon shape of variable heights to fit in the balance space.
Any logic already existing? Any approaches?
And yes, this is for winforms.
|
|
|
|
|
You ave posted this question in at least FOUR forums, where I suggested you post ONLY in the algorithms forum. Please do not mult-post your question; use one forum and stick to it.
|
|
|
|
|
This question is different from fluid column heights. Its a different approach.
|
|
|
|
|
But I take your point. I may have made a mistake.
|
|
|
|
|
But you also posted this question once already.
|
|
|
|
|
As I said, I may have made a mistake. It was a question with requirement of Algorithm, Windows Form, Layout Managers. and Graphics. I am still learning to learn from CP hence the problem. I will take care in future.
|
|
|
|
|
That is why there is a guideline document like this[^] at the top of each forum, to guide you how to post a question.
[edit]I see from your home page that you have been a CP member for 1 year 9 months; I think you should know the protocols by now![/edit]
|
|
|
|
|
I said I am sorry. Now, can i get some answers?
|
|
|
|
|
On your suggestions, I read the document too.
Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Now, where does it say? you cannot post at different forums?
My question can have different audiences. I am trying to reach the right kind of people and this can come from various kind of people.
In any case, I am not being rude or anything. I am sorry as i said earlier too. However, I could do with a little less of leg pulling.
|
|
|
|
|
Well I would assume that "Choose the correct forum" means just one. And, as I said you have been a member here for long enough to know the generally accepted protocols.
Som Shekhar wrote: I could do with a little less of leg pulling.
This isn't leg pulling, it's explanation.
|
|
|
|
|
So this keeps happening. I have the standard toolstripcontainer, utilizing multiple toolstrips (toolbars).
Whenever I re-open the form designer, the toolstrips re-arrange themselves and increase the height of the underlying dock panel.
Anyone know how to keep them from rearranging themselves?
|
|
|
|
|
Hi, wanted to find out if anyone has some details of doing getting a vista look in a form but running under xp in vb or c#. I had bookmarked a link sometime back and lost if after I had to reformat my harddisk. The link was, however, not a codeproject link.
Note sure if this is the right place to post...
Thanks..
|
|
|
|
|
Very bad UI design practice, requires much hooking and will never be perfect. I advise you to just use the XP look.
|
|
|
|
|
Why is it bad design... how about a custom control? I tried creating a custom control with 5 panel, 4 for the border and one in the center. I used Graphics copyfromscreen and drew the image of the screen behind the 4 border panels on the panels.. and it looks ok.. any suggestions..?
|
|
|
|
|
Nothing breaks Microsoft's UI guidelines more then things like this. I advise you to read them before making a UI.
User Experience Guidelines[^]
|
|
|
|
|
Thanks... I'll look into it....
|
|
|
|
|
Hi Guys,
My name is Arijit and I am developing a windows application using C# and Postgre Sql.
I need to run a few sql scripts while the application is installed in the user's system. Can anybody tell how can i can do this or at least tell me where I can get help regarding this?
Thanks a lot
|
|
|
|
|
There's a good CodeProject[^] article on the subject. Halfway down the page is an example
I are Troll
|
|
|
|
|
But that does not answer my question? All the basic concepts are there but my issue is something else.
|
|
|
|
|
arj_agt wrote: All the basic concepts are there but my issue is something else.
And you believe that somehow we can guess exactly what it is?
|
|
|
|
|
arj_agt wrote: But that does not answer my question?
My apologies. I assumed that you wanted some code-snippets on executing SQL scripts against a Postgre database. So I misinterpreted your question, let's simply attempt it again.
arj_agt wrote: All the basic concepts are there but my issue is something else.
Are you having problems with a specific piece of code (in which case we'd like to see the plaintiff), a specific task (how do you connect, execute etc) or a specific platform (ie, installation problems of Postgre on Suse?) Do you have the correct connectionstrings[^]? Have you downloaded the Postgre dataprovider for .NET[^]?
arj_agt wrote: My name is Arijit and I am developing a windows application using C# and Postgre Sql.
I need to run a few sql scripts while the application is installed in the user's system. Can anybody tell how can i can do this or at least tell me where I can get help regarding this?
You can do it by issuing an command over an IDbConnection. You can get help here off course, and alternatively, you can search MSDN or the documentation of the Framework Libraries[^], and there's the Postgre documentation[^].
I are now Troll on a Gnome
|
|
|
|
|
First: Its a program for university that schould show Multithreading with Windows Forms.
We use: Microsoft Visual Studio 2008
C++
Windows Forms
It should be a litte example how to create a thread and to change textbox text or something
Here my thoughts
using namespace System::Threading //including the namespace fpr threading
public: delegate void UpdateDelegate(); //writing a delegate
//Button to start the thread
private: System::Void cmdStart_Click(System::Object^ sender, System::EventArgs^ e)
{
Thread^ meinThread = gcnew Thread(gcnew ThreadStart(test));
}
public: void test()
{
Invoke(gcnew UpdateDelegate(update));
}
public: void update()
{
txtThread->Text = "thread gestartet";
}
Visual Studio shows me 2 messages
"A delegator expects 2 arguments"
what am i doing wrong?
can u give me a basic checklist how to start a thread thats changes a textbox or something like that?
Please need help .)
|
|
|
|
|
here is a simple recipe:
1. tell your IDE to always show line numbers; see here for Visual Studio[^];
2. look at the file name, method name, and line number when the compiler or the run-time system generates an error or exception (in general, however not here, as you are having a compile=time problem: for run-time problems, this implies you look at Exception.ToString() and not Exception.Message)
3. that most often points you straight to the line at fault.
4. now take the error message literally, and try to apply that to the problematic line.
|
|
|
|
|
Please feel free to correct any terminoligy mistakes.
From the main form 'frmMain' a child form 'frmChild' is instantiated and displayed. When 'frmChild' has focus and user is interacting, I need to cause a change on the parent form 'frmMain'.
How do I get to cbOptionA (a checkbox) in frmMain?
frmMain.cbOptionA.Checked = true; obviously wont work as that is the name of the class.
Anyone care to school me?
Thanks.
|
|
|
|