|
For positioning controls you can change the location property for each to swap sides of the form on which they appear. For simplicity, I'd just make two different forms, one for each language, but I'm still a dummy at this. It can probably be done just as easily at run time. To make the text run right-to-left, you can change the Right To Left property of the label and textbox, according to the label on the box here. I can't test that, since I don't know any other languages, but the containing form has properties to select the language and to enable localization. When I try Right To Left = True, all it does is align my English text with the right edge of the label. But I suspect that if I set the Form property Language to Arabic, and Localization to True, the result would be exactly what you seek. Give it a try.
I'd try it for you, but 1) it took me all day to make this dialog box look right and I don't want to mess with it, and 2) I wouldn't know by looking at it whether Arabic was RTL or LTR.
Good luck!
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
Thanx a Lot Mr.Roger Wright
|
|
|
|
|
Hi,
i want to display a WinHelp (.hlp) file within windows forms. If anyone know please help me.
Advance Thanks
S.Selvaraj
|
|
|
|
|
WinHelp (.hlp) is deprecated with no future support planned in Windows, nor is there any support for it in the .NET Framework BCL. I highly suggest using .CHM instead (compiled HTML) instead. Google results for "vb.net help file[^]".
|
|
|
|
|
Thanks. but i didn't get any solution.
Please anybody help me to show a winhelp (.hlp) file within windows form in vb.net
|
|
|
|
|
|
WinHelp (.hlp) is deprecated with no future support planned in Windows
In other words, if you try to learn this deprecated technology it will be of no use to you in the future. Everything as of right now uses the .chm file format which is not deprecated.
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
|
|
|
|
|
Yes, you did. Your BEST option is to convert this to a CHM file instead of using WinHelp. Windows 7 is going to be out late next year, and you guessed it, there's no support for WinHelp. So why are you insisting on using it?
|
|
|
|
|
Hi all.
I'm new in Windows Forms.
Is there is some control to enter time data.
Like a NumericUpDown, but for time in format MM:SS.mmmm.
And where I can find such control (if it exists), what assembly?
Dot want to waste time implementing the new one.
Thanks.
|
|
|
|
|
There's a DateTimePicker[^] control. Set the format property to Time.
Or you can use a use a MaskedTextBox[^] control. There is a sample time format mask provided or you can define your own.
Simon
|
|
|
|
|
Well, thanks for reply. I can use them. But custm format doesnt support displaying milliseconds.
So, I have to use what Windows Forms have...
|
|
|
|
|
If you use the masked text box you should be able to define whatever format you want.
Try setting the mask to something like "00:00:00.0000"
You'll probably have to manually validate things like the seconds don't go above 59 etc.
Is that what you are looking for?
progDes wrote: So, I have to use what Windows Forms have...
You could write a custom control if you really wanted, but from the sounds of it, I think the masked text box will probably do the job.
You could write a custom control and inherit from the masked text box and just add the extra time validation logic. That would be quite a good way of doing things.
Simon
|
|
|
|
|
|
You know the Pending Checkin window in Visual Studio? You know how it has a tree view but each node is a checkbox? Is there a built-in WinForms control that does this? I need one that I can populate with nodes and children at run time and has functionality like if a child is checked, the parent is checked. Anybody got any ideas?
My mind is like an aluminum trap. Some things get caught in the trap, and some things bend the trap and get away.
|
|
|
|
|
Nevermind. I may have figured it out.
My mind is like an aluminum trap. Some things get caught in the trap, and some things bend the trap and get away.
|
|
|
|
|
i create a project in c# windows, but i can't declare connection globalyy in my project please help me
|
|
|
|
|
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[ ^]
|
|
|
|