VB 2010 Custom Pictureboxes?

Aug 22, 2011

taking interest in this post, this is a problem I've had for quite a while.I have a button on a form and when you click it, it makes 3 pictureboxes appear on the form and when you click another button, it makes the pictureboxes move around the form accordingly from a timer. I have this code so far:

[Code]...

View 8 Replies


ADVERTISEMENT

VS 2010 Put Pictureboxes Into Grid Formation?

Jul 19, 2010

I would like it so my users can decide to add images to the form, but every time they add a new form, it is inserted directly below the last one (until the end of the page is reached). Then when the images reach the bottom of the page it starts a new column. I would also like padding around each new image and for the images to rearrange when the form is resized. Is this possible? How would I do this?

View 5 Replies

VS 2010 Clickable Pictureboxes That Were Added Dynamically?

Jan 24, 2011

I am working a small project where I would like the user to be able to add images to a form, specifying a URL in the tag of pictureBox, so that when it is clicked. They are taken to the website they specified when adding the pictureBox.

I have a separate form for adding the URL and image so I need to pass those variables into the first form.

how to access the Tag property of the individual pictureBox when the user clicks it. Here is my pictureBox creation code which is in the second form:

Dim tool As String
Dim ptext As String
Dim url As String

[Code].....

View 6 Replies

VS 2010 Positioning PictureBoxes Inside TabPages?

Aug 16, 2011

I have a series of tabs, each containing a series programatically generated PictureBoxes that are all 480x360. The TabControl is anchored to all 4 edges of the form, so it always takes up the whole area.

I would like the PictureBoxes to behave similarly to how images behave when floated in HTML/CSS. So if I have 5 pictures and the window is only ~900 wide then I will have 3 rows, 2 in the first 2 and 1 in the last. But if the window is then expanded to ~1500 then I get 2 rows - 3 on the first and 2 on the last.

What is the simplest way to achieve this? Is there a built in way?I am planning on repositioning the pictures when SizeChanged fires on the TabControl, or when the selected tab changes.

View 3 Replies

VS 2010 Custom Type Array / List With Adding Items And Specifying Custom Type Variable

Jun 21, 2011

I recently downloaded VB 2010 Express so i am quite new to the language, but i have worked with dark basic, which seems to b very similar.Anyway, my problem is that i cannot seem to correctly set out my array of a custom type/class. i am trying to create two arrays, one of available entities and another of selected entities of which the user selects the entities to be dealt with in irrelevant ways. i have creates a button (called test) which adds some entities to the available list and all the entities come back the same value but they shouldnt be as you'll c in the code. i have run the step into command a found that "available.item(#).Name = " will change all of the entity's names.As of current i am working with lists as the array kept asking for a 'new' statement but i couldnt figure out where to put it.[code]

View 7 Replies

Pictureboxes And Ovals, Get Ovals To Be In Front Of Pictureboxes?

Jun 20, 2012

I am creating a photo hunt game for grades 6-9 in summer camp. I want them to alter an image in paint then create two picture boxes. I want to put in ovals with no fill color to mark the differences in the picture but VB.net won't let me send the images behind the ovals.

View 5 Replies

VS 2010 Using Custom Cursor

Jan 10, 2012

I've done a ton of research and haven't found the right code yet, I want to be able to change the cursor once it enters the form,
The answer'[code...]

View 5 Replies

VS 2010 Form With Custom Look?

May 25, 2010

Let's say I create an image, and said image will be the background of a form. But I want the form to be in the shape of the image, how would I go about doing that? This means I remove the title bar and drag it around manually, yes, but how do I actually do that?

View 2 Replies

VS 2010 How To Add A Custom Frame

Feb 9, 2012

i dont know exactly what you call it. but the frame that gos around the form. i wanted to know if some one could show me how to add a custom one?

View 1 Replies

VS 2010 Using .Contains On A List(of Custom)?

Mar 31, 2012

I have made a custom structure which I have in a list.Dim AllUsers As New List(of mUsers)Structure mUsers Dim mName As String Dim mMadeDate As Date Dim mActivated As BooleanEnd Structure I have populated the list, but now I would like to be able to search it, and to check if something exists inside of it. For example, I would like to check if.If AllUsers.mName.Contains("John Doe") = True Then MsgBox "User John Doe Exists!"

