
bpayne111
Avatar/Signature-
Posts
335 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by bpayne111
-
Dim myForm as New frmTest myForm.Show Me.Hide
-
you need to pass a pointer to that object to your class... or edit the label in the form's code ie public class Fake public sub ChangeLabel(byval myForm as Form) myForm.label1.text = "this" end sub end class now your label will be accessible in that function
-
well i thought about using 'nothing' but i kind of like the fact that my objects get smaller as they go... this makes the program run much faster in the long term (consider a chess engine that uses these values over and over) i've done reading on them but didn't see specialized collections i will look at specialized collections maybe that's my missing link thanks for the info
-
I have two sets of collection objects (inherit from collection base) in a project. A property in collection A, depends on the index of an object in collection B. Everything is great until items are removed from collection B because the indexes are changed and the property that depends on the index in collection B is now wrong. I can fix this programmatically many different ways. But i wonder if maybe there is a collection defined in .NET that would be of use to fixing this problem. I am not searching these collections just constantly updating properties, in loops. My best idea so far was to create an array named TrueIndex that holds the values of the real indexes an allows me to trick my program in a sense. I was considering a loop but i have graphics that depend on this and the loop would slow down everything considerably. any ideas?
-
cool thanks divil... i noticed this post was moved... where did i put it to begin with? i could have sworn i put it in General
-
hey guys... I have my handy chess program that i'm sure we've all heard me ask questions for time and time again... but this time i truly feel i found a bug... I created my control and decided to add an icon to it for the toolbox... This is supposed to be very easy. i created a bitmap with the same name as the file, added it to my project and set it as an embedded resource. I compiled the project and BOOM there it is my beautiful chessboard icon. So time goes by i work on my program and experience many bugs... sometimes the control wouldn't even draw... (after christmas it was all screwed up) those bugs were fixed and everythign started working great again... So one day i'm programming the skin off my fingertips and i realize... hey where did my icon go?????? this made me very mad, i did some checking to make sure i hadn't messed up something somewhere... i found nothing. I then became frustrated and removed the file from the project compiled and saved it... then i decide that i'd try to get it back... so i added the file to my project, set it back up and compiled again... still nothing!!!!!!! Is the world coming to an end or is my version of vs.net screwed up???? HEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEELPPP!!!!!!!!!!!11
-
When writing events for classes should i use the OnEvent method to do my coding and leave the actual event for the user? For instance OnPaint and Paint... when i paint my control.. which is the correct method to use? my guess would be onpaint... but i'm not sure why. Also.. Is Me.Refresh the best way to repaint my form? or is there a faster way to accomplish the refresh of my form? i think i may have asked that second question before...but something makes me feel that me.refresh isn't exactly the fastest way to do it.
-
theres no such thing as stupid questions just stupid people :) (no i'm not calling you stupid lol) My best guess would be that an assignment statement isn't what you are looking for here... maybe you should look at a loop to set the properties of an object individually... I wish i would have finished my ADO book by now and i'd be able to help more... I think there is a method there that returns a single row but i don't know... until you can find that holy graile.. i'd suggest using a round about technique until you do find the right solution. although the guys here are pretty good someone is bound to know
-
divil.. i am interested in your use of the Return statement in that code... I would think that wouldn't work (syntax error or ....) care to explain?
-
yea i know i'm sticking to coding... that's why i'm trying to get one of you guys to help with graphics :) i've done some searching for pictures... of the ones i liked usually there were only pieces of one color... go figure thanks for the reply
-
Actually i'm pretty sure serialization is a fast operation to perform. I use it in my Clone method of a class i created. Worked like a charm and didn't seem to eat up alot of time. I'm interested to see what the experts have to say about it.
-
I'm develping a chess program. I have drawn some peices and they look ok. Good enough to know what the are and not hurt your eyes anyway. I'd like to add some simple lighting effects to them but i am ill equiped. If anyone is interested in drawing some pieces, i'd really love the help. I've been searching the net for some good ones but none are found so far. I can send my images to aid in the creation of the new ones if needed thanks
-
yes i guess that would be the better term. what about C#? and what do you mean by contentious?
-
you need to add a reference to System.Design in the solution explorer i think
-
off subject but here it goes when will we see dual inheritence? I was thinking that maybe interfaces should be allowed to have shared members to allow for a sort of dual inheritence ie. a property on an interface that would be the same for all implementations. NOTE: if you read the original subject title i guess i am on subject lol does anyone know if microsoft is wokring on developing something to mimic dual inheritence? just keeping the thread alive :)
-
Array to a file (text) help needed please
bpayne111 replied to s01655468's topic in Directory / File IO / Registry
.NET uses Streams now for reading and writing data to a file I know this isn't what you are looking for but the concepts make what you are trying to do very easy and i beleive microsoft is trying to phase out the old sequential file access. take some time and check it out i think you will be happy with the results you may wish to do some research on Serialization. Serialization lets you write an object to a file. When you serialize an object it will take your object convert it to some jibberish put it in a file you choose and then you may retrieve that object by Deserializing it. -
i see what you are getting at... but it looks like you did it kinda wrong. you didn't actually hide anything there was never a Sub New() to begin with. I think Overriding and changing it to Private would be the way to do it...
-
yes i've googled a couple times... found lots of links. i know how to start the project i figured that just clicking around in the IDE, i'm looking for tuturials for the coding of add ins. Microsoft has some documentation at MSDN but it's not quite what i'm looking for. I'd like to insert code into a file automatically. There are macro tutorials to do this. and i think you can convert macros to add-ins or something like that. Either way the search continues...
-
Using Initialize in the Designer Class worked great.. a funny thing happened though... i forgot to code my form that i displayed the first time and there was no control box on it either... so when the form popped up it was stuck on the screen. I had to close VS to get rid of it lol ohh and i'm using a verb as well to do it, so the user may do it at either time. i'm glad you posted that in your site. it was exactly what i needed
-
i was just curious i have a property in an interface that i really don't need in reality, i just got rid of the declaration in the interface... but that sitution just kind of spawned a series of thoughts, that made me wonder thanks guys
-
anyone know a good place to find a walkthrough for creating my first Add-In? I can create the project but i don't know what to do with it. thanks for any help
-
Is there be a way to Remove a method from a class that inherits from another? i seriously doubt it but figured i'd ask just in case
-
What about the Initialize member in ControlDesign class? I'm gonna play with it for a little bit... i think that might be the one. Interested in your thoughts/experiences I noticed i could use a verb to do it but, that's not quite what i'm looking for. I'd like to provide the user with form that let's them choose a from a few options for the setup of my control. I know this seems like something that should be done during run-time... but i feel this would be more user friendly than a giant parameter list.
-
yes i read that maybe 2 mintues after my post... very interesting.. i'm glad you posted that site... i'll use that in the near future
-
All this seems to be getting rather confusing... I'd like to restate my purpose real quick. During my control's instantiation i'd like to determine run-time or design-time at that moment... it seems DesignMode won't allow me to do that. AHHHH BUT WAIT I JUST HAD AN IDEA... the Paint event is called after Sub New correct? if this is so... then i may use the following code to produce a designer for my control this way Overrides Sub Paint(sender as object, e as painteventargs) If Me.DesignMode = True Then 'ShowCustomDesigner End If is this the solution to my problem? i think i got it figured out... but i'm sure you one of you will shoot it down rather quickly :) BTW if anyone gets divil's life it's me... but i'll just take his brain and you can have the rest.