I would like to do that. Find the board on-screen that convert it to Color Grid on a picture. I have tested few things but they did not work. It randomly draws white and greyish squares instead I would like it to create what it reads off the screen.
Private Sub PictureBox1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint
Dim img As New Bitmap(PictureBox1.Width, PictureBox1.Height)
Dim gr As Graphics = Graphics.FromImage(img)
gr.Clear(Color.White)
[Code] .....
I'm trying to accomplish is having a 20x20 pixel image show up multiple times as determined by the grid selected. To keep things simple, what I'm trying to do is create a 9x9 grid of a image onto a form. I'm assuming that a picture box is the way to go, but don't know how to make that happen or if it's even possible.
So it would go something like this:
2D array already assigned: Sub ShowGrid() For rw As Short = 0 To 8
[Code].....
But instead of using a text box with values, I want to show a grid of a small image file, like cup.png which is 20x20 pixels or whatever, so what would show up on the form in this case would be a 9x9 grid of the image file over and over to create a grid.
Then the next step I hope to accomplish is to have that 20x20 square picture hold the grid(x,y) value for a mouse click. So if the image at grid(3,5) is clicked, it will give me that value, 3-5.
I need to plot some analog values read from the serial port.I plot them in a picturebox starting from left. When I reach the end of the control at the right side I shift all values to the left of a point and I plot the new point at the right, (I have some flickering but it could be acceptable). This is my plotting control.My problem is that I have to clear the control (picturebox) in order to plot the shifted graph, but the method Clear of the Graphics class clears everything inside the picturebox, even my grid.How can i make always visible a grid "in" my picturebox?
1.a transparent image with a grid over the PB? (the clear method cannot remove it)
2.an image with a grid below the picturebox that must be with a transparent background to make visible the grid?
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.
I want to replicate what I have with a Mac application. I want to fill the background area of a PictureBox with grids as shown in the following screenshot (right below the blue arrow).What I have is a simple translation of the code that I use with this Mac application to create the background area, which doesn't quite work.Private Sub PictureBox1_Paint(ByVal sender As System.Object, ByVal e
As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint Dim g As Graphics = PictureBox1.CreateGraphics() Dim i, j As Integer For j = 0 To Math.Ceiling(PictureBox1.Height / 20)
[Code]...
Onion is a recent refuge from Mac OS X and hates Mac App Store. System: Windows 7 x64
I have used VB (versions 2 - 6) through many years; however, I am crash-course training myself into the VB2008 / VB2010 world kicking a screaming. I would like suggestions as to what SQL database access method should I focus more on in my learning process without making me feel that I'm a million years behind. I know I have WinForms where I can create a datasourse and drag / drop fields or tables on a form to create a grid (not really what I'm looking for).
My trouble isn't so much designing the form but in how I access the database. Theres XML, LINQ to SQL, ADO.NET, and many other methods. Not only do I need to grasp these methods quickly but I also need to know what type of projects I should create. What I mean is...I was thinking that I would design a WinForm app; however, I see that there are WPF apps and others to chose from. This is getting deep. I know it depends on the project that I'm working on. My plans are to write an app based off of either an SQL Express 2008 or SQL Server 2008 database. This first app will be standalone for now but may later become multi-user. I know I'm far behind on my learning curve coming from VB6. I have read a bit on VB2005 / 2008 / 2010. I own both VB2008 and VB2010. I use VB2008 at work. I know ADO.NET is still alive but by what I read online, it's a dying method and is only kept for backward compatibility. XML and LINQ to SQL and other methods are all pretty new to me.
I am trying to create a context menu that will only appear over a grid but I am having difficulty. Below is what I've tried ( was also declared at the form level but did not make a difference):
I'd like to create a visual 2 dimensional grid (x,y) which contains an array of booleans that I could refer to by the 'coordinates' of the grid, and could actually SEE the grid on a form and work with it. for example:
If grid(10,20) = True Then Show(BlackSpot, grid(10,20))
I'm creating a program for a bookstore & I'd like to create an "inventory table" using the DataGridView function. I've created a form with 2 tabs for the bookstore clerk. I'd like to have a new row created once the information for a new book is entered.[code]
how can I create a grid with a cell with multiple data.I want to Display Product Name,ProductID and Price in one cell.How can this be done in VB2005. [URL]
for example if we have add a product to that data grid and then we have add another product, i want that another product places at under the 1st product in that data grid and if we add the same product then just the quantity have increase.. TQ so much.. and the field in that top column data grid is..
how can i implement a pre vb.net style snap to grid effect on a panel (at design time)?if you remember, you start dragging a control + the grid has a (gravitational) pull on the control
How to create composite grid. ie , i need all the features of gridview in the Framework 3.5 and above,but also need to include some other functionality to that grid.please suggest me what to do . if possible please share sample code.
I want to create a grid of checkboxes dynamically on my form for example the user may key in 16 which is a 4x4 grid of checkboxes or 81 which is a 9x9 grid.my code seems to be generating the correct values but the checkboxes dont go to the correct location on the form
Public Class Form1 Public NumberOfInputs As Integer = 81 Public CheckBoxArray() As Control
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.
I want to create a reusable user control which contains a date time picker in asp.net. Need to add this user control in a grid view as column.While clicking the column,date time picker has to be displayed.Which is the suitable method,Creating the component or creating the user control.Also want to know,How to add this component in to the toolbox?
I need to create a Digital terrain model from ESRI ASCII grid format into an array. First I need to use the column and row values (from the header information) to read into my file to specify which values to put into the array. I think i have to use both counters simultaneously, and although Ive read in the first line (columns) I can't get the next line in. Do I have to use a counter under a different name, and can I do it in a nested loop?
vb.net Private Sub Input_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Input.Click dlgOpenASCII.ShowDialog() filename = dlgOpenASCII.FileName
i create usercontrols in vb.net txtbox,button,namelist edit grid and userform. all contrils working properly. but user form not working. how to use this userform.
I'm trying to use the code here [URL]. To create a zoomable pic box but is it possible if I could create a 'control' from it that I would then be able to drop onto the windows form.
I am just wondering how i can create a picturebox array like i could when i copied and pasted another picturebox in VB6 and it asked me if i want to add them to an array. Doing so made them code like this:
Private Sub Form1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseDown Dim pb As New PictureBox pb.Location = e.Location[code]....
It does that you click on something in the form then it will create a Picturebox.Okay what I want more is this:
1. It should only can be made one picture box every 32x32 like this:
If you dont know what I mean then just forgot it but please try.
2. When I right click on the mouse the Picturebox should be deleted.
I'm using this snippet to create a blank image in a picturebox, but is it possible to have the image coloured so that I can see it. (I'll need to colour it later anyway).
.Image = New Bitmap(newPictureBox.Width, newPictureBox.Height) 'blank image.
Also if it is possible, I intend to draw lines, rectangles on the image (hopefully) and save the lot, so would I lose the colour, or would it get saved, or does it depend on what it gets saved as?
I'm creating an app for school to mark targets that we shoot in shooting competitions. Now I have created a dll in C# to do the marking bit and it works.Now the problem I am facing is that my app gets a image from the scanner (A4 size @ 600 dpi) and putting it in a picture box.There will always be 20 targets to be marked per image( However I want this to be able to vary to provide flexibility) My dll accepts a image that contains a single target so I need 20 individual images of targets.Create Drag able Rectangles in the picture box and crop the images from there . There are 2 ways of accomplishing this.
#1 Create a Control and set it's parent to the picturebox. (This should provide a location relative to the picturebox Right ?)
#2 Use only GDI (eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeew)
so my choice would be to create a control except I have never created any control from scratch and I have no idea how to do the visual drawing part of a control.