VS 2008 Keeping Track Of Ellipses?

Mar 8, 2010

Suppose i want to draw semi-random ellipses on my form.Is there any way i can check if they get clicked at a later stage?Is there any way of storing the location of individual ellipses and then comparing the mouse-click to my list of locations to see if one was clicked?

I can imagine how it could be done with squares or rectangles, but i dont know how to approach it with ellipses.

Im sure this has been asked before, but i've spent a good while searching around for something i can use and came up emptyhanded.

View 5 Replies


ADVERTISEMENT

Keeping Track Of Choices?

May 24, 2011

I have two combo boxes, and four buttons. When the user clicks "Add" on the first combo box, it adds a new item to the combo box with "New" and then lets the user rename that item to something else. That "new" item has to have an array of "answers" that go along with that item in the list. What I'm having trouble figuring out is assigning "answers" to the second combobox for each item in the first combobox and changing the second combobox when selecting an item in the first combobox.

EXAMPLE:

Item 1 - Combobox1
- Item 1 - Combobox2
- Item 2 - Combobox2

[code]....

View 5 Replies

Keeping Track Of The Points Of .DrawEllipse?

Dec 16, 2009

I want to know if the user clicked on the Ellipse (just the line of nonfilled ellipse)? I don't care if the click inside of it,JUST the LINE. I made a copy of the orgianal rectangle info before drawing it. And then I tried .contains on the mouse click? and that allows me to click everywhere

View 10 Replies

Keeping Track Of Values In Different Forms?

Feb 10, 2011

I am trying to create a quiz application in Visual Basic 2008. I need to be able to store a score value when the player gets a correct answer. When the value is stored a new question set appears. Once the score is calculated I want to be able to show this is in a new form so the value needs to be passed from one form to the other. I'm not entirely sure how to do this but I believe it will incorporate a module.

View 9 Replies

C# - Keeping Track Of Values With Dynamically Created Controls

Jun 14, 2011

I have a WPF application that allows users to create questions of all different types which depending on the type will use a textbox,combobox,checkboxes, or radio buttons to allow the user to answer the question after they build some sort of questionnaire. My question is what is the best way to keep track of the answers across all the different controls after the controls are created and the questionnaire is created on the fly. Right now, i'm looping through all the containers and getting the values based on the controlType.

View 1 Replies

Basic Calculation - Keeping Track Of Total Number Of Discounts

Sep 5, 2009

I am trying to keep track of the total number of discounts given (whole numbers) I keep getting .75 after the first discount, and it adds .75 for every trans action after that. I have tried to pick it apart but I just don't see it. You can follow by tracking the comments that relate to the summary. I know that is an Integer but the book has it declared as a decimal so I went with it.

Public Class BookSaleForm
'Declare module level variables
Private QuantitySumInteger, SaleCountInteger As Integer
Private DIscountSumDecimal, DiscountedPriceSumDecimal As Decimal
Const DISCOUNT_RATE_Decimal As Decimal = 0.15D
[Code] .....

View 2 Replies

Code - Add The Elements To The Stack With Keeping Track Of Adding And Deleting

Feb 15, 2012

I am trying (Push)add data into my stack (length of five) and (Pop)delete from the end of my stack.

I need to know how can:

- Add the elements to the stack with keeping track of adding and deleting from it (adding an element will increment until 5 and deleting would decrement until the stack is empty).

Private Sub Button1Push_Click(sender As System.Object, e As System.EventArgs) Handles Button1Push.Click
Dim Stack(4) As String

[CODE]....

View 4 Replies

VS 2010 Keeping Track Of 'Active' Tabpage With Multiple TabControls?

Aug 11, 2010

I am building a sort of 'lightweight' Visual Studio, and I'm trying to implement the feature where you can drag tabs to different 'tab groups', viewing multiple tabs side by side.

