|
|
Why print it out? It's online and possible to search. If you want an offline copy, get the MSDN Library subscription, a mere $199 for the first year and only $99/year after that.
MSDN is a comprehensive reference - books are not (unless you get those that are a compendium). If you can't understand the APIs, frameworks, or concepts from the reference, then you probably do need someone else (i.e., a book author) to explain it to you.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
|
I saw the cinicism in it, but it seemed like you were saying that MSDN is not a good reference because it's so big. Believe it or not, many people have said that...
"Oh, I haven't looked because there's too much stuff."
Sorry.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
|
thankyou all for your helpful comments! :P
will check out what you have said...
-------------------------------------------------------
ithium is the best.
'Science without religion is lame, religion without science is blind.' --Albert Einstein
'The pioneers of a warless world are the youth who refuse military service.' --Albert Einstein
|
|
|
|
|
Check out Windows Forms Programming in C# by Chris Sells.
Kuphryn
|
|
|
|
|
thankyou. looks quite cool...
-------------------------------------------------------
ithium is the best.
'Science without religion is lame, religion without science is blind.' --Albert Einstein
'The pioneers of a warless world are the youth who refuse military service.' --Albert Einstein
|
|
|
|
|
microsoft press has copule really good ones.
probably the best book about windows forms and graphcis (GDI+)
Programming Microsoft Windows with C# by Charles Petzold
pretty thick with about 1200 pages. You can use it as a reference and to just read about things.
http://www.amazon.com/exec/obidos/tg/detail/-/0735613702/qid=1086702102/sr=1-4/ref=sr_1_4/104-9011139-0631159?v=glance&s=books
and a really good bood about .net framework:
Applied Microsoft .NET Framework Programming by Jeffrey Richter
http://www.amazon.com/exec/obidos/tg/detail/-/0735614229/qid=1086701997/sr=1-1/ref=sr_1_1/104-9011139-0631159?v=glance&s=books
|
|
|
|
|
thankyou, will check out.
-------------------------------------------------------
ithium is the best.
'Science without religion is lame, religion without science is blind.' --Albert Einstein
'The pioneers of a warless world are the youth who refuse military service.' --Albert Einstein
|
|
|
|
|
Hi guys. I may have a stupid question. I'm a bit of a newbie to C#. So, to get into things I'm building a CD player. Now, I know there's a tutorial here. But before I dive into the MCI, I had a question about the WMP.dll. Would it be easier and simpler to use that? Can I use that? How do I use that? For example, in the tutorials home made .dll he has to use the MCI to eject the CD rom.
In the wmp there's a method for doing so called "player.cdromCollection.item(index).eject()". Now, how would I clal that method. And from my understanding, I have to in a sense 'install' the player into my app. I just want a button that says "eject" and calls this method. Just to experiemtn with, not the whole media player with media window and play and stop buttons. Is this possible? For example, can I use Environment to find the CD Drive and it's path and then from there eject the cd? Or better yet create a CD Rom Object and use driveSpecifier?
Again I'm new to this, so help me out if you can. It would be just easier for a newbie lke myself to use these commands already in wmp.dll by importing that library then necessarily messing with the MCI.
Thanks for reading and hopefully answering.
|
|
|
|
|
Yes, it's possible, but then you're not really writing a CD-ROM player, are you? Besides, if you're new, you should really start out with something a little more basic.
To include the Windows Media Player into your Windows Forms application, customize your toolbox in VS.NET. Click the COM tab and find the Windows Media Player control and add it to your toolbox. Then simply drag and drop that onto a container control (like a Form or UserControl ) and two interop assemblies (a.k.a. Runtime Callable Wrappers) are created - one for the ActiveX control, and one for the WMP typelib. Then add your Eject button, for example, and call the method on your player control, which is declared as a variable.
To note, if you're going to strongly name your assembly (and it's always a good idea to, especially if you need to install it into the Global Assembly Cache (GAC) or do anything decent with versioning assemblies) you should right-click on your project and select Properties. Find the assembly key filename and pass the filename (path relative to the project, or an absolute path) of a key pair you generated with sn.exe -k KeyFile.snk (any filename will do). When the interop assemblies are created, they are created with strong names as well. A strong name assembly can only reference other strong named assemblies, though non-strongly named assemblies can reference strongly named assemblies.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I have see the EnsureVisible Method of both TreeView, and TreeViewItem. I want to just check if the item is visible or not, I don't neccessarily want to force it to be visible. I've also see TopItem, but I'd reather be able to check the visibility of any item in the control. I imagine I could use GetItemBounds to get the height of each Item then do some math to see if the control's height is large enough to show the specific Item in question, but I didn't know if there was a built in Property or function that would be better to use ?
Thanks for any thoughts you may have.
|
|
|
|
|
You didn't see TreeNode.IsVisible when looking at all those properties?
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Wow,big Typo there I meant to say ListView not TreeView...sorry about that.
|
|
|
|
|
Then either use ListView.GetItemRect or ListViewItem.Bounds (or ListViewItem.GetBounds , but used in the same way) and determine if the returned Rectangle.Y is greater than the ListView.Bottom .
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
OK, I kinda figured those would be my options, thanks Heath....
|
|
|
|
|
I need to upload from exel doc every day 20 rows of 5 input fields into my company's web site to an aspx page into asp:textbox components and send to server via send butoon in a loop(20 times). anyone please point me to code for doing that anyway in c#.
10x
|
|
|
|
|
Simple: write an application that uses a timer, read-ins the Excel spreadsheet using an interop library (add a reference to Microsoft Excel to your project), and POST the data (see the HttpWebRequest and HttpWebResponse classes) to your ASP.NET application.
If you want help with something specific, then ask about something specific. This forum is intended to help you with programming question, not really to help you design an application.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hi!
I have a try-catch-finally block, the catch declares some Exception e, but I don't need this e... Now if I compile this I get an unreferenced variable warning...
How to avoid this, unreferenced variable warnings?
Best regards and thanks in advance,
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)
|
|
|
|
|
try
{
... some code that might fail...
}
catch
{
... code for handling ALL exceptions ...
}
Note: There is nothing after the catch statement! No unreferenced variables...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote:
try{ ... some code that might fail...}catch{ ... code for handling ALL exceptions ...}
AFAIK an empty catch catches nothing! But to answer the original q.
try { } catch (Exception) { }
top secret xacc-ide 0.0.1
|
|
|
|
|
True, but that's pretty pointless in reference to what Dave wrote. This type of declaration works best when you want to catch specific exceptions (besides the base Exception class), whether or not you declare an exception variable (I know you know that, leppie, I'm just explaining it to the poster if he manages to read it).
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Actually, it will catch the Exception. Try it...
try
{
System.IO.Directory.SetCurrentDirectory(@"Z:\testme");
}
catch
{
MessageBox.Show(@"Exception caught!");
}
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I think I know why I thought that.
Was running a console app, and waiting for some output in the VS.NET Output console.
~leppie()
top secret xacc-ide 0.0.1
|
|
|
|