|
I need to load Jpeg, gif or png files and save it to BMP
|
|
|
|
|
Use Bitmap.FromFile to load the image, then use the Save method with ImageFormat.Bmp to save the image.
---
b { font-weight: normal; }
|
|
|
|
|
it is the better way? That is it is the less quality loser?
|
|
|
|
|
bmp is a lossless format, there's no loss converting from anything else to one unless you resize or change the color depth.
|
|
|
|
|
Hello!
Ok, so I've documented my C# code with XML comments. Now I want to generate some nice MSDN-style documentation out of it.
I've looked at NDoc already, but it doesn't seem to support .NET 2.0 (generics, ...) yet.
What tool could I use?
Thanks in advance and best regards
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
Hi,
How do we pass an integer argument from C# into a javascript function?
I declare an integer variable first, then I pass it into the javascript function.
But the javascript code didnt execute correctly.
//First, an integer variable is declared
int numofItems;
// Returns the Javascript code to attach the context menu to a HTML element
public string GetMenuReference()
{
return String.Format("return __showContextMenu({0},numofItems);", Controls[0].ClientID);
}
//Then the Javascript is called when the oncontextmenu event happens
ctl1.Attributes["oncontextmenu"] = GetMenuReference();
Initially the javascript function has the {0} argument only and it worked fine. But when I added one more integer argument, it doesnt work. What is the correct way to pass an int argument ?
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
Hello!
I use VS 2003 and C#
When I build an exe file that use 6 class library dll I get this error.
Could not copy temporary files to the output directory.
The file 'MeltPracStorage.dll' cannot be copied to the run directory. Det går inte att komma åt filen eftersom den används av en annan process.
All six project is located in the solution that build the exe file
This compile error occurred when I add project 'MeltPracStorage to the solution.
I use copy local=true
If I have this MeltPracStorage in a solution of its own and only reference
the class dll MeltPracStorage.dll in the reference list for the project that
build the exe file I don't get any errors.
The MeltPracStorage.dll size is 176 kB
Have you any kind of suggestion to ny problem.
//Tony
|
|
|
|
|
Hello,
Please check that the dll file is being used by an running .exe file. close the application and try to build it. It should work.
HTH. Cheers
Maqsood Ahmed - MCAD.net
Kolachi Advanced Technologies
http://www.kolachi.net
|
|
|
|
|
follow the steps..
1) Close VS.net
2) Delete the and obj folder inside of the project u trying to build.
3) now build the application.
There are chances that the pdb might be the problem,
Mind think with Ideas,not Data. No amount of Information or Data could be compared with an inspired thought.
-- modified at 9:15 Tuesday 28th March, 2006
|
|
|
|
|
Hi Guys,
im looking for a button control (ocx, dll) that does not steal focus of any application. It should work like the ms onscreen keyboard, I open 2 or 3 notepads, and the notepad with the focus gets a sendkey ... Or any other ideas how to program an onscreen keyboard, in C# C++ VB.NET or whatever ... But this is a must : Focus MUST be kept in the other application, changing and going back is not the solution for me
I hope someone can help me, thanks a lot
Chris
|
|
|
|
|
Hi!
One way to achieve something like this would be to install a global keyboard hook.
IIRC there's even an article about using hooks in C# around here somewhere...
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
My problem is I want list of those user who logged in a domain.
when ever a user logged in i want to know.
i searched alot but i m not getting solution.
can anybody help me out.
It's very urgent.
|
|
|
|
|
I have a problem I have to work with an api provided by someone else, but the problem is that dll is throwing an exception and a stack trace which I have gotten around somehow but if the error happens I dont want the stack trace to be displayed. In order to do that successfully I want to catch that exception in my code but for some reason I cant, when I try to debug the app it starts showing assembler code.
Is there a solution?
OnlyHuman23
|
|
|
|
|
You mean that a try/catch block does not work?
--------------------------------------------------------
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
The debugger intercepts the excpetion before it reaches your code. If you choose not to debug, the exception will reach your code.
A normal user doesn't have a debugger installed, so it won't happen when you distribute the application.
---
b { font-weight: normal; }
|
|
|
|
|
Even when I build the application in release the exception comming out of the dll code is thrown and is not caught in my try block.
OnlyHuman23
|
|
|
|
|
Have any bugs in the ErrorProvider control been discovered yet? I had a BIG problem the last time I tried using it. When you have a few controls on your form (textboxes, buttons, etc.) it works perfectly but when there are a large number of controls the control doesnt respond to calls. Anyone facing similar problems?
|
|
|
|
|
I've used it in a form with many controls and I have not had a single problem. I just always set it to never blink, because I hate the icons blinking out-of-sync.
Luis Alonso Ramos
Intelectix
Chihuahua, Mexico Not much here: My CP Blog!
|
|
|
|
|
I'm having a slight problem with the numeric UpDown control? I've done everyhing I can but that stupid control doesnt display itself in XP Style mode. What can I do to settle this? I'm developing this application professionally so I can't let it hamper my program. I found this[^] but it had quite a few bugs of its own.
|
|
|
|
|
If you search Google[^] you'll see that it just doesn't work for .NET 1.x.
In .NET 2.0 I've used NumericUpDown controls and it works as expected (same as TabControl s).
Luis Alonso Ramos
Intelectix
Chihuahua, Mexico Not much here: My CP Blog!
|
|
|
|
|
|
Hello Friedns,
I am tring to restore backup file which is on Machine1. And SQL server might be on anyother machine in local network.
I am using this Code:
==============================================================
//create an instance of a server class
SQLDMO._SQLServer srv = new SQLDMO.SQLServerClass();
//connect to the server
if(rbLocal.Checked==true)
srv.Connect(this.txtServName.Text,this.txtUserName.Text,this.txtPass.Text);
else
srv.Connect(this.cmbServList.Text,this.txtUserName.Text,this.txtPass.Text);
//create a restore class instance
SQLDMO.Restore res = new SQLDMO.RestoreClass();
//set the backup device = files property ( easy way )
res.Devices = res.Files;
//set the files property to the File Name text box
res.Files = "[" + System.IO.Path.GetTempPath()+"AlcoMateBlank.BAK" + "]";
//set the database to the chosen database
res.Database = this.txtDBName.Text;
// Restore the database
res.ReplaceDatabase = true;
res.SQLRestore(srv);
==============================================================
This code working properly if Backup file is on Local Machine but not if backup file is on another machine in a network. I am getting this error
BackupDiskFile::OpenMedia: Backup device 'C:\DOCUME~1\sachin\LOCALS~1\Temp\AlcoMateBlank.BAK' failed to open. Operating system error = 3(The system cannot find the path specified.).
Can you please suggest me eassy way of restoring database from remote PC to remote sql server which is in LAN?
Sachin Gedam
(Software Engg.)
Pune India
|
|
|
|
|
Copy the file to the SQL Server machine first. Then tell the SQL Server where to find the file on it's own hard drive.
The problem with telling SQL Server where to find the file on a remote machine is that the account that is used to do the acctual restore most likely will not have permissions to the remote machine where the backup file is stored.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
My problem is I want list of those user who logged in a domain.
when ever a user logged in i want to know.
i searched alot but i m not getting solution.
can anybody help me out.
It's very urgent.
|
|
|
|