|
Hello all,
i have install my applicatin on the client pc , he is using windows vista
there is some reports "Crystal built in FrameWrork 2.0" ,in some reports fields there is ? marks insted of the data.
these reports shows arabic language ,
But those feilds is defined in data bas as varchar(50)
should i redifen it as nvarchar(50) to hold arabic language?
note : i dont suffer from this problem m using windows xp!!!
Thx.
|
|
|
|
|
If you use varchar, the charset in the database has to match the charset of the system, and that charset has to support the characters that you want to use. By a fluke you seem to have gotten all that right on your system.
If you use nvarchar, the data is unicode, and supports any characters.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
SO sick of good answers being downvoted. I 5d you
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
|
Hi,
I have a .NET Project written in C# which is communicating with a server. I got it all bundled in a zip file (including a msi and setup.exe) file which installs fine.
The users can download this setup from a web server. Now what I need to do is to customize the setup to include user specific information. The setup should set values in the registry depending on the data the user entered in the website. Hence I need some way to automatically include the user data (e.g. as xml file?) in the setup.
Does anyone has an idea how to do this?
Thank you,
Torsten
|
|
|
|
|
Create one Visual Studio Deployment Projects and add your current solution to it. now you can add your own dialogus and code routines to customize the setup wizard.
this might help[^]
|
|
|
|
|
Hi all,
Is it possible to have a text's fontstyle property to Bold, Italic and underline at the same time.
If yes then how?????
Thanks in advance
Rana Krishnraj
|
|
|
|
|
The documentation says:
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
So yes it is possible.
|
|
|
|
|
the Coding Way:
create a new Font(new FontFamily("Tahoma"), 12.75f); (for Example)
and change what ever u want in it
then assgin it to text's font property
The Designer View Way :
or Go To the component in the Design View and click on the Font Property
then Cahnge What ever u Like
Have Fun
Never forget it
|
|
|
|
|
ya that's correct.
But if font have already Bold property set to true and now i want to set its italic property then resulted output text would have both Bold and italic property set to true, instead of only one that is either bold or italic.
any way thanks for replying...I got the hint. let me do it
Rana Krishnraj
|
|
|
|
|
FontStyle fs = FontStyle.Bold;
fs |= FontStyle.Italic;
|
|
|
|
|
In code you can combine them using bitwise operations:
FontStyle.Bold | FontStyle.Italic
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi!
Please, help me! I would like to create List<t>, for myType in runtime(for example, Int32):
Type myType = Type.GetType("System.Int32");<br />
List<myType> list = new List<myType>();<br />
- compiler is throwing errors:"The type or namespace name 'myType' could not be found (are you missing a using directive or an assembly reference?)"
How can I create such list for this type?
modified on Tuesday, July 8, 2008 9:42 AM
|
|
|
|
|
You can't. The generic type has to be known at compile time.
What is it that you are trying to accomplish?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Guffa wrote: You can't. The generic type has to be known at compile time.
Not quite. A generic type can still be created with reflection at runtime.
|
|
|
|
|
You can create a generic type with reflection at run time. However, I am not sure what use it would be to you.
Eg: Activator.CreateInstance(typeof(List<> ).MakeGenericType(yourtype))
|
|
|
|
|
Hi, I'm looking to create an executable file that I can load on my windows mobile Symbol device that'll delete everything that I don't need. The problem is that I'm not familiar at all with working with windows registry within code. This is my first time using c#, however I'm fluent in Java which I've heard is similar. Can someone give me a start on the code such as a method used to delete a registry key and a method used to delete a file.
Thanks in advance!
|
|
|
|
|
Here u Go it's here in CodeProject
[^]
Have Fun
Never forget it
|
|
|
|
|
umm after looking here I need some help as I've never written in c# before. Is there a way I can just hardcode what I need. I just want something simple for now that I can type in what I need and it will delete it. When I look at
[code]
try
{
// Setting
RegistryKey rk = baseRegistryKey;
RegistryKey sk1 = rk.CreateSubKey(subKey);
// If the RegistrySubKey doesn't exists -> (true)
if (sk1 == null)
return true;
else
sk1.DeleteValue(KeyName);
return true;
}
[/code]
it seems that when I'm cteating the Registry key rk and deleting it, it's doing nothing more then deleting what I made, even though I didnt call new. Could someone help me out.
|
|
|
|
|
This whole project is for windows mobile as I said before... I've been thinking about whether it would be easier to use a registry file (.reg file) to delete the registry entries that I would need to delete, and then just delete the files with the delete method.
Help please!
|
|
|
|
|
Maybe this can help u :
[^]
Have Fun
Never forget it
|
|
|
|
|
Thanks! I understand it more now. But i need to know is it possible to edit the registry in windows mobile 5.0 through an exe file or do i need to download a refistry editor?
|
|
|
|
|
Hi,
I used sql 2005 as my backend.
How do i check the MAX(of a field) in a table in from C# codes
|
|
|
|
|
if one stores data in a DATATABLE it's easy to see that :
DataTable DT;
DT.Columns.Count;
Have Fun
Never forget it
|
|
|
|
|