I know if this was simply a List (of String) then .Contains("John Doe") would work. But I cannot figure out how to have it look through the contents of that custom type in the list(of.

View 3 Replies

VS 2010 With The Custom Web Browser?

May 9, 2011

I've developed a Tabbed Web Browser, but i have some problems with it.The first one is opening the link(for instance from google.com search) in the new window of internet explorer. But it must be opened in the same tab.I would also like to open the link in the new tab by clicking left mouse button on it.The source code and the project is in the attachments.

View 1 Replies

How To Add Custom Objects In To Listbox Of VB 2010

Aug 18, 2011

I am developing one vb application. In that I have one list box. I want to add different types of Items. Like Different Colored and differently aligned text(Like one item item is right aligned and one more is left aligned). Can you please tell me how can i do the same.

View 2 Replies

Using Custom User DLL's In .NET 2010 Project?

Sep 21, 2010

I have a dll I created using VS 2008. I was able to add a reference to it in all my VB.NET projects built in VS 2008 with no issues. I added a reference...added an import statement....created a reference in my code and viola! All is good. I recently switched to VS 2010 and tried to re-use my trusty dll file in my new vb.net 2010 projects and all is good until I try to build and/or run the project. I get the following error whenever I try to do either...

'Type 'CustomFunctionsClass2010.CustomFunctions2010' is not defined.'I have tried all sorts of things from rebuilding the dll from scratch in the new VS 2010 IDE to changing where the file is stored on the network to placing the dll on my local drive and nothing seems to get me past this error. I even tried placing the dll in both the debug and release folders with no luck or change in the error shown. Am I stuck just not being able to write and use my own dll's?Here is a snippet showing how I am using it in

Imports CustomFunctionsClass2010.CustomFunctions2010
Public Class GetShowTimeData
Sub GetShowTimeData(ByVal dtStartDate As Date, ByVal dtEndDate As Date)

[code].....

View 9 Replies

VS 2010 Creating Custom Controls?

Aug 23, 2010

I got this whole thing pretty well down (it's actually quite easy), but I've seen custom controls created where you can click that little arrow on the top-right corner and add things or change things about it.

How exactly is this done? I'd Google it (which is why you don't see me post here too often) but I really don't know how to describe it.

View 1 Replies

VS 2010 Custom Cursor From File?

Dec 2, 2011

How to make custom cursor for my application from image file .jpg or .png or .gif
to work on everything, clicking on buttons, textfields the cursor to be on everything

View 3 Replies

VS 2010 Custom Objects And Properties

Nov 13, 2011

I'm working on a project where I need to information on all the monitors connected to a computer and then write a configuration file based on that. I can already get the screen information by creating a new instance of screen and reading the information such as index, bounds and everything else.I'm trying to create a virtual screen object to hold the information from the screen so I can work with it, or add other properties to it.[code]This all works perfectly how I want it to. Except I would like to do one more thing. How can I make it so that instead of getting Virtual_Screen.Top, I could get Virtual_Screen.Bounds.Top? That way I could create other properties such as Virtual_Screen.Border.Top..I have no idea how to code, or what that would be called. It's hard to search for something you don't know the name of.

View 5 Replies

VS 2010 Custom Painting An MdiParent?

Jun 4, 2010

I'm tired of looking at the boring default dark gray back of an MdiParent. I tried using Juggalo's Gradient Form and realized that the MdiParent was not being painted, at all. A temporary work around was to create an Image and set it as the background. This is fine and dandy but when I bring the thing to full screen and drag around my MdiChildren forms, the application gets laggy. I have already tried setting the Form to Double Buffered and it doesn't work at all, no noticeable change.I did try editing the Form's Paint() event, but to no avail.Here's the code I'm using to create the image (practically from Juggalo's Gradient Form):

[code]...

Creates the image nice and fast. I want this to happen in the Form's Paint Event though, so I don't have to rely on an Image that causes my program to lag about.

View 39 Replies

VS 2010 PerformClick() On A Custom Button?

Dec 12, 2011

I've got a custom button control that I made and it works great. I love it and it's perfect, but I do miss the PerformClick() function on the default Windows buttons...How would I make one for my button?

View 7 Replies

VS 2010 PropertyGrid, Getting Custom Types?

Sep 28, 2011

I've been following this article:and have everything working.Under the Support for Custom Types section, it introduces a collapsable type for the spell check options. The option are added together to produce a string that is displayed in the grid in the Spell Check Options row. Is it possible to get this string directly from the 'AppSettings' class or do I need to add another property and copy the code from the ConvertTo and ConvertFrom functions?

View 4 Replies

VS 2010 Trying To Import A Custom Cursor?

Oct 12, 2011

I created a custom cursor ("Cursor.cur") and added it to the 'Resources' folder of my project. I'm trying to set it up so that this cursor is shown when button1 is "mouse down". Here is the code...

[Code]...

View 3 Replies

Add Custom Visual Styles To .net 2010 Form?

Mar 14, 2012

add custom Visual Styles to .net 2010 form?

View 1 Replies

Setting Up Custom Page Size In 2010?

Nov 4, 2011

I am trying to set custom paper size on my printer with Winspool.drv. But getting error as 'Attempted to read or write protected memory.'

Private Sub btnTest_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTest.Click
Dim hPrinter&

[Code].....

View 1 Replies

VS 2010 - Custom Properties For GroupBox Grayed Out

May 22, 2012

I'm fairly experienced with making user controls and have never had this happen to me before. All of my custom properties (gloss opacity, border color, header color 1 and header color 2) are all grayed out in the properties window on the form designer when I try to add my groupbox to a form.

Here's my
Imports System.Drawing.Drawing2D
Public Class DanGroupBox
Inherits ContainerControl
Dim _GlossOpacity As Integer = 50
Dim _HeaderBackColor1 As Color = Color.Silver
[Code] .......

View 5 Replies

VS 2010 - DataGrid Custom Class Array

May 14, 2012

I am working on a project which lets the user edit the students in a certain group using a datagrid. First I created a class called student and then I created a student-array. Displaying the students in a datagrid works fine. On form-load, I change the datagridview.datasource to the student-array. The datagrid has 20 rows by default (Public dbstudebt(0 To 19) As student). When I edit an existing student everything works fine but when I fill something in in an empty cell and press enter or tab to confirm and add a new student, it just clears the cell and nothing happens. So basically, editing existing studs in the datagrid works fine, making new student doesn't work at all as those cells are always cleared immediately.

View 4 Replies

VS 2010 : Make A Custom Form Theme?

Jul 27, 2010

I wanted to know how you could make your own custom form border style.

View 4 Replies

VS 2010 Custom Control (Class) To Toolbox?

Jan 22, 2011

custom control, by inheriting the Label class like this

<ToolboxBitmap(GetType(CButton), "img_20_16px.png")> _
Public Class CButton
Inherits System.Windows.Forms.Label

[code].....

View 7 Replies

VS 2010 Custom Control KeyPress Event

Jun 20, 2011

I was asked to create an application that has a custom control that acts as a button. I managed to do almost all the requirements except the one for the KeyPress event. The customer wants to click the "Alt + C (for example)" to trigger the button click event in this case for a Cancel button. I did the code and it works fine ONLY when that custom control has the focus on it. But when it loses it, it doesn't. I don't know how to make the form accepts that KeyPress and sends to the custom control. I tried to set the form's KeyPreview property of the form to Ture but it didn't work too.

By the way, I know that it would work by writing the code in the KeyPress of the form but that's not the requirement because the user control will be used as a standalone component for many projects.

View 4 Replies

VS 2010 Custom Controls Not Showing Up In Toolbox

Sep 12, 2011

I have a solution with about 5 projects, the main (startup) project is a windows forms project while the others are control libraries that contain some custom controls. The main winforms project however also contains some custom controls.

Recently, the controls in the main winforms project have stopped appearing in my toolbox. The controls from the other control library projects appear just fine, but none of the controls in my main project will show...

Some of the projects are VB, some are C#.

I have tried everything I know to fix it:Delete bin/debug folders and restart
Build, build, build, build, and build Target the same .NET Framework version and CPU platform in all projects Build again Nothing works...

All projects target .NET Framework 4.0 and compile for the x86 platform (since I am using Access db). All projects build successfully, no errors. I can run the solution just fine. I can even declare and add the controls in code and they work just fine. They just don't show up in the toolbox so I can't drag them to my form and I have to dig into the designer code everytime, which is really annoying!

View 14 Replies

VS 2010 Custom Query Against List<string>

Aug 15, 2011

I have a List<string> that contains paths, such as:

[Code]...

Given a given root, such as Root, I would like to "query" this list to return only the first level values, such as:

[Code]...

View 2 Replies

VS 2010 Custom Shutdown Menu Item?

Oct 1, 2011

I have thought that it would be pretty cool to make Boot Snooze, iReboot and similar programs accessible from the Windows Shutdown menu. It would be a pretty neat way to interface with such programs. I realize that this may be extremely advanced stuff here, but I was wondering if anyone knows how to do this. I would prefer to be able to do this in VB.Net, but I realize it may only be possible in C++, if it is at all. I have tried Googling it, but, most likely due to the advanced nature, I have not found any good results (only "Add Hibernate", "Change default action to Hibernate", etc.).

View 5 Replies







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