|
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.
|
|
|
|
|
You can do this by two ways:
1. If there is any event in the child form, due to which the check box in main form should get checked, use a delegate and handle it in the main form itself. Now within that event, you can check your checkbox.
2. Have a public static property for the checked property of your checkbox, say OptionAChecked in your main form. Now, from the child form you can access that property and set it to true. You can access the property from the child without worrying about the instance. ie if the name of your main form class is Mainform , you can use MainForm.OptionAChecked
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Using suggestion 2, once the property has been changed by child in MainForm, how do I get MainForm to act upon that change?
THank you
|
|
|
|
|
If you have handled the CheckChanged event for the checkbox, it will fire when you change the checked state of your checkbox. If not, then you can handle it to get some work done.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
I guess I'm not understanding how the property will update the checkox.
The child is updating the property in frmMain. How does the checkbox in frmMain know the property just changed?
Sorry if I'm missing something obvious.
|
|
|
|
|
Hi All
I am new to Windows Applicaton.I was forced to work with Entity Framework,WCF.
Please suggest me good tutorial.I am finding very less tutorials for Win Form ,when i compare to web.
Is there any Project templates available for Win Form Application,so that it will be helpful for my project
Ramkumar
("When you build bridges you can keep crossing them. ")
http://ramkumarishere.blogspot.com
|
|
|
|
|
Try searching the articles here on CodeProject, or Google, or MSDN. You will find hundreds of samples.
|
|
|
|