Interface And Graphics :: Create An Object And Make It Visible?

Dec 28, 2009

I tried to create a lineshape and make it visible when a timer ticks. Also tried to set everything that would matter when creating it(border colors and thickness etc)

But still, I got no results.

Code:
Dim line = New Microsoft.VisualBasic.PowerPacks.LineShape(CX, CY, ccx, ccy)
line.Parent = New Microsoft.VisualBasic.PowerPacks.ShapeContainer()
line.Enabled = True

[Code]....

View 1 Replies


ADVERTISEMENT

Interface And Graphics :: Link A Class / Object To An Interface?

Apr 21, 2010

I'm trying to make a .dll that contains a lot of basic functionality that a program can use. Currently i am trying to use interfaces to make a lot of this functionallity independend of the program using it but i hit a snag. The Basic idea is that a programmer will create his own object using the interface discribed in my .DLL file. Then implements those functions as he likes. He can then instanciate a controller (found in the same DLL) and sends his custom object implementing the interface to that Controller. The controller can then be started and will take over all the work. I do not know what type of object is send to the controller and idealy i want to program it in such a fashion that i shouldn't care as long as the object send implements that interface.In code I am trying to achieve the following: (quite simplyfied)

.Dll:
Code:
Public Interface MyInterface '<----Decleration of the interfaceFunction GetData() As Integer
Function SetData(Data As Integer)
end interface

[code]....

this propperly. I know that the second i set the interface adaptor in the Controller VS comes nagging that it can not be converted to a "MyInterface" Class. Obviously i am doing something wrong. I can change the datatype that the controller expects to the "MyController" type but that would completely ruin the whole idea of flexibillity. I am hoping someone sees what i am trying to do and can point out where i made the thinking error.

View 6 Replies

Interface And Graphics :: Create A User Interface In A Game Such As The Application XFire Using VB?

Jan 12, 2010

how to create a user interface in a game such as the application XFire using Visual Basic?

View 3 Replies

Interface And Graphics - Random Object Movement

Sep 27, 2010

This is another question about my galaga like game. I want the enemies to move to a random spot one pixel away at each tick of a timer. How would I go about doing this?

View 6 Replies

Interface And Graphics :: Change The Backcolor Property Of An Object To A Rgb Value?

Dec 8, 2004

How can i change the backcolor property of an object to an rgb value?

i do as it says in the help:

Code:
dim ink as long
ink = rgb(233,126,190)
lblInkPot.BackColor = ink

but i get the error "Value of type "Long" cannot be converted to "system.drawing.color"", but it specifically tells you in help to use "long"...

View 4 Replies

Interface And Graphics :: How To Create Spreadsheet In VB 2005

Aug 28, 2008

im working on my school project to create an application with a spreadsheet form.. some forums advice me to use "Hosting Office in .NET applications" but its not what i need.. I've already tried to use the datagridview but i cant add rows..(unless the user input a data in every row). please tell me how to manipulate the datagridview for me to able to add rows and columns automatically...

View 6 Replies

Interface And Graphics :: Best Way To Make A 'tile Selector' Box?

Jan 16, 2011

So now I will try to make something more complex, still playing around with this graphics thing.I want a picturebox to display a tileset (a bunch of 32x32 tiles normally used for creating game levels etc), the picturebox is inside a container (which has autoscroll ON). The picturebox is larger than the container, so the container will make scrollbars automatically.Now, I need to be able to choose a tile or multiple tiles (if I click & drag the mouse)Basically I want to draw a 32x32 "red" box over each selected tile (so the user knows what tiles are selected).So first of all, I need to know when the mouse clicks the picture. Good. It works.Now, I need to know which 32x32 tile was clicked. Well, I think I can calculate that just fine.BUT, what if the user drags the mouse while clicking on a tile? I want to support multiple tiles selected, but I am clueless about tracking what tiles were chosen.If we solve that problem, I would have another curiosity: You know the "red boxes" that tell you which tiles are selected? What would happen if I dragged the scroll bar? I need the redboxes to move along with the picture, and hide if they go to an invisible area.

