Get X And Y Locations Of A Moving Butto In Vb 2005?

Mar 15, 2009

I used the code below to make the button move but now i need to get the current location of the X and Y and show it in a label on the form..ex

[Code]...

View 2 Replies


ADVERTISEMENT

Moving A PictureBox To Predefined Locations?

Jan 22, 2011

I'm working on a little board game we play here in Jamaica just to see how it would look and as a sort of challenge for myself while on vacation. I'm however stuck on how to make my markers (PictureBoxes - two per player) move along the board.So heres my problem; I have 40 slots where the picturebox can be moved to (eg picturebox1.Top = 324, picturebox1.left=243). Now moving to these slots are determined by the roll of a pair of dice. How can I assign a variable preferably an integer for each slot so when the dice is rolled I can just do a little addition as to where the markers can be moved?

View 7 Replies

Redirect Gridview Selected Row Data To Two Different Pages On Clicking On Two Different Select Butto

Jan 2, 2011

i want when user click on hold button of particular row then the record from the particular row is transfered to another page. if i click on the hold button of 1st row of gridview then seats=35 and booking closed =08:00:00 PM willbe trasferred to [code]and if i click on the manage button of same row then the record of that row will be transferred to [code]

View 1 Replies

VS 2005 Moving Project To Laptop?

Nov 20, 2009

I developed a project that uses Access 2003 db on my Vista 32 bit desktop. I recently bought a Vista 64 bit laptop and upgraded it to Windows 7.I installed Visual Studio on my laptop and Office 2003.I copied the project from my desktop to my laptop using the exact same paths. When I try to build the project on my laptop I get this error:"Unable to find manifest signing certificate in the certificate store"So, I tried creating a simple project using an Access 2003 DB and when I try to run it I get this error:"MicroSoft.JET.OLEDB.40" Not registered on this machine".I went to the "windowsSysWOW64" folder and ran "regsvr32 msjetoledb40.dll"and it ran successfully, but it didn't solve the problem.If I use the Server Explorer in the IDE, it displays the data.

View 2 Replies

VS 2005 Moving Rows From One Database To Another?

Feb 23, 2011

I have a live database and an Archive database. I want to do a selct on the live and basically create a new row in the archive database table and insert all the columns then delete the row from the live. Here is the code that creates and deletes:-

Private Sub MoveToArchive(ByRef oleDRClean As DataRow, ByRef oleDSArchiveCleans As DataSet)
Dim oleDRArchiveClean As DataRow
oleDRArchiveClean = oleDSArchiveCleans.Tables(0).NewRow

[code]....

I ran a query in access to show the same sql select and after running my routine they all say #deleted. But when I run the query again I get the rows back WHY!

View 5 Replies

VS 2005 Preventing Buttons From Moving?

Mar 9, 2010

I have a win app with some buttons. Whenever I run the app, the buttons move away from their default location. Is there a way to fix the button in one location.

View 2 Replies

VS 2005 Treeview Moving Tag To Listbox?

Mar 18, 2009

so here is what I got so far. I have a treeview with multiple states as parent nodes. then as child nodes I have certain cities. as for my code - I have it set up that if I check the parent node, all children nodes will be checked. I also have code that moves the tags to listbox. the only items that have tags are the children. the code that I have works if I have tags set for the states, but I dont want to have parent tags move to the listbox. how can I change the code I have or rewrite my code to get ONLY children tags in the listbox even if the parents are checked??? hope this makes sense. here is my code

CHECKS ALL CHILD BOXES IF PARENT BOX IS CHECKED

VB
Private Sub TreeView1_BeforeCheck(ByVal sender As Object, _
ByVal e As System.Windows.Forms.TreeViewCancelEventArgs) Handles TreeView1.BeforeCheck

[Code].....

View 2 Replies

Moving From Microsoft Access 2007 To Sql Server 2005

Aug 5, 2009

I have MS Access 2007 Databases and VBA modules associated with it.I Now want to upgrade my project so as to use Sql Server 2005 and Vb.net using visual studio.net.Can any one suggest Complete details on the transfer without much hassle or data loss.?

View 3 Replies

Making Moving Percentages Into A Moving Graph?

Oct 5, 2008

I have this:

Private m_PerformanceCounter As New _
System.Diagnostics.PerformanceCounter( _
"Processor", "% Processor Time", "_Total")

[code]......

View 4 Replies

VS 2005 Moving Rich Text Box String From Form To Form?

Apr 15, 2009

simple problem Basically in form1 i have a line of SQL code in a rich text box called rtb_select

what i would like..This code to run under a connection string called strSQLSelectQuery in form2

I have been told someting like strSQLselectQuery = rtb_select.text would work however because rtb_select is in a different form in the same project it does not recognise rtb_Select

View 2 Replies

Get All Picture Box Locations?

May 12, 2012

I want to get all picture box locations. I am remotly creating them so i couldent just get each one individualy.

View 2 Replies

.net - Compiled Class In Two Locations

Aug 22, 2011

I'm a tad stuck trying to get a List to load from the ViewState using ASP.NET 4 and VB.NET. When I try to retrieve a collection using:

[Code]...

View 1 Replies

Drawing A GDI+ Path In Several Locations?

May 4, 2011

After a path is defined with all its components, is there a version of the DrawPath that allows the composite object to be drawn in locations other than the initial locationsFor example, the code shown below displays an ellipse and two rectangles in a specificocation. To also display the same objects in one or more other location,s, is it possible to disply the defined path at other locations or is it necessary

View 2 Replies

Picturebox Clicking Certain Locations?

Jan 13, 2011

I am working on making a picturebox that when clicked in a general location it will do something. Is there a way to make a grid out of a picture so when a certain slot on that grid is clicked an event will happen? It cant be an exact location, because that will be too hard to click. but a relative location would be perfect.

View 3 Replies

VS 2008 - Deployment Locations ?

Feb 14, 2010

The file locations for a setup package using Standard Edition? I have added an .xls file to my project, marked it as Content and as Copy Always in the properties for that file. The XLS file I added to the project is from my user Apps folder in the Roaming sub folder. Other simple .TXT files are in my UserMy DocumentsData folder and each file is also maked as Content and Copy Always. When I create the setup package all goes well. I have a setup.exe and an .msi file. When I test it by installing it on my PC of course the program knows where the files are because it's my PC. In the program folder created as C:Program FilesMyProgram I find the .exe plus the XLS and TXT files, but these XLS and TXT files are not used from the program folder. How might I know if an installation made by another user on another PC elsewhere is going to load files in their user apps or user documents? I need to be sure that the additional data files deploy to the correct location (whatever I want that to be) on a remote PC.

View 3 Replies

VS 2008 Object Locations?

Apr 23, 2012

I would like to make a simple functions for my program but I can't figure out what to do. I want the picturebox PBplayerbullet to be moved in the midle top of the picture box PBplayerim I know that if I use PBplayerbullet.location = PBplayerim.location will it to the top left part of the picture, but how it can be moved to the midle ?

View 5 Replies

Acceptable Application Folder Locations?

Jan 29, 2009

My application may be run by a number of different users and needs to be able to read and write to the same filles irrespective of what user is logged on to the PC.What is an acceptable location to store these files?i.e. a folder that has read/write permissions set as default.

View 2 Replies

Allow The User To Add Locations For Direct3D Icons?

Jan 23, 2010

I'm making a scripter to allow the user to add locations for Direct3D Icons, but I'm trying to make a sub for it...

Public Sub icoadd(ByVal mod1 As String, ByVal mod2 As String)
loc.X = defined.Location.X
loc.Y = defined.Location.Y

[Code].....

View 4 Replies

Application Settings File Locations

Dec 16, 2009

I want define where my application and user settings files will be located.I would also like to rename them.For example my project will have a number of folders located inside the application folder when deployed.One of those folders is labelled "Cfg" and i want my application settings files to be saved in there.This is including the user settings, i dont want to localize the user settings file as is done automatically (at least not at this stage).

View 3 Replies

Collection Of Locations - How To Skip First Record

Apr 7, 2009

I have a collection of locations for a sales person, allowing them to send an item to multiple locations. I want to start reading at index 1 since I am using a collection. I saw an example where you can say something like "+ 1" (e.g. myitem.SelectedIndex + 1) to skip the first record. How can I skip the first record for the following:

Public ReadOnly Property Customer() As ICustomer
Get
Return CType(Me.CustomerList.Item(Me.CustomerNumSelected), ICustomer)
End Get
End Property

I tried to say Return CType(Me.CustomerList.Item(Me.CustomerNumSelected + 1), ICustomer) but it returns an error saying "string cannot be converted to a double". without the + 1 in there, I get an error that says "collection index must be in range 1 to size of collection".

View 5 Replies

Comparing Characters At Different Locations In A File?

May 2, 2009

My card program generates a text file AllCards.txt - I want to know when the first character in this file is identical to the 3rd, 5th, 7th, or 9th. In this case I would need A (1st char) checked against the 5 (3rd char), 5 (5th char), 7 (7th char) and 8 (9th char).

[Code]......

View 12 Replies

Move The Mouse To Different Locations In Another Application?

Feb 11, 2012

How can I move the mouse to different locations in another application. Currently, I used HDC and HWND to get my window's handle. (Also FindWindow). So, is it possible to like MouseMove(HDC, 5,5)?

View 4 Replies

Put Files In Certain Locations And Create Own Installer

Feb 11, 2009

I am trying to create an install for my application that I have just created using visual basic express. I want to be able to tell it to put files in certain locations and create my own installer. For example I want to make a license page with a read me on the installer. From what I understand the clickonce technology is what comes with express editions and you cannot do it with them. Is there an alternative to being able to accomplish what I want to do without having to purchase the full version of visual studio?

