VS 2010 Making Groups - Detect The Centre Of A Shooting Target
Oct 9, 2011
I have a tough situation that I don't really know how to code. I have one main list of point that contains all the points on a picture that are black.(1point=1pixel) I need to group all the black pixels that are less than 15(more or less) pixels away from each other into one Separate list. In the end I want about 5 lists.
What I said above is what I think is best to detect the centre of a shooting target. This information is just for those who think they know a better way. Each card has 5 targets on it and I need to detect the centre of each target. Ignore the sticker on the top target, in all cases the top one will look like the rest.
View 14 Replies
ADVERTISEMENT
Jul 23, 2010
what im after is advice on writing a vb app. that compares the difference between two images captured from a cctv camera of a sports shooting target. the difference is a bullet hole in the target. i would also like the program to identify a score the bullet makes in relation to its location on the target and have that as an audio output sound file. the targets will be uniform so the template the program has never changes.
View 4 Replies
Apr 8, 2009
I am writing a Media Centre Addin in Vb.net and it was all going good until i got to the point where i want to find the "Currently Playing song FilePath or URl"I have spend a number of hours racking my brain to figure out a way of seeing what the "Currently Opened Files" are on a machine at any point of time.
My idea is to get all the currently opened files, and then filter the Extensions from these and find the media item that is currently playing, and get the filepath.Does anyone know how i can do this? and what methods or classes or Librarys i should be looking at or importing In..
View 10 Replies
Nov 18, 2010
I wanna detect the version of installed Visual Basic Power Packs in target system.How can I do it with Registry values (Windows from Win XP)?Or, How can I check the version of Visual Basic Power Packs assembly , e.g : how I can check the version of Microsoft.VisualBasic.PowerPacks assembly ?
View 1 Replies
Aug 27, 2009
What is the best way to make my pictureboxes(Characters...) shoot?I would use the keydown event and make a picturebox(dim blah as PictureBox) but how would I make it move and so I can shoot more than one? Would I use a timer?
View 7 Replies
Aug 29, 2011
Could someone enlighten me on how radio buttons work?Is there a way to retrieve a single value from a group of radio buttons that indicates which radio button in the group is checked?
In the documentation, it said to set the "Group" property; however, my radio buttons don't have a group property, at least that I can find.
I realize that I could iterate through the radio buttons and find the one that is checked, but that seems like it defeats the purpose of radio buttons.
View 5 Replies
Apr 29, 2012
I load data from a table and I want to sort it into groups by month. My problem is this, if the header does not exist, it will create one and add the item into the group, but any further headers with the same month get added to the 'default' group and not to the already created group. Here is the code I using.
[Code]...
View 4 Replies
Mar 30, 2012
Ok, I have this code... and it works. If I want to add it to say... a checkbox or something of the sort.
Public Sub groupaddarray()
Try
'Alpharetta Staff
If Form1.CheckBox23.Checked = True Then
Dim grp As IADsGroup
[Code]...
My question... how can I double click the listbox, and then it keeps adding these groups to say... another text box, and when I click add groups it will read the textbox, and add multiple groups instead of just the one?
View 2 Replies
Apr 14, 2010
I've developed an application using VB 2008 Express and there are some customers using it,of course they have framework 3.5 installed.Can I upgrade to VB 2010 but keep target of my project to framework 3.5 (there is a option on Compile tab to chose target framework version),is it a good idea or not ?
View 5 Replies
May 3, 2012
I have a Datatable with one column of the table being 'PartNum(product part number)'. I used EntriesTable.DefaultView.Sort = "PartNum ASC" to sort the whole Table, with respect to the information in this column. Now I'm just trying to further sort the table by grouping rows that have same info under that column together and do something to each of such groups. but I'm kinda stuck here.
I'm thinking of creating some sub-DataTables out of the original one and have these sub-tables to hold those rows with same info under "PartNum". Does anyone have ideas how to do that? maybe with DataReader or DataView ,
View 6 Replies
Apr 15, 2010
After un installing visual basic 2010 express Beta 2 release i installed visual basic 2010 express final release and could not find he target CPU option in the compile tab of project properties. how could i now resolve the issue of "The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine" ie by forcing the application to run as x86 application??
View 9 Replies
Dec 14, 2010
I started a project in VB 2008 and the target Framework was obviously not 4, like it forces in VB 2010. The issue is the computers this application is being deployed to have 3.5 as the latest .NET Framework.
View 4 Replies
May 21, 2010
I've been working on a new application and realised that I want the target framework to be 3.5 (4.0 isn't rolled out yet). So, I changed it and now when I try and debug I get the following error:
"An error occurred creating the form. See Exception.InnerException for details. The error is: Unable to cast object of type 'System.Windows.Forms.SplitContainer' to type 'System.ComponentModel.ISupportInitialize'."
I really don't want to have to delete and recreate the splitContainer....
View 6 Replies
Nov 11, 2009
I have built a Dll and a Windows Service in vs2010. Both are targeting the .net 3.5 framework, but when I install it on the server it installs fine, but for some reason it targets the 2.0 framework and any time the methods fire that are using linq it crashes out with a clr20r3 error system.nullreferenceexception. Not really sure why it's not targeting .net 3.5.
View 10 Replies
Feb 16, 2011
Each new project VS sets the Frameworks to 4 Client. How do I change it that it always chooses Full?
View 4 Replies
Aug 15, 2010
I am attempting to write a program in Visual Basic Express 2010 that uses .NET Framework version 3.5 instead of 4. (The computers that I plan to use this program on only have .NET 3.5 SP1, and are painfully slow, so I don't want to upgrade them to .NET 4.)I have seen in the documentation that the Express edition does not have the option to change the target framework in the "New Project" dialog. However, when I go to the Project Properties window, there is not a drop-down list for the target framework, either.Can I change the target framework version in Visual Basic Express 2010?
View 2 Replies
Nov 24, 2011
I get this error "No connection could be made because the target machine actively refused it 69.69.247.18:80." when executing this code. It is caught on the line indicated with..[code]
View 2 Replies
Aug 18, 2011
I created a VB Console app and it defaulted to .NET 4 but I need it to be .NET 3.5. I've been looking but all the references I find say to change it on the 'Compile' tab in properties but I don't have a compile tab or anything else that lets me change the target framework.
Note: I'm using VS2010 Ultimate
View 2 Replies
Aug 30, 2011
I have an desktop application that references several dlls. All are targeted for .Net 3.5, x86. The applicaiton has been deployed for several years and was upgraded from visual studion 2008 to 2010 last year. I have made several changes to the app since then (as recently as last Thursday) with out any issues. Now, everything builds, but when I run the application, I get a type initialiazer error when one of the projects is loaded by the main application.
The error messsage is {"Could not load file or assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.":"System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"}.
There were no changes to this project since the last successfuly deployment last week, but today I am getting this error.
View 14 Replies
Jun 2, 2011
I have a panel, 80 pixels wide and 720 pixels high. However, this panel will stretch to whatever height the user's display is at as the form border style is none and the form is set to maximise.
Inside the panel I have another panel, 78 pixels wide and 400 pixels high. As the form loads, how do I centre the nested panel?
x = Panel1.Width / 2 - Panel5.Width / 2
y = Panel1.Height / 2 - Panel5.Height / 2
If Panel5.Height < Panel1.Height Then
[Code]....
View 5 Replies
Sep 2, 2009
Public Class form1
[Code]...
Why is the "Me" keyword not working. The error was "Syntax error"
View 5 Replies
Jul 7, 2009
At the moment when i run my form1.vb program it runs in the top left of my screen, when i save it as an application and then open it from a shortcut will it still do this or will it open in the centre of the screen? In the designer it is in the top left of the screen, is there a way to move it here? as my assumption (which is probably wrong) is that the position it is in the designer is the position it is as an application? Is that right? and if it is how to i change the position in the designer?
View 4 Replies
Mar 23, 2012
Basically I currently have the following code which enables me to print the form perfectly.
CODE:
However, with the coding above on the print preview the form screen shoot/dump isn't centred. So I was wondering what would be the way to go about doing it? This is using the printform in the power packs available btw.
Also I figured it might be using height/width/location/margins etc, but I'm not to sure how one goes about assingning values to them. Like the two above I commented don't work.
View 1 Replies
Dec 30, 2009
I have a single form windows application and here is my question; When I set the property of the form's start position manually to centre parent or centre screen it starts up in the centre of the screen. When I do the same thing in the form load event:
[Code]....
View 4 Replies
Jul 5, 2009
I'm building a Visual Basic program to allow me to change my desktop background through VB. I've made it so the user can select a file and set it as the wallpaper but i'm wondering if there is a way to allow the user to decided on the position eg Stretch, tiled or centre.
View 1 Replies
Sep 27, 2011
I have a ListView object in the form with 1 column.How can i make this column heading TextAlign to Centre.I checked by adding more than 1 column, then i am able to TextAline to centre whose DisplayIndex > 0
View 6 Replies
Nov 17, 2011
I have an application, in which i have some windows forms and About form.When i show these windows, As of now they are coming somewhere near screen top left. But i want them to come at the screen centre.
View 8 Replies
Mar 11, 2010
i have managed to get the form to resize according to the screen resolution but now im struggling to centre the objects on the page?
View 11 Replies
Dec 6, 2011
I am calling the OTA API from HP Quality Centre and one of the calls requires sending a NULL. This is the actual line of code:
stepF.AddItem(NULL)
This works perfectly in VBA and VB6 but VB.NET doesn't accept Nulls. Anyone know how to fix such an issue?
View 4 Replies
Aug 16, 2010
When using Sendkeys with vb.net, is it possible to tell if the target of the Sendkeys has changed between sendings?
View 1 Replies