thank you for replying....
this is difficult for me understand what this pseudo code suggest.
suppose i want to draw 2 rectangles having height and width 300 and 300 and join them by a line of 8000 obviously it will go out of bounds i.e it will be outside of visible area ,i want them within picture box no matter how much is the value .plz send some sample codes in vb.net ,...
User Profile
Collapse
-
Yes ,that is exactly what i want to say that drawn lines goes out of visible area,
it will be very helpful for me if u can let me know how to this,also if some sample codes.thanku for replying....Leave a comment:
-
Well thank u for replying once again ... this is my code i had done in one of module having another form that contain picture box on which i had to draw.
[code=vbnet]
Sub Column_Draw(ByV al DrawControl As Graphics, ByVal DrawStr As String)
Dim NMAXX,NMAXY,NMI NX,NMINY As Single
Dim Dc,ds As DAO.Recordset
Dim dss As DAO.Recordset
Dim X, Y As Single
DrawControl.Sca leTransform(-1,...Leave a comment:
-
I m not using DirectX ,..just Graphics Object..Thank u for replying
i tried your suggestion but it is not working,After that i used picture on my form but still drawing is going beyond the area of picturebox on my form....Leave a comment:
-
Well i use this
g.TranslateTran sform(0,Picture box.height) where g is Graphics...But This is of no use can u suggest me some sample codes....Leave a comment:
-
Coordinate system to bottom left
Hello.
I want to set my coordinate-system-origin (0/ 0) to the bottom-left corner.
How is that done in VB.net the best way?
thanks. -
graphics in vb.net
I need someone to make an example of how to create a graphics window in VB.net 2008.
I understand the basics of how to draw a rectangle and lines etc.
What I need is an example of how to make a window that goes in a form that does the following:
1. When the application is run, the form has a graphics area within the form (not the entire form) colored white.
2. Two text boxes (not in the... -
Then it Will give us a diagonal Connection....W ell Thank u ........Leave a comment:
-
Well thanks for replying....... .Actually in my project i have 2 forms one consist of a datagrid and other form consisting of a picture box,,,,,and now when you enter data in first form you can see the drawing of your data in the other form.
also i am using vb.net for first time so if u can help me what should i use for drawing lines ...... system.drawing. graphics or system.windows. forms.paintEven targsLeave a comment:
-
Object reference not set to an instance of an object.
I am trying to draw line.....Actual ly these codes were previously in vb 6...i tried to change them in vb.net....but every time i try to run the application i got this error ."Object reference not set to an instance of an object"...plz help me regerding this error....here are my code
Code:Sub BeamDraw(ByRef DrawControl As PaintEventArgs, ByRef ds As DAO.Recordset) Dim Y5 As Double Dim X5 As Double
-
Actually Data is going only in Plinth Table whether i select Ist option or 2nd option...this is my problem..n now it seems that i m going to pull my hair.....my codes are right but what is the prob i don't know.......
n also this short armed VB is vry dangerous....he he...Leave a comment:
-
Well....Thank u for replying....... .I can't drop msflex grid as i had used it in my whole project...n ...i don't understand when you say why are they continuing with Vb As far as i think VB is like Trynasouras Rex in the field of Languages.....I have two Radio buttons..i want when i click 1st option the data in the datagrid fits in the plinth beam table n when 2nd option is clicked data fits in Floorbeam table.....n code for both radio buttons is......Leave a comment:
-
Control arrays
i am new to vb.net......i have two radio buttons associated with msflexgrid version 6 in vb.net ..can any body help me out how can i create control array...In vb6.0 it was it was ** easy ....but i don't why MS decided to drop this facility from VB.net... In vb 6.0 it was like this
Code:Select Case Index Case 0 EntryOption = 0 Case 1 EntryOption = 1
-
i don't have .net code......I want to migrate my vb6.0 code to vb.net ....Leave a comment:
-
-
migration vb 6.0 to vb.net
Plz if any one can hlp me ,,i want to change this vb 6 code to vb.net after upgrading i had so much trouble about coordinate system changes in vb.net......... ...here is my code...
[code=vbnet]
Private Sub AddColumn(DrawS tr As String, szPos As String, DrawControl As Control)
'drawstr contains name of column to be drawn
'szpos contains name of column with respect to which the column is drawn
'Add column... -
Abhiraj Chauhan replied to GridView Error on Select: Object reference not set to an instance of an objectin .NETAny Idea which line is Causing it to say that..
Once you get the line number, you can then see which objects on that line are being dereferenced. The exception is thrown because one of the objects being dereferenced is not yet initialized.Leave a comment:
-
Thank you replying, sorry to be late..this is the line that is Causing me so much of problems....
Dc = CurrentDb.OpenR ecordset("table Name", DAO.RecordsetTy peEnum.dbOpenDy naset)...Leave a comment:
-
Object reference not set to an instance of an object
here are code in vb.net when ever i try to delete entry... this error occurs . Null reference Exception was unhandled....Us e new key word to create an object reference.Plz if anyone can help how can i solve this problem.
Code:Private Sub Deldata(ByRef dfname As String) Dim Dc As DAO.Recordset CurDb = CurrentDb Dim SSTR As String Dc = CurrentDb.OpenRecordset("tableName",
Last edited by Curtis Rutland; Oct 1 '08, 01:34 PM. Reason: Added Code Tags - Please surround your code with [CODE] and [/CODE]
No activity results to display
Show More
Leave a comment: