jzfredricks's Q&A profile
Visual Basic Clickevents for a dynamically built menu
Hi, I'm making a custom browser with the webbrowser form and I've gotten stuck building the favorites menu. The way I have the code set up is that it reads all the favorites files and subdirectories in the user's default Favorites directory (Documents and Settings/$user/Favorites) and builds a dropmenu to the 'Favorites' menu button by adding the files one at a time as menu buttons. Subdirectories are also added, with dropdown lists of the files they contain. It's very similar functionally to the Internet Explorer favorites menu. Anyway, I have implemented clickevents for favorites menu using the DropDownItemClicked event, but this only goes down one level. I can't figure out any way to add event handlers to the buttons that dropdown from ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Create Vector from Angle
I have an angle of rotation in radians. Is there an easy way to convert this to a vector, as I have a 2D sprite ship I want to be able to rotate, and move in the direction of the rotation Simon Can you precise what kind of movement you are tolking to Because "the direction of rotation" has two meaningful values only - clockwise and counter-clockwise, relatively to rotation axis. ...Show All
Visual C# 同 How to use c # to write shrinking algorithm?
Algorithm use c # language is described shrinking Can write the code example thanks ----------------------------------------- 1: 0,1,9 2: 4,8,4 3: 7,3,3 4: 3,1,3 5: 7,3,6 6: 2,5,5 7: 4,5,9 8: 5,5,8 9: 5,0,4 10: 7,3,5 11: 1,9,3 12: 0,3,5 13: 5,5,0 14: 8,1,4 15: 9,1,6 //estimate next number through these datas --------------------------------- 16:( ),( ),( ) ...Show All
Smart Device Development WM 5.0 msfp emulator images - skins/devices
Hello, I have to test some WAP pages on diferent phones, but dont want to buy them. I want to use emulator instead. I have downloaded, installed and configured Microsoft Mindows mobile 5.0 msfp emulator images, i works fine. I wonder if there is a possibility to download more skins to use diferent devices emulation (like motorola, spv etc). I've searched through the net and couldn't find not even single one skin. If You know where to download this - I would appreciate. (if there is no possibility to download these - please let me know aswell) N. So the answer to my question is... There is no page where You can download this. So if I want to test application on diferent screen sizes I have to check the spec ...Show All
SQL Server Hide database names from unauthroized users in SSMS
If a user is not authorized to see a database can I exclude that database from even appearing in Management Studio for that user TIA, Barkingdog I have tried changing the view any database property, which works, but the user cannot see the databases that they own... is there something else that needs to be done for them to see these databases and no others ...Show All
Visual C# Help - folder's property dll
Hi.. In windows , when we right click on any folder or file, we get properties . In the properties we can see General/Security etc.. Is it possible to get the properties dll in c# please help Hi.. If you could please provide me your email address, i would send u the screen-shot of the design i have in mind. This will help you in understanding what exactly i want. Thank you ...Show All
Visual Studio Express Editions Starting visual basic
I just got out of college and I understand visual basic, but we only used it in the .net stuff so how do I just write regular visual basic and how do I save it. say to make a macro or such can someone give me a heads up on how that works Here's the home page for the Express editions b(to learn about them): http://msdn.microsoft.com/vstudio/express/default.aspx If you want to download it directly, from the Microsoft web site, you can go here: http://msdn.microsoft.com/vstudio/express/vb/download/ Or, if you want to download an 'iso' image, to burn to a CD (so you can install and keep it for your very own!) go here (also has the iso images for the other express products): http://msdn.microsoft.com/vstudio/express/su ...Show All
Visual Basic R
I'm sure this is possible to do. I am working with a UTF8 encoded file. When the file is opened in VB and loaded into a text box, the line breaks are converted to squares. Each line break is represented by two sqaures. I have been using code to replace bad chars, but the problem with it is that it replaces a single instance of the square with a LB. So I am getting too many LB's. How can I replace this with a single line break TIA Thanks for the tip! I tried the following and the code itself works, but still produces the chars. Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim reader As IO.StreamReader = _ New ...Show All
Smart Device Development Smartphone 2003
Hi! I want to write a game for a Smartphone 2003 using .Net Compact Framework (C#). I would like this game to be multiplayer to using Bluetooth. Please tell me a simple way to do this! A sample Bluetooth chat application would be perfect. Hi! I want to write a game for a Smartphone 2003 using .Net Compact Framework (C#). I would like this game to be multiplayer to using Bluetooth. Please tell me a simple way to do this! A sample Bluetooth chat application would help me a lot! ...Show All
.NET Development Configuration Manager
Hello All. Alright, let me start with just a little background. I'm working on a Windows Forms client application, and in order to make it a single-instance application, I've got a named Mutex, which I naturally want to encrypt to prevent a DoS attack from any assorted twerps. Now, for whatever reason, the folks at MS don't seem to see the need for a tool like aspnet_regiis.exe for client apps, so already this has gone from trivial to tedious. So, I worked up a little code to encrypt the config section in question, and I kept getting null reference exceptions. Well, I backed up a bit and the problem seems to be referencing the "appname.exe.config" file. Here's my code: using System; using System.Collec ...Show All
Visual Basic Adding Items to a ComboBox in a DataGridView
I have a DataGridView. It has two columns (0, 1). Column 1 is a ComboBox Column. How do I add items to the comboboxes in that column. I cannot find a method anywhere that will do this. Thank you, Troy L ...Show All
Visual FoxPro Emailing newly converted reports.
Hi; I have converted some older Foxpro reports to VFP9. Everything looks great, but: Before the conversion I could very easily save the report to file and then email it. After the conversion, obviously, I can't do that anymore. I have tried the ASCII option but it is not very good with spacing and columns don't line up etc. What is the best way to solve this issue Do I need to create a pdf/rtf/tif etc or is there a built in VFP feature that can help me Thank you all. Wow!!! What I wanted and much more. Thx. I didn't venture into report listeners yet, but I guess that gives me native graphic functionality for report output files. Thank you so much!!! Alen. ...Show All
SQL Server SSIS, BIDS and Temporary files
Why are some SSIS files, generated by the Import/Export Data wizard put into the local users temp folder Why are these not compiled with the package when the solution is built Is there some setting I am missing This architecture is kind of silly, as the server always needs access to the temp folder on the local machine to run. How can I get these temp files packaged with the rest of the package and deployed to the server so the server can run independent of the machine I develop the package on Thanks, Jeff I think that's because files generated by the Import/Export Data wizard are supposed to be temporary and isn't really considered part of the package. What data does your temp files con ...Show All
Game Technologies: DirectX, XNA, XACT, etc. this.IsMouseVisible = true;
Is there anyway to change what *.cur is used I didn't see anything but I may be over looking it. I also tried making a GameComponent, using a sprite as the mouse cursor and this allows me to change the texture when needed. I ran into a problem with this also. When the mouse leaves the GameWindow the Texture stays there and it appears to have two cursors on the screen. You could set rules that if mouse > screenWidth don't draw but if you move the mouse with anytype of speed it never updates. To work around that I set: Mouse .IsCaptured = true ; Which works great. Till the GameWindow loses Focus. Once the Focus is lost the cursor does not act the same. IE: Prior to losing focus, cursor will go UNDER the top blue windowbar (where ...Show All
Visual C++ Help compiling sample adsi code from MSPress
Hi I am a complete newbie to programming and would like to try and learn VC++ with the intention of writing small speedy apps specifically for AD. For kicks I tried compiling the code available at http://www.microsoft.com/mspress/books/sampchap/4477d.asp . Basically I created a new win32 console application project as an empty project. I then added a new .cpp file with the code copied from the above link. I have installed VC++ express and the R2 SDK and pointed VC++ at the SDK as per instructions available http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx . . However when I try to start debugging it fails with the errors below. ad.obj : error LNK2019: unresolved external symbol _FreeADsMem@4 r ...Show All