View 6 Replies

Interface And Graphics :: How To Make Picturebox Transparent

Aug 23, 2009

i am making a program with graphics and im using a picturebox for a button. The image inside picturebox is transparent .gif. The problem is that i don't know how to make picturebox transparent. I searched the internet but all exaples didn't work. Does someone know how to fix this problem?

View 4 Replies

Interface And Graphics :: Make A Thumbnail From An Image?

Jul 11, 2004

I am trying to incorporate in my vbdotnet application a form in which I would like to make a thumbnail from an image. So what I have is two picture boxes, one with the source image and the other with the destination image, I would like to crop the image from picture box 1 and display it on picture box 2, but the way I wan to crop it is not giving the coordinates of the selected area box but to simulate a selection area box in which the mouse can move the box and select the area of the picture to be cropped. This selection area box would give me the coordinates i need in order to proceed the cropping. The problem is I don't know how to create this selection area box. It is like doing the cropping on a graphic design software like Macromedia Fireworks, Adobe photoshop, even paint.

View 5 Replies

Interface And Graphics :: Create A Table As Displayed In The Image?

Nov 19, 2011

I want to create a table as displayed in the image in VB.net. How do i do it ?? I tried LISTVIEW with Gridlines, but it has both horizontal and vertical lines, but in the image there is only Vertical lines.

View 2 Replies

VS 2008 Create A Bitmap Object From A Graphics Object?

Jun 3, 2009

i have drawn on a e.graphics object and now want to transfer the drawn stuff onto a bitmap object how can i do this?

View 2 Replies

Interface And Graphics :: Design - Make A Form Transparent

Nov 18, 2010

i make a Form transparant where i dont want form background. So say like i got a round form and i can transparant the white background of the round even possible?

View 6 Replies

Interface And Graphics :: How Do You Make A GUI Program That Is Not A Square/rectangle

Jan 31, 2010

I can't seem to make a GUI in the shape a circle...

something other than square/rectangle.

View 1 Replies

Interface And Graphics :: How To Make A Color From Agrb With 3 Alphas

Jun 16, 2010

I have a red, green, and blue color that I am making with this method:

Code:
Dim Red1 As Color = Color.FromArgb(75, Color.Red)
and a brighter red:

[code].....

Any recommendations? I like the fact that 255,255,255 is white. Is there a way to create color by combining three colors that were made from argb? I may just have to make my 20 different colors set and then refer to them.

View 4 Replies

Interface And Graphics :: Make A Class For A Custom Button?

Jan 2, 2012

i want to make a class for a custom button for which the user of the class can choose his own images for Normal, mouse over and mouse down state.

View 5 Replies

Interface And Graphics :: Make A New Button For Each .exe File In A Directory?

Dec 12, 2008

im making a program that needs to make a new button for each .exe file in a directory? Kinda similar to PortableApps program that will recognize each program in the directory.

View 3 Replies

Interface And Graphics :: Find A Script To Create A Slider Button?

Feb 4, 2011

I'm trying to find a script to create a slider button.

View 2 Replies

Interface And Graphics :: Make Image Grey And Rectangle Area Colour

Jan 26, 2011

I am using the following code to place a rectangle around a form / form control, however what I want to do is make my screen grey and only the form / form control area be displayed in colour.

Code:

I have googled for ages trying to find something on this, but with no luck.

To illistrate this better they are using the same functionality in snagit 10, please see below link to a page that has a video link showing this (23 sec into video)[url]

View 4 Replies

Interface And Graphics :: Create Bitmap With Text And Transformation Generic - Error Occured In Gdi+

Sep 17, 2008

I am trying to create bitmap with my text and transformation. I am sure that there is no error in my code. Because this code is worked previously. Here is my code.

[Code]...

View 2 Replies

Interface And Graphics :: Create An Image That Is To Mimic A Single Clock Rotating Hand Within A Square Area?

