|
How can I convert the keyboard layout to arabic? I could covert the characters using the API 'LoadKeyboardLayout'. But the digits are not converting to arabic. I searched in the net for the API I understand the digits can convert with the function 'SetLocaleInfo'. This function receives 3 arguments but i don't know the value should be passed to this funtions. Please help to find the values of the arguments.
Thanks and Regards,
Mic
|
|
|
|
|
you must use System.Windows.Forms.InputLanguage Class to do this
here is an example to change the input language to Farsi
foreach (InputLanguage lang in InputLanguage.InstalledInputLanguages)
if (lang.LayoutName == "Farsi")
{
InputLanguage.CurrentInputLanguage = lang;
break;
}
|
|
|
|
|
Thanks for your reply. It will change the characters but it is not changing the digits.
Thanks and Regards,
Mic
|
|
|
|
|
|
use the following statement to change the input language.
InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(CultureInfo.CurrentCulture);
Regards
Elayaraja.S
|
|
|
|
|
Hi All,
Now, I wrote an application with C#, and I add it to run at the Startup list of OS.
I found that the application need 60 sec to start.
However, when I run it 10 min after the start of the OS, it only costs 8 sec.
Could you give me the reason why and what cause the difference of the performance?
Thanks very much,
|
|
|
|
|
I think that is because when you start the OS, it needs time to start all process... And, if you sum the start of your app is more time. And if you think in the first time that your app is started expenses more time... IT's too much time to sum!!
To start your app faster the first time you can use ngen.exe. It precompiles and makes your application run the first time as fast as the other next.
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|
|
Hi,
Don't have any syncronize call in the startup function like database/web service call.
Use asyncronize(delegate) call to do the startup functionality.
Regards
Elayaraja.S
|
|
|
|
|
I trashed the C# forum (in Firefox) last time I posted a RegEx question - so apologies before hand if the screen all goes pear shaped..
This is C# in the loosest sense of the word in that I am using the RexEx class...
My File :-
=======================================================================
D:\\APPS\\23JUL07_1700__PID1520.LOG
--------log end-------------
2007-Jul-25 09:47:10:038 Boring text...
2007-Jul-25 09:47:10:194 Really boring text
=======================================================================
D:\\APPS\\23JUL07_1702__PID2304.LOG
--------log end-------------
2007-Jul-25 09:47:01:475 Some secret stuff 471773.1
2007-Jul-25 09:47:02:085 more secret stuff
=======================================================================
D:\\APPS\\24JUL07_1430__PID8908.LOG
--------log end-------------
2007-Jul-25 09:47:09:850 Important stuff...
2007-Jul-25 09:47:10:007 Critical stuff
Is there anyway to extract the PID and the timestamp in each block in a single regex? The pattern I am using, which gives me the PID is ...
(PID(?<MYPID>\d{1,9})\.LOG)</code> I can then iterate through a MatchCollection obect returned from RegEx.Matches and process all the PIDS using the MYPID group. But I need the date as well. There will always be three lines following the line with the PID...
I can get the date with
(?<date>^\d{4}-[A-Z]{3}-\d{2}.(\d{2}: ){3}\d{3}) but can't join the two so I get the PID and date for each block.
The space after the colon in the date regex shouldn't be there - it prevents a smiley from showing.
Any help much appreciated.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.
|
|
|
|
|
<code>(PID(?<nums>\d{1,9})\.LOG)((.*?)\r\n){3}(?<date>^\d{4}-[A-Z]{3}-\d{2}.(\d{2}: ){3}\d{3})
again, remove the space after the colon. (if anybody except me is really bothered!)
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.
|
|
|
|
|
I have some weird problems connecting to SQL Server 2005 and I hope you can help me:
I have written a c# app on an acer n300. My app is connected to a SQL SERVER 2005 database. This app works fine. So I decided to install the app on a second pda . Both pdas have wireless lan and windows ce 5.0. But my app does not run on the new pda.
// ConnectionString = "Data Source=192.169.71.10,1433;Initial Catalog=PocketPcDatabase;User ID=sa;Password=server;";
// 192.168.71.10 - your IP address
I have installed Compact Framework 2 SP2, but as soon as I try to connect to the database a get the error SQL Server does not exist or access denied. I am absolute sure that my connect string is OK, as it works on the acer pda. The configuration of SQL Server should also be ok, as I can connect from the acer devices.
Network connection is also OK, as I
can connect with remote Terminal Services to the machine hosting the database without any problems.
Can you give me a hint whats wrong? Are there any cab files that I must install on the pda before SQL Server 2005 Client is working? I only installed .net Compact Framework.
Nasanbat Ts. ( Jason )
|
|
|
|
|
Your message subject should better reflect a summary of the problem. Adjectives like 'Urgent', 'Help Me' (with or without emphatic exclamation marks never gets paid for whatsoever)
|
|
|
|
|
Hi,
Check your sql server configuration.
TCP/IP is enabled ?
Microsoft SQL Server 2005->Configuration Tools->SQL Server Configuration Manager
Sql server 2005 network configuration - protocols for <server>
Regards
Elayaraja.S
|
|
|
|
|
Hi there .
Check your sql server surface area configuration . and check 'Enable remote DAC' this will help you.
if you can't connect again to your server on the server side check sql server user permissions .
DMASTER
|
|
|
|
|
Hi Guys and Gals. I urgently need information on how to use the Vertical Scroll bar in Windows forms. If any of you would be able to point me to a project that might contain the code I need it will be greatly appreciated.
Kind Regards,
Elizma
|
|
|
|
|
Sorry, I have no project to point you to, but the documentation can be found here[^]. Adjust the properties Minimum and Maximum to determine the interval of the scroll bar. Respond to the ValueChanged event and read the Value property to reflect changes when the user scrolls (or optionally use data binding).
|
|
|
|
|
Dear Elizma,
U can do one thing.
Please take the contents in one DIV Tag and via that u can apply the VertivalScroll Bar.
Thanks and Regards,
Nitin Khubani
|
|
|
|
|
hi
i run a query in sql server 2005 , that show me follow error message ! how can solve this problem?
Msg 468, Level 16, State 9, Line 1
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Arabic_CI_AS" in the equal to operation.
tanks
|
|
|
|
|
It means you're trying to compare two strings that are in different formats. COLLATE[^] is, from memory, the thing you need to play with. Although I don't see how you can compate Latin and Arabic fonts.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
hello "Christian Graus"
i can solve my problem with your reference ...
tanks so much
|
|
|
|
|
Please read the forum guidelines and title your messages appropriately.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
Hi all,
I did a chat application. But I stuck in the finishing point.
I used a windows service as server. This windows service will create and maintain a remoteable object. The clients are connected to this remoteable object using tcp channel. In addition, I implemented an application for the interface of server. This windows application will run on the server machine. Users are added throw this windows application. In addition, the available users and their status will display in this application.
The windows service with startup type automatic will always run on the machine. Whenever the windows application for the server interface started, It will call a function on the remotable object to attach this application to windows service.
remotableObject.AttachServer(this);
'this' will stored in the 'remotableObject'. So whenever the clients become online or offline, they will send a notification to windows service. If the server interface application is running the windows service will try to list the status of users in a list box. To do this, windows service will pass a serialized class of 'users' to server interface application. Everything is ok till here. I could deserialize the 'users' object. Now only one job is remaining is that list the users in a 'listbox' control. But when i call the functions of listbox, the program stop responding. No errors are displayed. Can you guess what is the problem?
Thanks and Regards,
Mic
|
|
|
|
|
Hi Mic,
As per my concern, You are going to update the UI (Form item). I would to say, If you want to update the UI then please do it with the help of delegates. I thought yor are update the UI in any event so it going to stuck.
Please go through how to update the UI via deligates.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Oh yes the scenario I explained above, it happened when the server interface tried to add a user to remoteable object. Its work in an event of server interface windows application. I tried another example, which is not call from any event. It is working. Therefore, as per you said I will use delegates. But how can you understand that it is the problem of events? Actually I didn't understand what is the real problem that's why I ask. Thanks for your precious advice.
Thanks and Regards,
Mic
|
|
|
|
|
Because i have resoved the same problem. I have experience in Instant Messaging architech.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|