I want to draw an image on the screen and because I want to do it as fast as possible I decide to use BitBlt instead of DrawImage method.
When I use BitBlt to draw the content of the screen on itself everything works fine but when I try to draw an image that is loaded into memory nothing happens.
here's what I do:
What do you think calling DrawImageUnscaled is going to do, under the hood ? I suspect it does nothing more than this.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
"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 )
I am novice to C# programming.
I've made a little windowsforms C# app. This app connects to a website, downloads the *.csv files to a given dir.
But now i want to convert this app to a windowsconsole app, but the code i wrote is not working.
Can somebody help me?
Here is the code that is NOT working in the console app.
/// Summary description for Class1.
/// The main entry point for the application.
static void Main()
In a console application you don't have a form to run. You move the functionality from the form in to the Main method and remove the Application.Run(...);. You also have to change the Project Settings to change the output type to "Console Application"
In my application, i would like to use DateTimePicker to get the Date value (mm/dd/yyyy). I am using this
but i am still getting this value (mm/dd/yyyy HH:mm:ss) .
What i wish is only the "mm/dd/yyyy". Actually i was tried before set the datetimepicker format to mm/dd/yyyy, then get the value in type of String. But after that, i cant convert it into mm/dd/yyyy in type of Date. Anyone can guide me to solve my problem?
First,thanks for the replies.
I cant split the value to "mm/dd/yyyy" with using datetimepicker.value.date.toshortdatestring or datetimepicker.value.toshortdatestring. But when i use datetime.parse(string), the format will become "dmm/dd/yyyy HH:mm:ss" again. And if i use "Format(datetime,"mm/dd/yyyy")", its prompt me an error msg.
I would like to have the value in format "mm/dd/yyyy" is becouse i will insert this value into database.Please anyone guide me to the right way.
i'm creating a class diagram in VS 2005, the class diagram option shows me all the classes of the project but it doesn't show the links between classes.
Is this because half my classes are "Serializable"
I Fresher in C# i need a help. i using the datagrid view in a form1. i add the record the form another the form2. When the form2 use and load the form1.when form1 load the datagrid will automatical datagrid refresh.(form2 add record are show in the form1 datagrid)
I have a stupid question like this
How do I copy a row and paste it into a new row at run time?
I know I can use the getClipboardContent method and work with this content. It seems to be a bad way, even unexpected result.
Help me solve my problem .
Thanks in advance
It seem to be a solution or an answer.
Last Visit: 31-Dec-99 19:00 Last Update: 28-Jan-23 0:29