When App Loads It Draws A Grid On PicCanvas

May 23, 2010

I am building a VB application (Visual Studio 2008). I have a drawing app where a user can draw out a 2d house-floorplan.When the app loads, it draws a grid on a picCanvas. Everything works the way that i want it to except that the lines don't "snap-to-grid" as they are being drawn.I suspect that the problem is in the picCanvas paint sub. [code]

View 1 Replies


ADVERTISEMENT

Refresh - Program, Draws A Rectangle, Marks The X & Y Axis, & Plots A Dashed Line Grid

Dec 16, 2009

This is simple program, draws a rectangle, marks the x & y axis, & plots a dashed line grid. However, the grid sub has to be called twice - only then will the grid line be visible. Why does this happen?

CODE:

View 1 Replies

IDE :: Zooming & Editing In PicCanvas?

Mar 4, 2011

i was trying a painting applicaion in which i am trying Zooming and editing.it means after zooming i will edit or draw the some thing in the canvas.i i am able to do that but th problem is scalling. here i ma using the translate transform to zooming.

after zooming if i draw somthing my mouse positions are not correct.

[Code]...

View 6 Replies

Program That Draws An Average?

Jul 11, 2010

I am creating a project that can transform a value numbers to a graph and when I run it it doesn't draw anything.

[Code]...

View 5 Replies

Creating A Class That Holds/draws Some Graphics?

Jan 13, 2011

Ok, I want to create a class that will handle a special rectangle graphic.In my form, I want to have two of these special rectangles.So, basically, I need two instances of that class in my form, right?I manage to initialize two, alright. But, how exactly am I supposed to manage drawing/graphics etc in a class, and the results to be displayed in my form?

View 2 Replies

VS 2008 Displays A List Of Previous Draws

Apr 7, 2010

In my application for checking Irish Lottery numbers I have a form which displays a list of previous draws. The form contains a listview which is populated from a setting in my.settings as follows: [code] I would like to replace "Wednesday" with "Wed" before adding the item to the listview. I have tried using strings.replace to acheive this in various parts of the above code but each time the code runs the listview still displays the full day.

View 2 Replies

Making An Application Where User Draws A Shape On A Picture Box?

Dec 25, 2010

I'm making an application where a user draws a shape on a picture box( this will be saved on a bitmap image), then another user has to draw on that shape (=follow it ) . if the 2nd user goes too far from the line then an error message will appear.

