|
Can any of you recommend a good C#-book? I've bought the "Programming C#" by Jesse Liberty, and it's quite good. But there's nothing about GDI+, and since I'm mainly interested in image analysis/processing and graphics I'd like to buy a book which contains some stuff about GDI+ and possibly also about Winforms. I've thought about the WROX Proffesional C# Programming, anybody read that?
|
|
|
|
|
Programming Windows with C# by Petzold ? This discuss Winforms , UI stuff and GDI+ ...
BTW , a C# is different of GDI+ , by your title I thought that you wanted a C# book like Inside C# by Tom Archer instead of a GDI+ book .
The Petzold book is quite good explaining all the UI and GDI+ stuff , but if you are interested in Image processing you better get a specif book about this, since I currently don't known any book that deals with it with C#, C++ and C are the common language used in kind of image processing algorithm books.
Cheers,
Joao Vaz
Addicted C++ programmer
|
|
|
|
|
I'll second this book. Loads of good information on a variety of Windows topics.
|
|
|
|
|
Rohde wrote:
I've thought about the WROX Proffesional C# Programming, anybody read that?
It has only one chapter about GDI+,and you can read that chapter here.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
Petzold is definately the book on GDI+. As for image processing, some clown has written a few articles on doing that in C# right here on CP. I hear he's an idiot, but there might be some stuff in there worth investigating all the same. :P
Why do you want to do image processing in C# ?
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
Let me guess? You're the sinister person behind those articles? I'll check 'em out.
There's actually no particular reason why I'm want to do it in C#. It´'s mostly because it's a fun way of getting to use and learn C# since I find image processing interesting and great fun.
|
|
|
|
|
Rohde wrote:
´'s mostly because it's a fun way of getting to use and learn C# since I find image processing interesting and great fun.
That's pretty much exactly why I wrote my first C# articles on image processing also )
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
Can anybody tell me what caused this error?
Assembly generation failed -- Referenced assembly 'Mazdak.WebModules.Accounts.Data' does not have a strong name
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
What are you trying to do to it?
To give an assembly a strong name use the sn tool to create a key file, then reference the key file in your assemblyinfo.cs file.
sn -k keyfile.snk
In AssemblyInfo.cs
[assembly: AssemblyKeyFile(@"..\..\keyfile.snk")] - assuming you place the .snk file in the root directory of your project.
James
Simplicity Rules!
|
|
|
|
|
James T. Johnson wrote:
To give an assembly a strong name use the sn tool to create a key file
But where is sn tool ? When I run
sn -k keyfile.snk<br /> in commandline windows tell me that it couldn't find that tool.
I have one .snk file in my computer and when I use it,it solve my problem but I don't how to create it myself.
Thanks James.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
It is part of the SDK; you'll have to use the shortcut provided by VS.NET in the start menu... Start\Programs\Microsoft Visual Studio .NET\Visual Studio .NET Tools\Visual Studio .NET Command Prompt.
Or you can alter your path to include %windir%\Microsoft.NET\Framework\v1.0.3705\
James
Simplicity Rules!
|
|
|
|
|
Thank you James.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
Can you have MDI's\SDI's in C#, done enough dialogs but can you do 'proper' applications?;P
|
|
|
|
|
Yes you can.
--
David Wengier
Sonork ID: 100.14177 - Ch00k
(as far as I know)
|
|
|
|
|
As David said, Yes you can.
To add to that though there is an inherit difference between the way Windows Forms and MFC work. There is no difference between an MDI parent, MDI child, and a Dialog. All are created by deriving from Form and calling certain methods or setting certain properties.
For an MDI parent set the IsMdiContainer property to true. To create a MDI Child, assign the parent window to the child form's MdiParent property. To create a Dialog, use the ShowDialog() method.
James
Simplicity Rules!
|
|
|
|
|
Keep a close watch on this
regards
Kannan
|
|
|
|
|
Hi,All
I want to access Microsoft Excel Sheet in Visual C#.In one button click i am writting following code:
Excel.Application ExcelApp = new Excel.ApplicationClass ();
Excel.Worksheet sheet ;
sheet = (Excel.Worksheet) ExcelApp.Workbooks.Open("D:\\AccessExcelInVB\\Data.xls",1,1,1,1,1,1,1,1,1,1,1,1).Sheets.get_Item("Data");
MessageBox.Show( sheet.Cells.get_Item(12,12));
I want to access the data in (12,12)'th cell and show it in MessageBox,i need to compare it with string in further code.
But it gives error that object can not be converted to string.
Can anybody tell me how should i convert object to string?
Thanx and Regards
Tushar
|
|
|
|
|
Tushar mahajan wrote:
MessageBox.Show( sheet.Cells.get_Item(12,12));
You need to manually call ToString() on it, but there is probably some Excel method you need to call to get the string out of it.
James
Simplicity Rules!
|
|
|
|
|
Hi,
When i use :
MessageBox.Show(sheet.Cells.get_Item(12,12).ToString);
it gives me string System.__ComObject
But i want value of that cell.
Also it does'nt have Value property to give me value of that cell.
Tushar
|
|
|
|
|
According to a quick look at MSDN there should be a Value property on the Range object that refers to that cell.
ie, Range("L12").Value , I think you create the range object from the worksheet.
James
Simplicity Rules!
|
|
|
|
|
Hi,
Sorry to trouble you again but i am confused.
Excel.Application ExcelApp = new Excel.ApplicationClass ();
Excel.Worksheet sheet ;
sheet = (Excel.Worksheet) ExcelApp.Workbooks.Open("D:\\AccessExcelInVB\\EquipmentData.xls",0,1,1,1,0,0,1,0,0,0,0,0).Sheets.get_Item("Data");
now when i use sheet.Cells(12,12) and gives the Dot it does'nt show me anything,and it gives me error("Excel._Worksheet.Cells denotes a property where a method was expected").(DotNet does'nt support Default).
so i should use sheet.Cells.get_Item(12,12),but it does'nt show me Value property.
I am using Office2000 is it due to that?.
Thanx
Tushar
|
|
|
|
|
This code works for me with OfficeXP
Excel.Application app = new Excel.ApplicationClass();
Excel.Workbook wb = app.Workbooks.Open(@"C:\test.xls", 0,0,1,1,0,0,1,0,0,0,0,0, 0, 0);
Excel.Worksheet ws = (Excel.Worksheet) wb.Worksheets[1];
Excel.Range range = (Excel.Range) ws.Cells[12, 12];
textBox1.Text = (string) range.Text;
wb.Close(false, Type.Missing, Type.Missing);
app.Quit(); HTH,
James
Simplicity Rules!
|
|
|
|
|
Hi,
Thank you very much,now it works here too.
Actually i am new to C#.
Thanx again
Tushar
|
|
|
|
|
I think you might want to try sheet.Cells(12,12).Value (and then maybe .ToString() )
--
David Wengier
Sonork ID: 100.14177 - Ch00k
|
|
|
|
|
Hello Everybody,
I am developing a windows application using c#. I want access some .DBF
file without ODBC.
Can anybody help me out.
Thanks in advance.
|
|
|
|
|