
Simon
Avatar/Signature-
Posts
28 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by Simon
-
Hello, my app needs some built-in sound recorder so that the user easily can record his/her own sound files and use with the program. Otherwise I think I can link to the Windows Sound Recorder in some way, though it feels better to make it built-in. If you have done something like this, or you have an idea on how to do it, please help me :)
-
Hi, If I close a form with the close()-method does it rest in the memory until i wake it up again with the show()-method ? How do I close a form completely as though it had never been opened?
-
Since Explorer 5.01 is required in order to run .net apps, can I send the Explorer setup file along with the program in case the user dont have it? Or is that a violation of the Microsoft copyright rules?/Will I have to pay Microsoft to attach Explorer to my program? Anyone works for Microsoft here?
-
I wonder if the .NET Framework (the network that must be installed in order to run a .NET app) will run on Windows 98 according to Microsoft? (Sometimes it works, sometimes it does not.) What are the minimum requirements for installing .NET Framework? And my final statement would be: This forum is GREAT! :cool:
-
I have app1.exe and app2.exe. In app1 there's a button, when the user clicks this button it'll open app2 and close app1. 1. Is Shell() what should be used for executing an application from another appication? It works so i'll guess it's the best way :) 2. How do I check if another application is running (if it is, close it, if it isn't, exit sub)?
-
Any good ideas on how to keep track of reckord number with sequential acces? The advantages of sequential is that it provides carriage return-linefeed which random acces does not. Is there a simple way of keeping track of reckord with seqential or is there a way of using carriage return-linefeed with random?
-
VB .NET says that: "There was an error generating the XML document" when executing the last statement below: ( i think it looks just fine :confused: ) ( sorry for the delay - i check this forum two or three times every day, but sometimes it doesn't let me post a reply :eek: )
-
Thanks guys, this forum is great :) I managed to do an app that serialized and deserialized a string and an integer - but colors (system.drawing.color) couldn't be serialized!:( Well, there is a way of storing color in .ini-files - i just translate the color to an integer value, and when reopening it i translate is again to a color. Now, i can't assign an integer to each of the millions of color, but i'll be able to store some colors - like ten colors or so. Is there any way of serializing colors?
-
I sure have forgotten something. VB .NET says "Type 'StreamReader' is not defined" and "Type StreamWriter is not defined". What did I do wrong :eek: ? __________________ SiMoN.
-
Hi forum, My fullscreen application consists of two forms, a menu and a game - both contain a number images. When the user changes between these two forms (which are both fullscreen) the computer first draws the background of the form and leaves the images as empty holes while loading them. Now, this is only visible for half a second or so but it doesn't look good - it works but it does certainly not look good and the gives the user an impression of an unstable application. I'd like to have a sort of "loading, please wait"-thingie that waits until the form has loaded before showing it completely. I want the same thing when starting the application. It always takes a while before the first form shows. Do you know of a fast and easy way of doing this? Thanks. ___________________ SiMoN.
-
nice translation dynamic_sysop ! ciao ____________________ SiMoN.
-
Is it possible to use Keys.Left and Keys.Right in VB.Net?
Simon replied to DiverDan
's topic in Windows Forms
If you have a command button on the form, the keypress event of the form is not called - but the keypress event of the button. I don't know if that's what's wrong :-\ , just a tip :) _______________ SiMoN. -
Deployment in .NET is really powerful. It takes a while to find all the tools (the help library is rather complicated :( ). Dev studio also has an icon editor :) that's cool, i never thought they'd think about that. _______________ SiMoN.
-
The installation package consist of four (!) files: settings.ini setup.exe dotnetfx.exe blabla.msi is there no way of reducing the numbers of files to one or two? I wouldn't like the user to pick the wrong .exe-file. ____________________ SiMoN.
-
I'll try your example, dynamic_sysop. As for now, I use random acces to read and write from my settings file, in order to store the values in structures for future use. Is that a good way to store settings ? ______________ SiMoN.
-
Hi forum :) __________________ I'm working on an application that consists of form1 and form2. I want the user to open form2 from form1 and then be able to show form1 again. So far I've done this: In form1: Private form2 as New Form2 Private Sub GoToForm2_click( ...) form2.ShowDialog() End Sub and... In form2: Private Sub ButtonClose_click( ...) Me.Close End Sub Now, this is a fullscreen game and I don't want the form1 to be opened in the background. I can close it after loading form2 I think, but then I can't re-open it from form2 :eek: If I have both a "Private form1 as New Form1" and a "Private form2 as New Form2" the application refuses to start. How do you link between forms? _________________ SiMoN.
-
Hi folks What is the advatage of using XML instead of .ini? It just seems more complicated:eek: Im sorry, the msdn guides don't help at all:( bye, SiMoN.
-
Ooooo blimey ... lol :) Okay, I'm gonna try hard to understand this XML Serializer, now that I have a whole bunch of text in very difficult english to read though. But I can manage! I'm stunned by the possibilities of .NET and how complex programming can be, now, this is gonna be a challenge for me. Once I've understood I'll be very happy and that is, in my opinion, the most wonderful part of programming - to finally understand. Thanks, SiMoN.
-
Hello, For an application that I'm working on I need to save the settings in .ini-files. I chose the random access to read and write to these files because it was the easiest. Now, these .ini-files do not look good if you open them in a text editor (no carriage return) so I was thinking of changing to sequential access. So, do any of you use settings-files within your application? If so, do you use random or sequential acces or something else perhaps? Thanks, //Simon.
-
Hi folks, I need help in making a sound recorder. Anyone has an idea on the smartiest way of making one? Has anyone made one before in visual basic or in another language? Thanks. //Simon.
-
Hi, How do you do when you're passing a variable value between forms? Do you use a shared variable or is there another way? Lik sedning an argument in the Show() method, that would be great. Regards, SiMoN.
-
Okay, so i just solved the problem by declaring the variables as shared. Visual Basic tells me that: "Structure 'Settings' must contain at least one instant member variable or event declaration". So I added a "Dim a as Integer" declaration just to get rid of the error: So, this work just perfectly, but, why can't a structure contain only shared members? Regards, Simon.
-
Hello, I hope i posted this to the right forum, otherwise, move me. In my application the user shall be able to change settings, the settings are save to a file so that they hold their value until next time the user runs the application. Now, I've done like this: In the settings form: - when the form is loaded the settings file is opened and stored in the structure Settings. The settings are loaded into the controls on the form. - user changes settings. - user clicks 'save settings' and the settings are stored in the structure Settings. - the values of the settings structure are saved to the settings file by random access. When the application runs: - the settings file is opened and the settings are stored in the structure Settings. In this way the subroutines and functions should be able to get settings data from this Settings structure. My application consists of many classes and forms so each class has the following declaration; Now, I can refer the Settings structure in this way: This, returns nothing though, TheVariable is empty. Confusing, because the Settings structure was set in the Load event of the first form. So I've tested it many times and discovered that the Settings structure has no values other than in the first form. Seems like Private Settings As FileIO.Settings makes a new, empty intstance of Settings. The FileIO class and the Settings structure are declared in this way: The FileIO class is locate in the same file/form as the first form (but not within another class), could this be what causes it? I can't create a class that stands all alone which belongs to no form. Seems like declaring the structure as Shared would be the right way, since shared variables have a lifetime that lasts thoughout the entire execution, until it's terminated. Visual Basic does not like this at all and says: "Shared is not valid on a Structure declaration" I hope you understand the problem :) Regards, Simon.
-
I just read the chapter "Your first OOP" in the sample chapters book that followed Visual Basic .NET Standard. Now I understand what a class is, good work Microsoft! I realizes that my application doesn't need a module and thus the problem solved itself. The reason why I created a module in the first place was because I wanted a way of grouping my procedures. Since I've used VB3 and VB5 for a long time I tend to make procedures and functions for almost every code that can be used by other procedures (rather than writing the same code twice) I wonder, is this good .NET programming, having so many procedures, or is it something that better belongs to VB 3-6? (I've tried using the classes, but unfortunately, the application I'm working on now doesn't require more than one class :( :( ) Regards, SiMoN.
-
Hello, I have been working with Visual Basic for a couple of years and recently I bought Visual Basic .NET. I've managed pretty good with my experiences from Visual Basic 3.0, but sometimes I just don't know what to do :D, and the documentation doesn't help me at all. My question is simple: From a module I want to access the properties of a textbox on a form. Is this the correct syntax: formname.textbox.Text = "" This doesn't work. VB says: "Reference to a non-shared member requires an object reference" How do i share the member? How do I make an object reference to my textbox? Regards, SiMoN.