473,549 Members | 2,864 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Structure and delete-ing..

I've rethought my design and went with a structure and array list. Add is
fine..remove doesn't work.

Structure:
Public Structure stik
Dim x As Integer
Dim y As Integer
Dim bm As Bitmap
End Structure

Arraylist..
Dim Stik_es As New ArrayList

and the remove/add code:
Dim nuStik As stik
p = PointToClient(p b.MousePosition )
x1 = ((p.X \ cSize) * cSize)
y1 = ((p.Y \ cSize) * cSize)
g = pb.CreateGraphi cs
nuBM = Image.FromHbitm ap(hBit)
g.DrawImage(nuB M, x1, y1)
nuStik.x = x1
nuStik.y = y1
nuStik.bm = nuBM

If e.Button = MouseButtons.Le ft Then
Stik_es.Add(nuS tik) 'This is fine
Else
Stik_es.Remove( nuStik) 'This isn't! It doesn't remove
it..
End If

Does remove not work because of the bitmap? How else would it compare
bitmaps?

Nov 21 '05 #1
0 841

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1328
by: Jake Jessup | last post by:
Ok, I haven't been doing too much database work lately and my brain has gone soft. I need some help with proper structure. My database is being used to track television shows. Any given show will be associated with at least one production company (call it ProdCo) but possibly up to 3 production companies (never more than that).
19
6813
by: Thomas Matthews | last post by:
Hi, Given a structure of pointers: struct Example_Struct { unsigned char * ptr_buffer; unsigned int * ptr_numbers; }; And a function that will accept the structure:
5
1286
by: Peter Schmitz | last post by:
Hi again, I've defined the following structure: typedef struct _MYSTRUCT{ CTypedPtrArray<CPtrArray,SECSTRUCT*> a; CTypedPtrArray<CPtrArray,SECSTRUCT*> b; BYTE d; BOOL c; USHORT e;
14
4111
by: Just Me | last post by:
Can anyone fix the code below? I need to set pTo to NULL and pFrom to a fullfilepath followed by two NULLs Below Filename is a string With FileOperation ..wFunc = FO_DELETE ..pFrom = FileName??
9
8312
by: Paul | last post by:
I'm trying to make get my app to delete all the files in a specified folder and all the files within the folders of the specified folder. e.g. Folder 1 contains three files (File1, File2, File3) and two folders (Subfolder 1, Subfolder 2). .......I need to delete File1, File2, File3. Subfolder 1 contains FileA. .......Need to delete FileA....
5
3076
by: nass | last post by:
this is a thought experiment. i do not have the time to implement it and test it to see if it works so i am relying on your good will:) thank you in advance im on a linux machine (slackware 10.2) on an i686 intell processor. its my first attempt to convert a fileIO procedure, to a pthread so it won't stall the execution of the code. im...
16
8768
by: pkoniusz | last post by:
Hello everybody, Been just thinking how actually one could convert the following unmanaged code to the managed C++: struct JustAnExample { char value1; int value2; // etc ....
2
4851
by: ZeroBlack | last post by:
Hi, I would like to know if there's a function to delete a structure from a binary file and replace in the same place with the same structure but with other values. this is the structure i'm using: typedef struct { int card_num; char user_id; int money; } Card;
4
1284
by: shapper | last post by:
Hello, I have a class which I am using in my profile. I made this class Serializable by using: <Serializable()_ Public Class Options One of the properties in this class is of type Level where level is a structure:
4
1845
by: Alexander Adam | last post by:
Hello folks, I got a few question on some basic data structure stuff. Sorry if those questions might sound too easy or such but after googling a lot I didn't find a real answer to all those questions so appreciate any help. I need to keep a very efficient data-tree structure (parent, previous, next, first child, last child) within the...
0
7558
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7484
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7997
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7515
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5124
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3529
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1974
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1089
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
798
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.