View 7 Replies

Saving Streamwriter In Two Seperate Locations

Jun 11, 2011

Greetings,

My app saves a bunch of stuff to an XML file. This is my line of code-
Using writer As XmlWriter = XmlWriter.Create("C:vdx2kMWSREEXTReportsInboxTK" & frmCitation.txtCiteNumber.Text & "Traff.xml", settings)

So that saves it at that specific location.

I need to duplicate the XML and have it also save in another location. I've been at this for days, Googling, searching, trying different things and now I need to turn here for help.

Any ideas?

View 2 Replies

Show Some Forms But Want Them To Appear On Specific Locations?

Sep 27, 2010

I want to show some forms but I want them to appear on specific locations . The problem is I don't know how to specify the coordinates . Using :

frm.Location = "0,0"
or
frm.Location = (0,0)

tell what is the correct syntax ?

And more thing : when a form is maximized or minimized , it looks like "flying" upwards or downwards . Is it possible to stop that visual efect ?

View 4 Replies

User Interface For Various File Locations

Sep 11, 2009

I have a generic question regarding file paths and user interfaces. I am trying to build a user-interface to accommodate various file locations. I typically build interfaces which deal with files on drives. As such, I use a directory tree for this. I usually work with files on local drives. However if I wanted to ensure that all file locations were dealt with I would want to ensure that I was accommodating files in all drives (local, network, mappped etc.). I am assuming that the treeview would support all of these drive option.

However if the files are on a sharepoint site or in some other type of enterprise content system, then am I correct to assume that these file paths will be URLs? If so, then am I correct to assume that a directory tree is not the correct control to use for these locations? Should I be providing a textbox to the user and prompting them to enter this URL? Or is it better to have the URL loaded into a ListView or ListBox (i.e. "My Connections") and then provide these as options via a dropdown box. I am trying to picture a typical user interface. Is it a directory tree AND a text box/dropdown box.

View 1 Replies

Forms :: Display All The Toilet Locations Via PictureBoxes?

Sep 2, 2011

I am creating an Interactive map which displays the facilities when the user clicks on the Checkbox, such as toilets. It will display all the toilet locations via PictureBoxes. I want to do this without having to write all this code?

Private Sub chkCash_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkCash.CheckedChanged

[Code]...

View 9 Replies

Keeping Control Locations Relative On Maximize?

May 22, 2011

I'm trying to figure out how to keep control locations relative on maximize. For example, if i have a button on the very right hand of my window, when i maximize it, i want the button to remain on the very right hand. Or when i grow my window, i want my controls to change location so its always relative to the size of the window. how can i achieve this?

EDIT: To provide a better example, if i have a window with a button in the center, when i maximize that window the button should remain in the center rather than in the same location as before and therefore being out of place.

View 5 Replies

Logic - Whenever Object Move To Locations, It Will Turn One By One ?

Oct 11, 2011

I have a variable called Map(19,19) is List Of Point and a Object(x,y).i want whenever my Object move to locations like Map(0,Y) or Map(19,Y) or (Map(X,0) or Map(X,19) it will turn one by one part of my Object to the other side for example when my object at location Map(0,Y) firstly, Object'head immediatetly appear at Map(19,Y) and then one by one part of it moves like that.Here my code: you can start watch from rbGeneral.checked, i already get a current position of my snake by declare 2 variables X and Y, but at If Clause i dont know put anything there to solve my trouble.

Private Sub tmr_tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles tmr.Tick
'Move Snake
Select Case currentDirection[code].......

View 1 Replies

Loop/design - Looping Through A Database With Pdf Locations

Sep 14, 2011

I am looping through a database with pdf locations. The application is button click event driven. The problem I am having is that I display a pdf. If the user clicks on the button then the pdf information is inserted into a database and the loop should be taking me to the next pdf. However, this loop does not seem to give what I need. What ends up happening is the first pdf gets displayed twice. I think mainly because I display the first pdf onload, but when I click the button it agrees and grabs the first item from the database. And it ends up falling behind because its restarting the query and I cant quite figure out how to get the button to catch the first displayed pdf, or skip it entirely since I am using a welcome pdf. So on the welcome pdf that is supposed to be displayed initially the user clicks agree and it agrees to the welcome pdf instead of just skipping it. I am not quite sure how to just move past the pdf.

public sub onload()
display the welcome pdf
end sub

[CODE]...

Now if I run the code without the loop it works fine. I just end up having to run the app however many pdfs I have in my database.

query data
display data
insert data
Windows.Forms.Application.Exit()

To display pdfs I imported the com control for adobe so pdfs get displayed like this:

axacropdf1.src = my.mysettings.default.readpath & pdflocation

pdflocation is passed from a query fill.

I think I have an underlying design issue which probably precedes the loop.

View 4 Replies







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