I got nearly everything working, I show a ContextMenuStrip when you rightclick the tab headers, with the option of creating a new (horizontal or vertical) Tab Group. When that happens, a new TabControl is added dynamically and the selected tab is moved there. You can drag the tabs around inside a TabControl and even from one to another.

The problem now is keeping track of the 'active' tab. Since I have multiple TabControls (not just two, there can be as many as you want theoretically), their SelectedTab properties are basically useless. How am I to determine which TabControl the user is currently working in? Obviously I will always have multiple selected tabs, but only one active tab, in which the user is currently typing, editing, whatever.I need to know the active tab for obvious reasons: many menu and toolbar items act on the active tab for example. A short explanation of my controls:I have one TabGroupContainer control, which inherits UserControl. I have a TabGroup control, which inherits TabControl.I have a Tab control, which inherits TabPage.

The TabGroupContainer holds a collection of TabGroups (to which I dynamically add/remove TabGroups when required). Now I want the TabGroupContainer control to have the ActiveTab property which returns the one and only active tab (out of possibly many selected tabs).The only logical way is to keep track of the tab that was selected last, for every TabGroup.

At the moment, I am doing this:

- In the TabGroup (TabControl) class, I shadow the SelectedTab property (and return a Tab instead of a TabPage). More importantly, in the property setter, I raise a SelectedTabChanged event:

vb.net
Public Shadows Property SelectedTab As Tab
Get
Return DirectCast(MyBase.SelectedTab, Tab)

[code]....

However, it still doesn't work. I soon figured out why: I am checking that the previously SelectedTab is not the same as the new value in the property setter of the (shadowed) SelectedTab property. I don't raise the event when they were the same, and in this case they were the same (as there is only one tab in the TabGroup!).So, I took that check out, and now it seems to work when I click in the text editor.

