Click here to Skip to main content
15,905,504 members
Home / Discussions / C#
   

C#

 
GeneralRe: insert datetime to database Pin
OriginalGriff28-Dec-09 4:13
mveOriginalGriff28-Dec-09 4:13 
Questionfetch distinct record from the custom data type in ado.net entity framework Pin
Pankaj Saha27-Dec-09 22:29
Pankaj Saha27-Dec-09 22:29 
Questionhow do i differentiate between the two tables Pin
@nisha 2n27-Dec-09 22:24
@nisha 2n27-Dec-09 22:24 
AnswerRe: how do i differentiate between the two tables Pin
ProtoBytes28-Dec-09 10:52
ProtoBytes28-Dec-09 10:52 
GeneralRe: how do i differentiate between the two tables Pin
@nisha 2n28-Dec-09 21:24
@nisha 2n28-Dec-09 21:24 
QuestionHow to extract image content from a tif/jpeg/bmp images Pin
RameshwerE27-Dec-09 22:15
RameshwerE27-Dec-09 22:15 
AnswerRe: How to extract image content from a tif/jpeg/bmp images Pin
0x3c027-Dec-09 22:22
0x3c027-Dec-09 22:22 
QuestionWhy Dns.Resolve Method in C# is obsolete ? Workaround? Pin
ksaw12327-Dec-09 21:23
ksaw12327-Dec-09 21:23 
AnswerRe: Why Dns.Resolve Method in C# is obsolete ? Workaround? Pin
Mirko198027-Dec-09 21:52
Mirko198027-Dec-09 21:52 
GeneralRe: Why Dns.Resolve Method in C# is obsolete ? Workaround? Pin
ksaw12328-Dec-09 0:33
ksaw12328-Dec-09 0:33 
GeneralRe: Why Dns.Resolve Method in C# is obsolete ? Workaround? Pin
OriginalGriff28-Dec-09 2:23
mveOriginalGriff28-Dec-09 2:23 
QuestionHow to implement multicoulumn combobox in datagridviewcombobox? Pin
arj_agt27-Dec-09 19:02
arj_agt27-Dec-09 19:02 
AnswerRe: How to implement multicoulumn combobox in datagridviewcombobox? Pin
Ben Fair28-Dec-09 2:39
Ben Fair28-Dec-09 2:39 
Questionhow to make web based multipoint sdk application Pin
krunal2527-Dec-09 18:59
krunal2527-Dec-09 18:59 
AnswerRe: how to make web based multipoint sdk application Pin
nagendrathecoder27-Dec-09 19:58
nagendrathecoder27-Dec-09 19:58 
QuestionHow to check Internet Connection on different gateway Pin
Mayur27-Dec-09 18:42
professionalMayur27-Dec-09 18:42 
AnswerRe: How to check Internet Connection on different gateway Pin
Dimitri Witkowski28-Dec-09 4:51
Dimitri Witkowski28-Dec-09 4:51 
QuestionFractal Index Pin
self similar idiot27-Dec-09 11:32
self similar idiot27-Dec-09 11:32 
QuestionDo you know any ListViewItem samples ? Pin
Mohammad Dayyan27-Dec-09 9:21
Mohammad Dayyan27-Dec-09 9:21 
AnswerRe: Do you know any ListViewItem samples ? Pin
ProtoBytes28-Dec-09 12:20
ProtoBytes28-Dec-09 12:20 
Questionconnecting user controls to each other ( link them to gether) Pin
NoName_ark27-Dec-09 2:42
NoName_ark27-Dec-09 2:42 
AnswerRe: connecting user controls to each other ( link them to gether) Pin
Luc Pattyn27-Dec-09 3:03
sitebuilderLuc Pattyn27-Dec-09 3:03 
Hi,

1.
you need "wires" to interconnect input and output pins of your gates. So in your approach, why not create some "Wire" user controls (either arbitrary size and orientation, or a horizontal and a vertical having arbitrary length).

2.
I wouldn't use user controls at all for a drawing or CAD app; just a simple Panel onto which you add "electronic components", which would be instances of "Wire" and "SomeGate", both derived from "ElectronicComponent"; keep them in a List<ElectronicComponent>; give them a "Draw" method so they paint themselves on a given Graphics; use the Panel's mouse events to grab, move, resize them. Then add logic to discover which components are connected to which, so you get a circuit.

Suggestion: have a look at the source of some drawing app, maybe Paint.NET

Smile | :)

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

Merry Christmas and a Happy New Year to all.


GeneralRe: connecting user controls to each other ( link them to gether) Pin
NoName_ark27-Dec-09 3:11
NoName_ark27-Dec-09 3:11 
GeneralRe: connecting user controls to each other ( link them to gether) Pin
Luc Pattyn27-Dec-09 3:14
sitebuilderLuc Pattyn27-Dec-09 3:14 
GeneralRe: connecting user controls to each other ( link them to gether) Pin
NoName_ark27-Dec-09 3:20
NoName_ark27-Dec-09 3:20 

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.