|
Google not working for you?
|
|
|
|
|
hi,
how to read .ttf fontfiles for getting width & height of text in wpf using c#...
plz reply
|
|
|
|
|
Are you trying to find the width of a string? If so you can use MeasureString from a Graphics object
My current favourite word is: Nipple!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
Ya i want the width of the string...
I think MeasureString from a Graphics object cant be used in wpf ...It can be used only with forms...
I tried this
Graphics g =(this).CreateGraphics();
creategraphics method does not exists because it is not a form so
Any other way is there to know from font file
|
|
|
|
|
Hello all,
How can I communicate with a scanner device and scan a picture and save it and so on?
T.I.A
While (true)
|
|
|
|
|
It is tough unless scanner provides some API
|
|
|
|
|
Can you give me an example? I searched Google and MSDN but I couldn't find anything. Please Help!
|
|
|
|
|
See this article: http://www.codeproject.com/KB/dotnet/twaindotnet.aspx">http://www.codeproject.com/KB/dotnet/twaindotnet.aspx
Kutty
|
|
|
|
|
I have a question regarding STA/MTA in .net
I need to build a COM object in .net whose threading model is required to be STA only (not Both,..) because it is not safe to be used in MTA apartment.
How to do it?
Thank you very much!
|
|
|
|
|
Hi,
I want to develop a page in asp.net in which when user type any word the list of corresponding words or list of words starting with that char should display in the drop down and user must able to select that.
for example Visual Studio when we type any word and press ctrl+space bar the list of words appears. i want to do the same.
|
|
|
|
|
YOUR IN THE WRONG FORUM!!!!
try the ASP.Net Forum
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
Hello,
There is internal feature of .NET that we can generate Report from comments.
Can anybody give any idea, how to do this.
Thanks
|
|
|
|
|
Can u explain, what is your correct requirement?
|
|
|
|
|
Actually i want to generate Document in Visual Studio. I thought there is internal feature in Visual Studio .NET that it will show all the commments in Documentation formate.
|
|
|
|
|
U go through the .net architecture
|
|
|
|
|
Thanks, i got the way from properties fo Project file.
|
|
|
|
|
hi all,
i ve my desktop application in c# with its setup project.
i ve windows xp and want to change its BOOT SCREEN and WELCOME SCREEN
using my c# code.
(i want to change it when setup is run, and when application is uninstalled normal mode
should be activated)
is there any way to achieve this without using any third party tool?
it should not affect other settings done by user.
Thanks.
Regards
-SIFAR
|
|
|
|
|
The following are some third party tools that allow you to change the login and boot screens. The tools manufacturer had to work with Microsoft to develop these tools, and for the average consumer, I would say that they cannot be altered. I will give a few reasons why this is, and why what you are asking is slightly out of reach.
First, C# will be unable to change the boot screen and possibly the welcome screen because it is bound by the .NET framework which isn't loaded that early in the system. I believe it can, at most, alter aspects (not the whole) of the logon screen. Second, these features you are asking cannot be for individual profiles because they take affect before the system begins to boot and before any user is able to login.
If you are still interested in toggling a few aspects of the OS, you can look in ResHack. It is a tool that does allow some customization of dll files and may help with manipulating various aspects of the boot/login/welcome screens.
http://www.stardock.com/products/bootskin/[^]
http://www.stardock.com/products/logonstudio/[^]
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
|
|
|
|
|
Thanx,
for now, i got the solution by disabling the boot GUI.
(i still want to change it)
i achieve this by adding /noguiboot in boot.ini
And for login screen i made autologin with Winlogon registry.
As for now, it works fine for me.
But still i want to put some images instead of NO GUI AT ALL.
Regards,
-SIFAR.
|
|
|
|
|
HI ALL,
I am using the following code for Decrtption
public static string Decrypt(string xxxxx)
{
RijndaelManaged RijndaelCipher = new RijndaelManaged();
string Password = "srinu";
byte[] EncryptedData = Convert.FromBase64String(xxxxx);
byte[] Salt = Encoding.ASCII.GetBytes(Password.Length.ToString());
//Making of the key for decryption
PasswordDeriveBytes SecretKey = new PasswordDeriveBytes(Password, Salt);
//Creates a symmetric Rijndael decryptor object.
ICryptoTransform Decryptor = RijndaelCipher.CreateDecryptor(SecretKey.GetBytes(32), SecretKey.GetBytes(16));
MemoryStream memoryStream = new MemoryStream(EncryptedData);
//Defines the cryptographics stream for decryption.THe stream contains decrpted data
CryptoStream cryptoStream = new CryptoStream(memoryStream, Decryptor, CryptoStreamMode.Read);
byte[] PlainText = new byte[EncryptedData.Length];
int DecryptedCount = cryptoStream.Read(PlainText, 0, PlainText.Length);
memoryStream.Close();
cryptoStream.Close();
//Converting to string
string DecryptedData = Encoding.Unicode.GetString(PlainText, 0, DecryptedCount);
return DecryptedData;
}
It is showing me an error
"An exception of type 'System.FormatException' occurred in .DLL but was not handled in user code
Additional information: Invalid length for a Base-64 char array."
in the Line "byte[] EncryptedData = Convert.FromBase64String(xxxxx);"
Plz help me solve this ASAP.
|
|
|
|
|
srinivaskonijeti wrote: Additional information: Invalid length for a Base-64 char array."
in the Line "byte[] EncryptedData = Convert.FromBase64String(xxxxx);"
It should be clear, the xxxxx string you pass in, is NOT BASE64 encoded.
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 alpha 4a out now (29 May 2008) ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
I am running Visual Studio 2008.
Right clicking on the references in Solution Explorer shows Add reference and Add Service reference.
There is no Add Web Reference.
So using the Add Service reference, I added a reference to a web service.
Now I do not get the name of the web method in the web service.
For example, I type the name of the reference to the web service which is
wsTransactionService and place a dot after it, but I do not get the name of the web method instead I get the name of the webmethod and Soap attached to the end of the method name.
What am I doing wrong please?
Thanks
|
|
|
|
|
You have to create an instance of your web service class to use the methods.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
It does not allow me to create an instance because I can not find the method name
i.e.
I can not do the fooowing because TransactionService comes up with Soap attached to it
wsTransactionService.TransactionService ws = new wsTransactionService.TransactionService();
|
|
|
|
|
I don't have my computer up and running at the moment, so I can't check, but there shouldn't be many classes to choose from.
If I remember correctly you should create a wsTransactionService.Service object.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|