So one problem remains: the active tab is not changed when you click on the tab header (and not on the text editor). I am clueless as to how I should handle this... I am once again sure there is a simple fix, but I cannot see it. I can click the tab header, and I'm sure behind the hood it responds to this click, but it never raises it SelectedIndexChanged event because the index didn't change but was set to the same value it already had. I cannot override the SelectedIndex property (so I could skip this check and raise the event anyway even if the value didn't change), and the OnSelectedIndexChanged method is not called, so I cannot use that either...

View 6 Replies

Declare Graphic Ellipses As Group?

Sep 7, 2009

I need to be able to declare 12 groups of ellipses as "group A" , "groupA#", "groupB", ect. That way I can fire all the images simultaniously from outside of the paint event handler.(if possible) I have tried several ways to declare them, but the system doesn't read things the way I trying to do them. This is my first time ever with graphic activity, so I don't have anything to fall back on. I went to the Bob Powell GDI+ site, but didn't find what I was looking for. Tried google too, but don't think I'm wording things right. Thays typically always my problem, noone understands me, 'cause I lack good communication skills. Heres what I have...

[Code]....

View 4 Replies

How To Declare Groups Of Graphic Ellipses

Sep 7, 2009

I have a group of graphic ellipses that I need to arrange in a group. 12 groups actually. It's a matrix for traing guitar students. I have the locations of the "G" notes grouped so far, but not under the title "G notes group". Since I can't use ellipses outside of the paint event handler, I have to rename them, I guess in the event handler...

Here's what I have so far...
Dim
GroupG As e.Graphics.FillEllipse(Brushes.Green, 84, 6, 10, 10) And
e.Graphics.FillEllipse(Brushes.Green, 84, 106, 10, 10)
e.Graphics.FillEllipse(Brushes.Green, 24, 46, 10, 10)
e.Graphics.FillEllipse(Brushes.Green, 124, 66, 10, 10)
[Code] .....

The paint event handler does not accept my attempts to declare them as a group, & this is my first ever project with graphics in an active state. I haven't found any where to turn for info, tried Google, tried bob Powell's GDI+ site, Tried some free ebooks, nowhere I have looked seem to cover this aspect. I need some direction to turn.

View 3 Replies

Move Ellipses On An Array Of Squares?

Jan 7, 2009

Imports System
Imports System.Collections.Generic
Imports System.Data
Imports System.ComponentModel
Imports System.Drawing

[Code]...

View 1 Replies

VS 2008 Keeping A Form In The Screen

Dec 27, 2009

I'm just doing a quick little application and was wondering how I can keep the user from moving the window outside of the working area I tried this

[Code]...

View 1 Replies

VS 2008 - The Program Keeping A Running Total?

Dec 9, 2010

I'm about to pull my hair out with this program. I need the following program to keep a running total of the total amount due by a customer for books bought. The exercise required the use of a BookSale class with 3 attributes(a quantity,price,and total due) and 2 behaviors(a default constructor and method that keeps a running total). Here is the code for the class:

[code]...

My problem lies in the program keeping a running total. The total due is displayed fine for each quantity and price but not the whole running total. For example,if I enter 1 as quantity and 2 as price and click the Add to Sale button,the Total Due value,which is $2.00,is displayed. However,if I change the quantity to 2 and price to 4,which comes out to $8.00,the $8.00 is not added to the existing $2.00. I feel like I'm missing something elementary and it's driving me crazy. I would work on it some more but it's already after 4 AM here and I need to get some sleep.BTW,this exercise is from a college textbook. However,this isn't an assignment that is due. I just got bored and decided to work on a chapter we didn't have time to get to.

View 2 Replies

Change The Three Dots (ellipses) (...) To Custom Characters In DataGridView When Cell Content Is Truncated?

Dec 15, 2010

In DGV, if the contents of the cell is truncated, the DGV shows ellipses (three dots) (...); but as the font is set to a Gujarati font, it displays a Gujarati alphabet "ઈઈઈ" instead of "..." because the Gujarati character "ઈ" is coded with the English "." (dot) character.In Gujarati font, "." can be generated with the English character "P".So, How can I change the ellipses to English "P" character? OR How can I remove the ellipses completely?I have found a similar solution by berc on Tuesday, August 31, 2010 1:33 PM :but I am not sure it is the perfect and/or the only way to do so, AND it will really work or not

View 2 Replies

VS 2008 Editing Word Documents While Keeping The Original Text?

Jul 13, 2009

Public objword As New Word.Application
objword.Documents.Open(FileName:=ofilename)

^ Showing the declaration of the word document that i wish to edit.

Dim oDoc As Word.Document
objword.Visible = True
oDoc = objword.ActiveDocument
oDoc.Range.Text = codes(j, 1) & " " & codes(j, 2)

This gets the document and adds text into it, exactly what i want it to do. But it replaces the whole document. I just want it to add text at the start of the document. Not replace the whole document.

View 3 Replies

VS 2008 Track All Functions And Procedures?

Feb 4, 2010

is there any option in callstack or any third party tools to get all the list of functions and procedures executed in vb.net project. on callstack, while when goes to different class method and returns, the tracking information loss. so after fulll of excution of project, do we get the list of all executed members in order of execution ..

View 2 Replies

VS 2008 Make A Program That Will Track Do Not Rent (DNR) People

Apr 27, 2009

I want to make a program that will track Do Not Rent (DNR) People.I'm a intremediate vb6 programmer and have not coded in a long time.I do have and wanting to do this on VS2008 professional in VB2008.I did a simular program from a vb6 book about 12 years ago. it was a address book that i changed a little to add some things I needed it to keep track of, and it saved everything in a text file.I want to know what the pros and cons are for using a text file? xml file? or a data base?the data i be keeping track of will be vital statistics as name, state id number, id type, ect. and a picture of the id from a scanner or import from a .png, .jpg, or tiff image.If i use a data base file either Access 2007, MySQL, or SQL 2005/2008 file, do i need to have Office, MySQL, SQL 2005/2008 programs installed on the the computer im doing the programming on? do i need to have the above programs installed on the target computer?i do not think a txt file will work for me because of the picture i want to keep with the data not seperatly. So to make it a little more clear I want to be able to add, append/update, not to be able to delete a record, and be able to search the file for a record.I want to be able to navigate the records or file with first, previous, next, and last. each record will be showed seperatly.I would like to have a STATUS (lol thingy) that only my wife or I can change but let my employees be able to enter the rest of the information on there own. the STATUS Levels will be like 1st warning, 2nd warning, 3rd warning, DNR, and Rentable at our discression. I want it to only allow changes to status if they have the proper password. so i do not know if this also elimates txt files or xml files as an option.and when the wife, my employees or I make an entry I wanted it to add the time and date with the comments we entered in with the initials of the person whom entered the data. so i was thinking i will need to have security levels in my program and give each person a password so the program can fill out most small data itself.

if i do decide to use a database file to store the data, picture, and employee information can it be done with 1 table, or should i try to seperate the data in seperate tables? should i use one to one or one to many? I do not think one to many would be the best solution? it been like 12 years since I did any database programming in school and it was dBase3. If u think it be best to use multiple tables could u give me an example as to how to seperate the data.The client info would be like a address book with a picture and a comment box that will automatically add a date/timestamp and the users initials with a space between every updated or appended entry., and the employees would have there login in name and password, and initials.I was thinking of making a wizard to enter the data in for both employees and the DNR's as for people changing the date on the computer and entering info so to make it look they entered data on an earlier date I was thinking of having it log onto the internet time server and setting the date/time of the computer in the background as it loads up.

View 2 Replies

VS 2008 Track Media Buttons When Application Is In Background?

May 8, 2011

I would like my application to respond to when the user press the media keys on his keyboard. Anyone know how to make my application capture this when it's in the background.

View 15 Replies

VS 2008 Error In Maths Formula - Get The Magnetic Track From Two Waypoints

May 5, 2011

Trying to get the magnetic track from two waypoints, but are getting error in the formula,

This is my code at the moment (produces error)

tc1.text = Math.Atan2((Math.Sin(lon1.Text - lon2.Text) * Math.Cos(lat2.Text)), Math.Cos(lat1.Text) * Math.Sin(lat2.Text) - Math.Sin(lat1.Text) * Math.Cos(lat2.Text) * Math.Cos(lon1.Text - lon2.Text))) 2 * pi)

