|
Abstract classes can implement interfaces.
|
|
|
|
|
Hello,
I am trying to set background image to listview, but when I load image it doesn't get adjusted to listview size (stretch - auto size adj.)
I using following code to load image
mListViewUI.BackgroundImage = Image.FromFile(@"c:\jpeg\image1.jpg");
Any help is appreciated.
Thanks in advance.
|
|
|
|
|
Isn't there a BackgroundStyle (or something similarly named) property which handles this, it's an enumeration with Stretch, None, Fixed, etc as values.
|
|
|
|
|
Bitmap bmp = new Bitmap(mListViewUI.BackgroundImage, mListViewUI.Width, mListViewUI.Height);
mListViewUI.BackgroundImage = bmp;
Mark
|
|
|
|
|
hi guys...
i'm having a hard time on how to convert a user-defined data types in vb6 to c#. Here's my user-defined data types code in vb6. I hope u can help me of this guys...
Private Type udtEmployee
strIdno as String * 12
strFName as String * 30
strLName as String * 30
...
....
End Type
Private mudtEmployee as udtEmployee
dickhead
|
|
|
|
|
class udtEmployee {
public string strIdno;
public string strFName;
public string strLName;
}
or
struct udtEmployee {
public string strIdno;
public string strFName;
public string strLName;
}
or
class udtEmployee {
public char[] strIdno = new char[12];
public char[] strFName = new char[30];
public char[] strLName = new char[30];
}
I don't like the last one, though.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
|
Hi,
I am developing a MDI application. In this application on click of some menu items I have to display some forms(say MenuForm1, MenuForm2, MenuForm3) with some data. But at the same time I want one form(say BackGroundForm) which is a child form of my MDI application should be active in the background of the form which gets displayed on click of some menu items.
If I declare those forms(MenuForm1, MenuForm2, MenuForm3) as child & if I pop them up using ‘show’ then for 1st time they are visible in my application but next time if I click that menu item then they are not visible. Same problem I’m facing if I don’t make them as child of my MDI & pop them up using ‘ShowDialog’. I am hiding forms(MenuForm1, MenuForm2, MenuForm3) on click of a button which i placed on same forms(MenuForm1, MenuForm2, MenuForm3).
I want that ‘BackGroundForm’ in my application because I want to put some button controls on one form & that form should be active all the time until the application is running. So I had put some buttons in this BackGroundForm & I cant put buttons on MDI parent form .
How I can solve this problem in my MDI application…?
Thanks in advance,
Vinay
|
|
|
|
|
I'm new to using the Visual C# 2005 Express - is the console window
supposed to just flash up and disappear when displaying output from
a console program? The book examples I'm using seem to assume so.
I've found a code snippet: System.Console.ReadLine();
which does the job, but is it usually necessary to include this line
or something similiar to keep the output window from disappearing please?
-- modified at 22:31 Saturday 18th November, 2006
|
|
|
|
|
Well, usually you'd execute a console app in a command prompt window, so the app would execute and return to the command prompt.
If you double click it in explorer, it will open a command prompt window, execute, and when your program is done, it closes the window.
ReadLine is waiting for user input, so the app hasn't ended yet, which keeps the window from closing.
In other words, it's a hack to keep the window open.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
No this is supposed to run under the MS Visual C# IDE. I have two "step-by-step" type books
and both expect the programs to run using the IDE environement; neither seem to consider this
problem...
|
|
|
|
|
But that's exactly what's happening! You app starts, the console window appears, and when your app is done, the console window closes and you're returned to VIsual Studio. The only way to keep the window open is to put the ReadLine statemnet in there.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
So the fault is the books I'm using then? It just seemed strange to me
that two books could have missed the apparent need for such a statement.
(I used to use Getchar() in C, but it's not in C#.)
|
|
|
|
|
Maybe I'm confused or not sure what you're asking.
If your console app has no ReadLine at the end, and you run it under the IDE, you'll get "Press any key to continue" prompt. [edit]At least in VS2003[/edit]
If you double-click your .exe in windows explorer, it will run it and close the window immediately.
Are you saying they need to put Console.ReadLine in there samples, or they shouldn't have it in there?
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
"If your console app has no ReadLine at the end, and you run it under the IDE, you'll get "Press any key to continue" prompt. [edit]At least in VS2003[/edit]"
This must be why my books don't include the readline statement - I'm using the latest version
and without the readline the console window behaves the same as in C when you omit the getchar()
statement - it briefly flashes and disappears. Presumably they had their reasons for making the change...
|
|
|
|
|
Somebody probably complained that they didn't have an "any" key on their keyboard, so they removed it from VS2005
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
Or your compiling and running the app in Release, instead of Debug mode.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Please pardon me if this is the incorrect place to be posting this question:
I'm trying to use the Canon Software Development Kit (EDSDK v1.3 to be exact) to include support for Canon RAW images in my application written with C# in Visual Studio .Net 2005. So far I've met with some success, but seem to have hit the proverbial wall. I'm able to use the Canon libraries to connect to the RAW (CR2) image files, access the image properties, etc, but am currently unable to display the image on screen. I'm hoping someone out there has already run across (and hopefully already solved!) this problem, or something similar and might be able to lend me some advice.
BTW, the SKD libraries are freely available from Canon (after you go through the trivial approval process) here: http://www.usa.canon.com:80/consumer/controller?act=SDKHomePageAct&keycode=Sdk_Lic&fcategoryid=325&modelid=9808&id=3464[^]
Any help? Am I barking up the wrong tree?
Thanks!
|
|
|
|
|
I've never worked with the RAW SDK ( it returns raw bitmap data as opposed to JPEG, right ? ), but for the other SDK, I had to write a wrapper, which passes a delegate in C++/CLI to provide the function pointer to pass the HWND to.
Christian Graus - C++ MVP
|
|
|
|
|
Christian,
As best I can determine, the SDK does return raw bitmap data in one form or another. The latest version of the SDK does come with a C# wrapper around the dlls which contain the actual SDK, but unfortunately no C# sample code on how and what to call to get the image information to display. What I've been able to decipher so far is from an included C++ sample application which I've muddled through, but I'm not a C++ developer, so that's been an iffy proposition!
The included C# wrapper around the dll's allows the functions to be called from C#, but as best I can figure the function call which actually returns the image returns a pointer the a memory stream containing the image. Muddling through the included C++ example, that 'stream' gets re-arranged slightly to build the actual image. It's at that point that I'm stuck. I can see what the C++ function is doing, but haven't a clue how to write the C# equivalent. Canon unfortunately offers no support, so they're of no help. I'm hoping someone may have already figured out the solution.
|
|
|
|
|
f1nut wrote: The latest version of the SDK does come with a C# wrapper around the dlls which contain the actual SDK, but unfortunately no C# sample code on how and what to call to get the image information to display.
Really ? This is the one that has JUST been released ? Do you know if the other SDK has a RAW wrapper ? That's awesome news, I've been working on a wrapper for the latest SDK for a while now.
If the stream represents the image data, you could look at my image processing articles on how to pass the bits into a bitmap.
Christian Graus - C++ MVP
|
|
|
|
|
Yes, there is a C# wrapper to the dll's in the latest sdk from Canon. At least the EDSDK v1.3 has one.
|
|
|
|
|
I am a C# programmer with about 4 years development experience. I currently busy with an Equipment Management System. I want to add a Vehicle Tracking feature on the system. I have done a couple of searches on the net, but the results I get are not specific.
Can anyone plz tell me what Hardware and software I need to use GPS on my windows application.I would most propably appreciate a list of all hardware and software necessary for my application to work, and possibly a step-by-step guidelines.
Programming is not a skill, it's an art.
|
|
|
|
|
|
i am new in c# but i have a c# haw to program book, can any one help me to find the answers of this book plz
|
|
|
|