
bpayne111
Avatar/Signature-
Posts
335 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by bpayne111
-
cool also is threading gonna be something i need to know before i get this working right? i have some concerns about the FileSystemWatcher how many filesystemwatcher objects is too many? after reading the overview on it. it seems perfect except i'm considering restricting my user to a certain number of files and folders to watch. brandon
-
have you considered adding some extra 0's on the end? i don't have my software near but that might get it to round at a different point in the number. when i get upstairs i'll look for some stuff brandon
-
thank you that's somethign i was curious of... i was considering making this a Windows App before making it a Service for easier debugging... Does that sound like a good plan?
-
when you open a folder you are essentially running a program. Windows Explorer is always run when you view a folder on your desktop.
-
to do what you want to do simply add this code to your forms Load event Private Sub frmMain_Load(ByVal sender as object, ByVal e as eventargs) Me.Visible = False Dim aForm as new frmAbout() aForm.ShowDialog() Me.Visible = True End Sub 'in the About form add this code so you don't piss your users off Private Sub anything_Click(byval sender as object, e as eventargs) Handles Me.Click, lblInfo.Click, picLogo.Click 'sample control names are used Me.Close() End Sub Dim _ticks as Integer = 0 Private Sub Timer1_Tick(byval sender as object, e as eventargs) _ticks += 1 If _ticks = 3 Then Me.Close() End If 'Change the opacity little by little to make it fade away and 'look 'more professional End Sub I am creating a utility to make about forms effortless I will be posting here when it is completed. brandon
-
I have an idea for a windows service but i'm not sure how well it will work out. So i'd like to run the idea by some of you gurus for speculation. First off I am an avid chess player and try to play as much as my day will allow. My games are all saved on my computer. Many chess players do the same so that they may analyze thier games etc... My idea is to create a windows service that would search for files that contain chess games and add them to a database. I'd like it to check for files that have added new games to them as well. My idea to accomplish this is to create a windows application that prompts a user for different folders and files to 'watch' for chess games. I understand that using the root directory would be horrendous on any CPU therefore only folders and files not drives would be allowed in the list. Once a user has specified where his games may be found these places would be added to a text file. I'd like to have my Service app search for this certain file every hour or so and search for games in these places and add them to a database. Is this a good idea to get me started in windows services? if i can get it to work it would be a great benefit to me and my chess life. I have many ideas that could stem from this application as well. Any suggestions or comments for this application are greatly appreciated. ps i know that i can not use a graphical interface for my service... this is why another application will write to a file instead. That way the service can find the file and search accordingly. issues concerning file access are running through my head as well... brandon
-
I have some images which i have added to my project as embedded resources. i am using the GetManifestResourceNames to find the names of images in the assembly. All goes well but i've noticed the same image will show up 3 times in the list of names. Why is this image in so many places in my project? Are there this many copies of my image in the assembly? Why does it store so many? i'm just curious brandon
-
possibility divils article on a form designer will accomplish your task i believe http://www.divil.co.uk/net/ in the set block of the property you should check to see if in designmode and load the designer if so good luck brandon
-
do you mean the total number of items in each list box?
-
sounds like a job for the api but.. i did find something interesting check this out in the help files http://ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemwindowsformsuicuesclasstopic.htm the Control.ChangeUICues method seemed to be of interest i'm not sure what to do with it but you can always experiment i had typed some big jerry riggin way of doing it, then i found this method. if you'd like to hear my jerry riggin way let me know, just provide more details about what you are doing with the tab key so i can get it right. here is the extreme short jerry rig example Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick 'use your imagination End Sub hope something in all of that junk helps goodluck brandon
-
when you say 'certain collection' do you mean there are different collection objects and you'd like to choose which one during runtime? if so simply pass that collection as a parameter as well... you can even do it byval because it's a complex object. i think that's what you are trying to say. are these collections different types? Are you using methods from CollectionBase? or your own? try adding a parameter that is a CollectionBase. if you are dealing with some custom property, i THINK you can convert back to the first type using a try catch and nested if (i'm pretty sure this is polymorphism at work, i hope i am correct in that ) i hope that helps
-
sql and ole are pretty much the same anyway these days. a good book will point out the differences in the two most of the time. Mcgraw Hill has some vb.net books that go over some data access with ole here is the link for the advanced book by mcgraw hill http://highered.mcgraw-hill.com/sites/0072512393/ there is a beginner book also that goes over some ole data access as well. I wouldn't go out and buy either one though if data access is your only issue. Try using the book you have and just use ole data objects and instead. If you are using access databases use the Jet 4.0 provider and the rest should be the same for the most part Good luck brandon
-
Printing values from controls created at runtime
bpayne111 replied to feurich's topic in Windows Forms
print the values meaning properties? where are you having issues with this? just the printing part or accessing the control's values during runtime? brandon -
string text = Button1.Text; C# Dim text as string = Button1.Text VB is that what you are looking for?
-
one trick i used one time was hide the real cursor and created my own using transparency and my own images. it takes some work but the final product is great. you may need to use the Form.SetStyle method to keep the form from flickering. i hope that helps brandon
-
the SubString method is wonderful for searching strings brandon
-
What type of images are allowed in resource files? .bmp .jpg and what else?? .gif? tia brandon
-
The problem is solved... Congrats to microsoft for seeing my problem ahead of time :) Assembly.GetENTRYAssembly was the key. This returns the executing program's assembly not my controls YAAAAAAY happy day all my work is not lost now.
-
there was no method to debate... .... brandon
-
how do you do this in c#? i tried doing it the normal way i'd overload a method and it didn't seem to work. when i declared a new form using my overloaded constructor it gave me a "No constuctor accepts this number of arguments" error" or something to that nature. I rebuilt my project too, to be sure that it would find it. Am i missing something here? thanks brandon
-
I'm using 2002 i must have left out the line object[] objAttributes= asmInfo.GetCustomAttributes(false); by accident. I'm trying to use the GetAttributes method from the UserControl on an inherited form; and return the attributes of the project which has added the inherited form to it. I sadly left this out before. I should have been more specific. Now that i think about it the GetAttributes method should be in the inherited form instead... but i don't think it will make difference in what i'm trying to return. I'll try that out but i have a feeling it won't work either. i'd still like some more input on this subject if possible. Thanks for your help. brandon