|
You didn't say what the problem is so few ways to start with:
- public/internal static or singleton class
- resource file etc
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
connection class through public like connection class for connection, dropdown populate, combobox populate, grid view populate,etc
|
|
|
|
|
Okay,
But if you simply create one static class, as I suggested, in your application and store the connection string etc. in that class, you can use it where you want.
If that doesn't help you forward, I think you should describe the problem you're facing in implementation.
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
i want the code in a example
|
|
|
|
|
In the simplest form, your class could be (if you're using SqlConnection):
public static class MyConnection {
public static SqlConnection Connection;
}
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
hi frends,
Now i am going to develope new window based .net C#application but it will be supprot in two languages English and arabic how to maintain the language in all the forms
If i am login English all the forms comes in english and if i am enter arabic all the forms will be in arabic.very urgent please give me good support
arun
|
|
|
|
|
arunmca.r wrote: very urgent please give me good support
Very unpolite way of asking help. People here help each other on their free time (if they want) so this isn't any support organisation. For good and quick support, you have to pay.
However, based on your profile you're new to CodeProject so first read the following article: http://www.codeproject.com/KB/scrapbook/ForumGuidelines.aspx[^]
arunmca.r wrote: it will be supprot in two languages
This should give you a starting point: Walkthrough: Localizing Windows Forms[^]
|
|
|
|
|
Hi All,
I am using VS05 + Windows Forms + CrystalReport .I want to display coloured alternating rows in a report.
For that i have use below procedure
Right Click Details Section -> Chose Colour tab -> Use formula ie. if RecordNumber mod 2 = 0 then red else blue
This will give me a result but the total detail section is get coloured.
I just want to give colour to detail section which contains field from database and not the whole detail
section.
How can i do this?
Thanks in advance.
|
|
|
|
|
AFAIK this cannot be done directly to details section. One way to achieve this is to add a formula field to the report (no text) and make that as wide as the report. Then send it to back and use your formula on that field. This should get an alternating back color.
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
Hi Thanks for the reply.
I have done all the thingas as per your solution.But unfortunatelly it cant work.
Can you please give me detailsed procedure.
Waiting for the reply.
|
|
|
|
|
I would like to know how to change localization in VS2008 setup project dynamically. Scenario is like if operating system's langauge is french and user clicks on setup.exe, all screens should come in french and same for English langauge.
I have created Setup project by keeping Localization property to English. It shows me all screens in English. Now If I changed Localization property to French, it shows me all screens in French. But I want it dynamically and it should consider machine langauge and display accordigly.
|
|
|
|
|
I am New in Windows application.
I am using .NET 2.0 with Vb.Net.
in my project i have to put some control on MDI from.
when i put some control on it and open Child form,
Child form goes behind to that control which i put on MDI Page.
Can any one help me,
how i will sole my problem.
|
|
|
|
|
|
Hi! Everyone I'm New to Programming.I'm working on Visual Studio 2005 Win Forms Applications.I Complete my Code and it Works But Now I Wanted to Improve My Code.I Want to set the Position of controls according to the change in Size of Form at Run Time.
Thanks for Your Advise.
|
|
|
|
|
Use Anchor and Dock properties of control class.
|
|
|
|
|
First of all THANKS for Your Advise SIR...............
But My Problem is that I don't want to Change Properties at Design Time.I want to set Anchor and Dock Properties of Control Class at Run-Time.
And Your Blog is Very Nice.I'm very Thankful for Your Answer.
|
|
|
|
|
You can set this properties at runtime too. All controls have properties called Anchor and Dock
|
|
|
|
|
Thanks for Your Advice Sir.
But I wanted to know the Code for that.
|
|
|
|
|
|
Thanks a lot Sir Now I'm GLAD By Your Advise.
Thank You Once Again for Helping Me.....
|
|
|
|
|
You are welcome
|
|
|
|
|
Sorry Sir I want to Rate Your Reply as BEST,I think BEST Rating is No 1 But Actually it is No. 5
Sorry..........
modified on Sunday, November 16, 2008 2:49 AM
|
|
|
|
|
If you want to rate it as best then you vote 5 for it, not it.
|
|
|
|
|
hi everyone
i want to add textbox and button in every cell of the column in the datagridview using .net framework 2.0
windows application
|
|
|
|
|
I believe you can use API and use the SetParent method to embed controls into datagrids. Their are a few articles on this site that should be able to help you, I don't believe their is an easier way unless you want to switch to the Windows Presentation Foundation.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|