for example( in case i couldn't clarify this well!)the 1st user draws a a vertical line, the 2nd user has to follow it, if-while drawing on it- he gets too far horizontally, there would be the error.

I'm currently thinking of comparing every point by the 2nd user to its equivalent in an array containing the points by the first user.

View 5 Replies

Restoring A Window's Previous Location / State, It Draws Twice?

Jul 7, 2009

recommend the cleanest way to save / restore a winform's location and state? For some time now I've been using a method similiar to what I posted below (based on the CodeProject: [URL]..The problem with this method is that when the form loads, it is drawn in an initial location, then moved / maximized afterwards. The effect creates somewhat of an eye sore watching the window draw, then quickly update... but in Vista it is a lot more obvious.

What I would like to do is restore a form to it's previously saved location / state invisible to the user, then show it once it's where it needs to be. Or, just know of the ideal way this is supposed to be done - specifically in Vista.

[Code]...

View 4 Replies

Draws Text On A PictureBox Using A Font That Is Already Installed (registered) In System Fonts?

Nov 23, 2009

I'm working on a program (Under Visual Basic .NET 2008) that draws text on a PictureBox using a font that is already installed (registered) in system fonts. I'm wondering how can I perform the same but with a font that is not already installed on system, by adding this font file (*.ttf usually) to my solution explorer and use it in my program, given that this font file must be included in exe file.

View 5 Replies

Make A User Control That Draws A Line And Adds Transparency Over A Form

Nov 12, 2010

I am an intern at a company doing Drawing Tools for their program. My supervisor is currently having me just make a user control that draws a line and adds transparency over a form. (I started this internship very early, so my knowledge is very limited compared to what it should be for a standard intern)

This is what I have so far:

Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
If MyBG Is Nothing Then
MyBG = New Bitmap(Me.Width, Me.Height)

[CODE]...

View 5 Replies

Setup A Login Form Which Draws The Username/password From An Online Database?

Jun 15, 2011

I'm trying to set up a login form which draws the username/password from an online database but keep getting the same error(shown in attachment).

Imports System.Data.SqlClient
Imports MySql.Data.MySqlClient
Public Class LoginForm1

[code]....

View 6 Replies

Exit Grid With Ctrl-TAB When Grid Is On A Tabpage (onkeydown Works When Grid Not On Tabpage)?

Jun 2, 2010

winforms .net 3.5 Ultrawingrid 9.2 In my subclass of Ultrawingrid.Ultragrid :

[Code]...

This works fine. But when the grid is dropped on a TabControl tabpage, the ctrl-tab looks very different to the sub above. e.keycode is seen as controlkey {17} I realize that by default cntrl-Tab moves between tabpages. I need to override this behavior. My thought is I probably need a subclass of the tabControl which will pass the keycombo through just as the form does but I confess to being clueless as to how to accomplish that. I tried to override the onkeydown of a tabcontrol subclass and just issuing a return and not and base call to onkeydown if the ctrl-tab combo was pressed but it seemed to see the e.keycode as controlkey as well.

[Code]...

View 1 Replies

Graphic Repaint / Refresh - Draws A Circle Using A Timer - Circle Gets Displays It Flickers

Jun 8, 2011

I have developed a program which continuously draws a circle using a timer. Now every time the circle gets displays it flickers and which is because i have used me.refresh. Is there any other way to avoid this flickering.

Here is my code
Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles Timer1.Tick

Me.sweepAngle += 1

If Me.sweepAngle = 360 Then

[CODE]....

View 4 Replies

MVCContrib Grid Overriding RowStart And RowEnd - The Row Start And End Are Rendered Above The Entire Grid

Jan 26, 2011

i'm using the MVCContrib grid trying to override the start of a row and the end of a row. It's not working as advertised. This is an extract from my MVC2.0 view.

<div id="chargestable">
<br />
<% With Html.Grid(Model.InvoiceListingInformation)
.Columns(Function(column)

[code]....

The stuff i put in the begin row and end row functions is being rendered above the grid entirely.(PS i can't just use the attributes as i need to wrap the row in another html element)

View 1 Replies

Showmodaldialog - Display The Text Entered In The Grid - Access The Grid In Child Window

Mar 11, 2010

i have a prob that i have a gridview on the parent window. when i open a child window using showmodaldialog, i enter some data in the textboxes. now when i close my child window i want to display the text entered by me in the grid. i want to know how can i access the grid in child window

View 1 Replies

Make A Over Sized Grid Or A Grid Larger Then Viewable On Screen Resolution?

Jun 9, 2012

Trying to understand the basics of grid design so how would I make a over sized grid or a grid larger then whats viewable on my screen resolution? Below is a simple chart describeing what i want to make roughly. I would like to build the grid in "blocks".[URL]..

View 16 Replies

Bind Datatable To Grid But Unable To Fill Grid

Apr 15, 2012

The below code was written to bind the datatable to the grid, but i am unable to fill the grid.I am unable to fill the datagrid. [code]

View 1 Replies

C# - When Click On Grid Row To Get Content From Specific Column Of The Grid?

Mar 2, 2010

I have UltraGrid and i need when i click on grid row to get content from specific column of that grid. For example if I click in cell of fourth column then i need to get value of first column of the same row where i clicked.

View 1 Replies

Data Grid View Header Grid Color

Jan 14, 2010

This is a VB .NET application where we are showing the output of a SQL statement in a Datagrid view. using .NET 2005.We need to get the seperators of the headers on the grid control to be the same colors as the GridColor on the form. See the picture below:We've tried looking through all of the properties of the DataGridView control, and found some interesting things that looked promising such as the DataGridViewAdvancedHeaderStyle, and DataGridViewHeaderBorderStyle, but none of it seems to allow you to change the colors on it.Does anyone know how to do this without remaking the entire thing with a GDI+ control?

View 2 Replies

DB/Reporting :: Subtotalling Grid Per Row Using Flex Grid?

Dec 26, 2008

need to have a summation field in each row of a grid in visual basic. Each row needs to calculate the remaining quantity of its row and all other rows beneath it. Thus the subtotal field in the 1st row would equal the sum of the shown quantity field for the entire grid.The next row would include its value and all those beneath it. Its subtotal value would be less than the subtotal of the row above it (by the quantity value of the 1st row). My code for the grid is very simple I just can't figure out how to add this iteration.

View 3 Replies

Draw A Grid And Make A Map Using The Items On The Grid

Dec 28, 2009

I have an Idea but im not sure how to get started... Its a map maker... There will be a panel on the side for items and it will draw a grid and you can make a map using the items on the grid.

View 5 Replies

Net Property Grid. Is There A Way To Let The Grid Manipulate Object In Different Way

May 31, 2009

As I understood , The property grid is given an object which it can manipulate by extracting its Properties using reflections.

My problem is that I have a set of Parameters that is determined during run-time , thus I can't staticly compose a class with properties to represent this set.

I have two idea in mind to solve this problem but both are complex and will probably consume lot of time , infact i will say they are not practical under my time constraints. One is to use Reflection Emit in order to define a class dynamically and the other is to dynamiclly build a C# source file and then compile it using CodeDom.

Can Property grid behave in a different manner( other then extracting the Properties of an object using reflections ) that can suite my problem?

I want to say that the reason I went to the property grid from the begining was its ability to provide realy nice Data Retrieval UI for common types.For color you autometically get a palette , For dataTime you automatically have a nice calender. I would like to get those things automatically If possible.

View 1 Replies

Scroll The Grid, So That The Row That The Program Is 'looking At' Is In The Middle Of The Grid?

Jan 18, 2011

Visual Basic 2005 I have a DataGridView on a form. It's bound to a DataSet, and I'm working by way through the dataset doing various things to the records based on the "status". What I would like to do is scroll the grid, so that the row that the program is 'looking at' is in the middle of the grid.

View 1 Replies

Silverlight Data Grid With Grid Splitter?

Oct 13, 2011

I have the below code that i am trying to have two datagrids with a grid splityter in the middle. The split seems to be working fine but the issue i am having is when I populate the datagrid it is growing in height and changing the splitter instead of leaving the height alone and adding scroll bars.

What simple thing am I overlooking?
<Grid x:Name="gdHistory" Grid.Column="0" Grid.Row="2" >
<Grid.RowDefinitions>

[code].....

View 1 Replies

Vb 2010 - Map Editor - Making The Grid Invisible If De-deselect The Option "Grid On"

Jun 12, 2011

I have a few problems with making a map editor, how to make one reply and ill give you my msn well actually this problem: its not making the grid invisible if you de-deselect the option "Grid On" because the rect's have already been drawn. So I need to know how you can delete them.

[Code]...

View 4 Replies

[2005] VSFlexGrid 8: Create A "sub-grid" Inside Existing Grid Control?

Feb 13, 2009

I have a FlexGrid control in my Windows application that contains a row of data. The data in this row is related to even more data that won't all fit on the same row. For Example:The main data row contains Username, Last Name, First Name, Middle Name, E-mail Address, Phone Number, etcA secondary row to this might contain user permissions to certain resources, such as File Server Access, FTP Access, Remote Access, etc.Now, I can use the subtotal and outline capabilities of the VSFlexGrid to make a second row, but the column widths are still bound by those set for the main data row. Additionally, I can't put real "headers" on the supplemental data. I have to fake it by creating an additional row, setting the background color of that row to gray, putting the header strings into those fields, and then adding the next row with the actual details.

What I would like to do is create separate grids for these secondary rows and "embed" them in a blank row of the existing FlexGrid control directly under the related main data row. This would give me the ability to use a different number of columns, to format these columns independently of the "parent" FlexGrid settings, as well as put a new header row for the new grid that identifies its data.In other words, I'd like to somehow make a "child" grid that's related to a particular row of the "parent" grid (not the entire grid itself). I don't know if this is possible, and if there is another way for me to accomplish this goal, I'm all ears. However, if it IS possible, I'd love some advice on how to implement it.

View 2 Replies

Second Form Loads Only Once?

Jun 11, 2011

Within the program, there is a button that opens a file inside of a second form ( DocViewFrm ) and it works fine the first time around. Within this new window, there is a button that uses Me.Close() to close the window and return to the main window. Upon the attempt to open this second form a second time, the program crashes on the Me.DocViewFrm.Show() line. The error message reads:

An unhandled exception of type 'System.ObjectDisposedException' occurred in System.Windows.Forms.dll
Additional information: Cannot access a disposed object.

[code].....

View 9 Replies

Shockwave Loads 20 IE's?

Feb 12, 2011

I put a shockwave loader into my VB.Net application. When the shockwave loads, it opens about 20 different IE windows and says page cannot be found, while correctly loading the shockwave movie into the application. It's bizarre... how do I fix this? Not even sure if I should post this in this forum or a flash forum.

View 5 Replies

VS 2008 EXE Loads Twice?

Oct 1, 2010

I have set up a scheduled task on startup in WINDOWS 7. This loads my app and displays information from .txt file sources. Mostly it functions correctly but occasionally loads the program twice or even three times thus creating errors trying to open files that are already in use. I seem to remember there is some way to load an .exe once only?

View 2 Replies

Add ToolStripMenuItems When Form Loads?

May 27, 2011

I have this code to add ToolStripMenuItems when my form loads.

Dim i As Integer = 0
Dim stanicastring As String
While i < ListBox1.Items.Count

[Code]....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved