|
UTF-8 is an encoding of Unicode, so any Uncode character can be stored in UTF-8.
I don't know exactly what you want to find out, but perhaps the Char.IsSurrogate method is something that you are looking for.
---
b { font-weight: normal; }
|
|
|
|
|
Thank you.
I find the Char.isSurrogate() always return false, such as Char.isSurrogate('a'),Char.isSurrogate('10') all return false.
but it give me the right way, and I read the topic of Char class,
and find follow code can answer my question:
Char.GetUnicodeCategory(char1)==System.Globalization.UnicodeCategory.OtherLetter
when char1 is a Eastern character, it return true.
|
|
|
|
|
hi guys!
need some help!
i m developing a Enterprise deployment Application which will install software on network from a remote machine..
for this i m using WMI "Win32_Product" class for remote installation
the code is working fine on Win 2000,XP home, XP pro, XP sp1,sp2 .. but gives an Invalid class Exception on win 2003 ..
the problem is "WMI Windows Installer Provider" component which is installed by default on all the above OS except WIN 2003, on this OS it is Optional and had to be installed mannually on each of this kind of OS ..
the Problem is I want this Component also to be installed Remotly on PC's having 2k3 by my application only.. of course i have admin rights on all network PC's
Any ideas how to install this component Programmatically..
any guideline.. will be a great help..
also where can i find the Setup for this as it is a windows component..
abhinav
|
|
|
|
|
How can I have a PrintScreen Of current page in the clipboard
( for Example when some event occur the print screen of the page copy to clipboard)
WITH.THANKS
MHF
|
|
|
|
|
Hello,
I hope this article is helpfull to u.
regards,
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
Hi Dear Respected Programmers
I have designed a little project and I want to make a Setup of my designed project. Kindly let me know, How may I make a Setup of my C# Project?
Thank you very much in Advance
|
|
|
|
|
First build youre project in release mode then
Create A new "Setup project" in you're Soluation and set the propertys
Build you're setup project the output is the "yourename.MSI" And "Setup.exe"
you can have ini file ;
MHF
|
|
|
|
|
Hi
I want to get windows system directory? I have to save some files there and then access to them.
Please help me.
-- modified at 2:22 Monday 4th September, 2006
|
|
|
|
|
hi!
i think u r looking for this..
string WinDir = System.Environment.GetEnvironmentVariable("windir");
abhinav
|
|
|
|
|
Hello
string SystemPath = Environment.GetFolderPath(Environment.SpecialFolder.System);
Regards
|
|
|
|
|
It isn't recommended to save files in the system directory and running under Vista it isn't allowed unless you are running with specific elevated privileges (usually only given to installer apps.)
The correct way to find it is
Environment.GetFolderPath(Environment.SpecialFolder.System)
|
|
|
|
|
Hi all,
How would i go about trimming the first character in a string?
Example: I want to add "+27" to the Variable that contains "0721234567". But first i need to delete the "0" from the Variable. So then the Variable will contain "+27721234567".
Thank you in advance.
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
hi
dim str as string = "0721234567"
dim strNew as string = str.Substring(1)
str = "+27" & strNew
Tamimi - Code
|
|
|
|
|
Thank you for your time.
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Ok
<br />
string strNumber="0721234567";<br />
string strPreCode="+27";<br />
strNumber = strPreCode + strNumber.Substring(1,strNumber.Length-1);<br />
this code add PreCode(+27) to first of Number(0721234567), but first remove zero(0) from first position of Number.
|
|
|
|
|
Thank you for your time.
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
hi ,
string s = "0721234567";
if(s.StartsWith("0")) s= s.Replace("0","+27");
cheers.
|
|
|
|
|
Hi,
Can anybody help me to get Icon details like its name, target path, working directory whenever it is double-clicked to run the application. This is be using Windows API or in C#.
I have already used IShellLink Interface but its been hard-coded for icon name. Suppose the user changes desktop icon name then also coding should be able to change its working directory. This can be done if I can check the existence of the icon.
Regards.
Chilly
|
|
|
|
|
Hello
Sgg245 wrote: get Icon details like its name, target path, working directory
I think you are talking more about shortcuts?? You mean those on the desktop?
If you want to enumerate the links on the desktop:
Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "*.lnk");
Now, shortcuts are .ln; files and inside them you'd find the path to the program they excute. Read them using as FileStream, then use a Regex to find the text of the exe file, and/or anyother details you want.
Regards
|
|
|
|
|
I am new on c# ... switched from Delphi, and making windows application using C# + SQL Server 2005.
please let me know how to fix a dropdown list on DataGrid control and how to fix a record lock on sql server table row.
thanks for the favour
AH Khan
|
|
|
|
|
If you're using VS2005 (Any edition) you might want to setup the columns of the datagridview by hand. The control allows different kinds of columns to be setup (Checkbox,TextBox,ComboBox,Button,...) [^]
Locking a row in a datatable is not possible I'm afraid.
Instead you can use a Transaction on the database connection to lock rows and update them without allowing other clients to update the same rows. If I'm not mistaken, the DataTableAdapters to this automatically
WM
|
|
|
|
|
I check it out .... 1000 THANKS..
|
|
|
|
|
Hi
I am developing Windows Mobile Application, I need a timer to call the callback method , I have used the code below, it worked fine for Windows Application, but device application causing problem.
timer = new System.Threading.Timer(new TimerCallback(OnNextMinute), null,
Timeout.Infinite, Timeout.Infinite);
StartTimer();
}
const long TIMER_INTERVAL = 1000L;
private void StartTimer()
{
// set the timer to trigger an event every 30 seconds
timer.Change(0, TIMER_INTERVAL);
}
public void OnNextMinute(object state)
{
//calling method here
}
Please let me know any other way to use timer in Windows Mobile.
|
|
|
|
|
Hello
Sri harini wrote: it worked fine for Windows Application, but device application causing problem.
What are your problems exactly?
I even wonder how it worked on windows!! Why the Timeout.Infinite?? If you don't want to start the timer immediately, use -1 instead!! Also, why not setting the interval directly -again Timeout.Infinite!!- instead of assigning it to a constant at runtime??
Regards
|
|
|
|
|
Hi,
Im writting an Outlook 2003 plugin. I have some folders with WebViewOn = true, which makes them avaiable to load a web page with a embebed c# user control. All working so far, except for an anoying detail :
All the controls exibit a strange-windows2000-like look and feel. Even text labels are weird, with bigger font. But if i call the webpage from Internet Explorer, all controls look ok.
Does
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
have something to do with it?
Thanks in advance!!!
|
|
|
|