View 7 Replies

2008 Write A Program That Will Allow A Usert O Track The Invitation List For A Party?

Dec 4, 2009

I have to write a program that will allow a usert o track the invitation list for a party. The user can enter the name of a person to be invited. When the send Invitatin button is clicked, the name appears in the checked listbox. This counts as an invited person.When an invited person confirms that they will be attending, the user will check the name in the checked listbox. this counts as a confirmed person.

What I am having a hard time figuring out is the codes! What would I declare my integer variables to hold the count of invited persons and the count of confirmed persons? And how would I code a loop to check if the name enetered in the name textbox already appears in the list box, if so, display a message telling the user that this person has already been invited?

View 3 Replies

Why Doesn't Ellipses Display On Load - They Display When Button Clicked

Jun 1, 2011

In trying to test some graphic features, I am trying to get them to display on load so button doesn't have to be pressed. I used the following code as suggested from forum. Message boxes run but ellipses aren't displayed until button is clicked which is what I am trying to avoid!

Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Button1.PerformClick()
Button1_Click(Nothing, Nothing)

[code]....

View 5 Replies

[2008] Copying From One Listbox To Another And Keeping The Paths Of The Files In The Listbox's

Jan 26, 2009

I am having problems with copying from one listbox to another and keeping the paths of the files in the listbox's. At the moment i have two listbox's, listbox1 shows the list of files without the directory paths showing. Listbox2 is used to add items from listbox1 which work ok but what i need is to be able to preserve the directory paths to each file. how to do this and have searched high and low for a solution without any luck.