Aug 20, 2011

I have to create an image that is to mimic a single clock rotating hand within a square area,and the user has to choose the width and speed of the rotation and the direction.i managed to create the square area with a hand inside,with this codes and variables,

(Dim Mygraphics As graphics = e.graphics
mygrqaphics.Draw Rectangle(pens.color x1,x2,y1,y2)

mygraphics draw line(pens.color,x1,x2,y1,y2),now i have to find codes and variables to rotate the hand or line within a square area.one point remaining constant the other moving.

View 1 Replies

Create An Image From A Graphics Object?

Sep 30, 2009

Is there a way to create an image from a graphics object?

View 3 Replies

Interface And Graphics :: Make The Contents Of A Form Expand Or Retract In Response To Moving Its Borders By Grabbing Them With The Mouse?

Jan 27, 2011

I have been trying to discover how to make the contents of a form expand or retract in response to moving its borders by grabbing them with the mouse, or by use of the 'Maximise' or 'Restore Down' controls.The explanation in �Help� concerning TableLayoutPanel, Panel, Anchor and Auto size doesn�t help much, especially as it I can�t get it to work.

View 7 Replies

How To Create Image Based On Graphics Object

Feb 26, 2012

In VB.NET, I need to create an Image based on a Graphics object I have. However, there is no method such as Image.fromGraphics() etc. What should I do then?

View 2 Replies

Interface And Graphics :: E.Graphics.Drawstring Length Overflow Page?

Nov 19, 2010

Im working on a project that needs to print a report of one client.Everything went smooth untill i came across my multiline input text data.When i display it in the PrintPagePreview the text go's outside my page. Even when im printing it only the halve of my text is displayed. I googled and looked everywhere but i can't get a clear fix for it.

[Code]...

View 3 Replies

Interface And Graphics :: Passing Bitmaps & Graphics To Subroutines As Arguments

Jan 22, 2011

I used to program with Visual Basic 6, so I have alot of old programs that I'm updating, plus I'm learning the new VB2008 methods. I'm writing a program that replaces the old "BitBlit" function which is no longer supported by Visual Basic 2008. It involves three picture boxes, one holds the sprite bitmap, a second holds the mask (silhouette) of the sprite bitmap, and a third has a background image.

[Code]...

View 3 Replies

Interface And Graphics :: System.Drawing.Graphics.DrawString On Other Window?

Aug 14, 2009

drawing text on a window which is not the current form's window.I remember doing this in Win32 api with getwindowdc(handle) to obtain a DC for the Window, then textout() on the DC.

View 2 Replies

Interface And Graphics :: Use A Graphical User Interface That Contains A Drag And Drop Form?

Oct 19, 2008

I'm working on a design project where I have to use a Graphical User Interface that contains a drag and drop form. It consists of having a window dropped on a wall. Both of them are images to scale. I would like to know what kind of code I would have to use to show the x and y coordinates of one of the points of my window when dragged so when I drop it, I'm dropping in it on the desired coordinate of the wall.

View 2 Replies

Interface And Graphics :: Creating A Class Holding Some Graphics?

Jan 12, 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 tomanage drawing/graphics etc in a class, and the results to be displayed in my form?

View 13 Replies

Interface And Graphics :: Error - Graphics Paths For Designing

Oct 29, 2008

Using graphics paths for designing...but am getting an error when trying to add a shape to : _shapelist.add(createshape())

It says : Value of type 'system.drawing.drawing2d.graphicspath' cannot be converted to '1-dimensional array of system.drawing.drawing2d.graphicspath'

View 2 Replies

Interface And Graphics :: Make A Listbox's "backcolor" Transparent In 2008?

Jun 19, 2010

I have a form and on it there is listbox. What I want to do is to make the listbox's backcolor transparent. I really do not understand. I have searched many sites but I couldn't find an exact answer. Is it really that hard to make it??? I found this code on a few sites:

[Code]...

View 1 Replies







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