Click here to Skip to main content
15,921,941 members
Home / Discussions / C#
   

C#

 
QuestionUdpClient.Send() hangs Pin
mav.northwind13-Aug-11 0:52
mav.northwind13-Aug-11 0:52 
QuestionInserting IMAGE FILES OR JPG,BMP file into MS-ACCESS TABLE Pin
M Riaz Bashir13-Aug-11 0:13
M Riaz Bashir13-Aug-11 0:13 
AnswerRe: Inserting IMAGE FILES OR JPG,BMP file into MS-ACCESS TABLE Pin
Peter_in_278013-Aug-11 0:54
professionalPeter_in_278013-Aug-11 0:54 
GeneralRe: Inserting IMAGE FILES OR JPG,BMP file into MS-ACCESS TABLE Pin
M Riaz Bashir13-Aug-11 1:07
M Riaz Bashir13-Aug-11 1:07 
Questioncode calibration in the wiimote Pin
Trieu Hau12-Aug-11 15:36
Trieu Hau12-Aug-11 15:36 
AnswerRe: code calibration in the wiimote Pin
OriginalGriff12-Aug-11 21:27
mveOriginalGriff12-Aug-11 21:27 
AnswerRe: code calibration in the wiimote Pin
DaveyM6912-Aug-11 23:59
professionalDaveyM6912-Aug-11 23:59 
AnswerRe: code calibration in the wiimote Pin
Eddy Vluggen13-Aug-11 0:27
professionalEddy Vluggen13-Aug-11 0:27 
QuestionCould not retrieve schema information for table or view ! Pin
nassimnastaran12-Aug-11 10:30
nassimnastaran12-Aug-11 10:30 
AnswerRe: Could not retrieve schema information for table or view ! Pin
nassimnastaran13-Aug-11 2:26
nassimnastaran13-Aug-11 2:26 
QuestionAppend to file that is in use? Pin
sheldons12-Aug-11 6:15
sheldons12-Aug-11 6:15 
AnswerRe: Append to file that is in use? Pin
SledgeHammer0112-Aug-11 6:47
SledgeHammer0112-Aug-11 6:47 
AnswerRe: Append to file that is in use? Pin
jschell12-Aug-11 8:20
jschell12-Aug-11 8:20 
AnswerRe: Append to file that is in use? Pin
Roger Wright12-Aug-11 19:29
professionalRoger Wright12-Aug-11 19:29 
AnswerRe: Append to file that is in use? Pin
jschell13-Aug-11 7:01
jschell13-Aug-11 7:01 
AnswerRe: Append to file that is in use? Pin
Oludayo Alli16-Aug-11 4:20
Oludayo Alli16-Aug-11 4:20 
AnswerRe: Append to file that is in use? Pin
RichardGrimmer17-Aug-11 5:46
RichardGrimmer17-Aug-11 5:46 
QuestionC# OOP Question: Best way to setup these classes? Pin
Goalie3512-Aug-11 4:46
Goalie3512-Aug-11 4:46 
I'm somewhat new to OOP & having a little trouble setting up some classes. Here's a quick little background on my project:
--------------------------------------------
Basically, I need to create some objects for working with excel similar to that of the excel objects within the "Microsoft Office Object Library" (I'm using the ms open xml sdk kit, which seems to require a little more work than the ms object library). In particular, I'm looking to create 3 objects:
-Workbook
-Worksheet
-Range

-My Workbook class would contain methods such as "OpenWorkbook" and "Save".
-My Worksheet class would contain methods such as "OpenWorksheet", "InsertWorksheet", and "CopyWorksheet".
-My Range class would take a range of cells and contain methods for formatting that range such as "FontColor", "FontSize", etc.
-----------------------------------------------------

My issue:
I need to pass around properties from object to object but unsure on how to do so in the cleanest fashion. For example, within my Workbook class, I declare the following property:
public WorkbookPart WbPart { get; set; }

I will then need to use this "WbPart" property within my Worksheet class. For example, to insert a new worksheet, I need to use the following:
WbPart.AddNewPart<worksheetpart>();

My question
What's the best way to pass around these properties from class to class? Should I create a base class for this or something, and if so, how would I create this base class (I'm unfamiliar with base classes)?

Thanks.
AnswerRe: C# OOP Question: Best way to setup these classes? Pin
BobJanova12-Aug-11 6:00
BobJanova12-Aug-11 6:00 
GeneralRe: C# OOP Question: Best way to setup these classes? Pin
Shameel12-Aug-11 6:06
professionalShameel12-Aug-11 6:06 
Questionload big image in program Pin
Mohsen Shahindust12-Aug-11 4:24
Mohsen Shahindust12-Aug-11 4:24 
AnswerRe: load big image in program Pin
Blue_Boy12-Aug-11 4:31
Blue_Boy12-Aug-11 4:31 
GeneralRe: load big image in program Pin
Matt Meyer12-Aug-11 4:39
Matt Meyer12-Aug-11 4:39 
GeneralRe: load big image in program Pin
Mohsen Shahindust12-Aug-11 5:01
Mohsen Shahindust12-Aug-11 5:01 
AnswerWhat's the image for? Pin
MicroVirus12-Aug-11 4:43
MicroVirus12-Aug-11 4:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.