I have worked out one way of doing it but i think there is a better way of doing it as the reverse does not seem to work. So basicly i want listbox1 to list the files without the paths and pass it on to listbox2 so that the files can be copied to temp directory as they are being add to listbox2.

Below is my

[CODE]...................

Routine to add items from listbox1 to listbox2: I have created another listbox3 (which is in bold), which is hidded under listbox1 and holds all the paths to the files and is use to copy the files from there original directory to a new directory.

[CODE]...................

Routine to add items back to listbox1 and remove them from listbox2. I have created another listbox4 which is hidden under listbox2 which i was trying add the paths from listbox3.

[CODE]...................

View 3 Replies

Combo Box Not Keeping Value On Tab Out

Dec 9, 2009

How can i get the combo box to keep the value that was partialy keyed in and completed with auto complete.Pressing enter doesn't select the value so when you tab out it keeps the entered auto completed value. The only way to keep the auto complete value is to click on the combo box with the mouse and then tab out of it. I would like some how of being able to tab out of the combo box and it keep the auto completed value that the user has entered so as to save time entering data so no mouse clicks are needed and the data grid view can be tabbed through and all data entered from keyboard.

View 3 Replies

Keeping A Record Of Who Logs In?

Mar 31, 2009

I have a program that requires login and I have that part working, but I'd like to be able to tell which user has logged in. There's a database with the user info (ID and password) but I'm not sure how I can have the program record which user has logged in.

View 5 Replies

Keeping An Application In Background

Jul 7, 2011

I have developed a very simple application that disables system keyboard commands (ctrl+alt+del, alt+tab, etc), hides the taskbar, hides the desktop, etc.Upon entering a password the user can 'unlock' these options.This is being used with a restaurant POS system so no accidents can happen. However there seems to be one minor issue:In a separate software package (the POS software), at specific times, any application that is running (my locking application) will get focus and end up on top of the POS software.I want my locking software to remain underneath all running applications. Anyway to keep my locking application from gaining focus? I was thinking of maybe adding some line of code to send my locking application into the background whenever it gets focus..

View 4 Replies

Keeping An Item In Scope?

Aug 31, 2010

I have been working on a VB app to edit an excel document. I want to keep my excel workbook in scope for the whole app.

For example here is how my program looks now

private sub
open workbook
end sub

private sub
reference workbook
end sub

I want a way to just call my workbook at the top and have all of my subs recognize it. I guess like a global variable or something.

[URL]

View 5 Replies

Keeping Counts Win Form App. Has Run?

Apr 23, 2010

using Vb net (2005) Wandering if it is possible to use AppSettings in this case: Keeping counts how many time my Win Form app. has run, could someone show me if this can be done

View 4 Replies

Keeping Dll And Exe In Separate Folder

Apr 1, 2012

I want to create SETUP for vb.net window application. My application uses multiple dll.so I want to keep dll in separate folder and exe in separate folder. When I create setup, dll and exe are in same (Application Folder of setup), then it works, but when I create 2 different folder in Application Folder of setup, one for dll and one for exe, then it desn't work. Please suggest how can I ?when I create set up then all goes to applciaton folder. when i installed then all are installed in same folder.but I need all dll goes to sperate and exe goes to sperate folder.

View 1 Replies

Keeping Form Above Fullscreen?

Nov 9, 2011

Basically i'm coding a application that can be used as a crosshair.How do I keep this above the game which runs in fullscreen. I've tried

View 5 Replies

Keeping MDIChild Within MDIParent?

May 11, 2012

I have a MDIParent form that has a bunch of child forms. When I open a child form, I can actually move the form outside the bounds of the Parent. How can I prevent this? I've set each of the Child Forms "IsMdiContainer" property to "False". What am I missing?

View 1 Replies







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