cad sunny

cad sunny

  • 1.5k
  • 138
  • 21.7k

picturebox x,y axis co ordinates

Sep 17 2014 3:43 AM
Dear Vulpes,

this is littile intrested and simple project,plz help for this code
this is x,y axis interface like chess white grid and black grid interface.


1.data grid view1 with one coloumn and 4 rows without row and coloumn header for horizontal color selection like x axis 
2.data grid view2 with one coloumn and 4 rows without row and coloumn header for verticle color selection like y axis
3.datagrid view3 for 12 coloumns and 12 rows without headers for drawing grids like chess boxes(if user click on cell fired black rectangle again click its remove )
4.picturebox for x,y axis co-ordinate like chess box grids and show image

5.one texttbox1 for y axis (horizonal) for usng lines and textbox2 x axis for verticle lines 

now my question is
i select or apply two  colours in datagrid view 1 for example row1 is red color and row2 is black color
and also same colors select in datagrid view2

now i apply in datagrid view3 grid boxes like chessbox one is black grid and one is white grid.(datagrid view3 boxes are very small not big like graph)

and now user entered inpunts in textbox1 like below
12-A (A means datagrid view1 row1 selected color i e red color)
12-B(B means datagrid view2 row2 selected color i e blackcolor)
and aply using button1 it should be applied in picturebox1 horizonal colors shown.

also same for textbox2
12-A (A means datagrid view1 row1 selected color i e red color)
12-B(B means datagrid view2 row2 selected color i e blackcolor)
and aply using button2 it should be applied in picturebox1 verticle colors shown.

now u take button3 use click event
when i click button3 both textbox used pattern colors applied in picturebox and shows both verticle and horizontal line co ordinate together like chess grid boxes images

if i change in datagrid view3 grid boxes colors then also should change in picturebox images also and also change pattern in textboxes it should be changed when i click button3

plz help me for above code
if you have any un understanding article plz reply me i will explain you where you stuck,but plz help me.

this is using purpose is for textiles fabric display instant display how to design is created


Answers (2)