bdkf13's Q&A profile
Visual Studio 2008 (Pre-release) How do I scroll a TreeViewItem into view?
Is the a ScrollIntoView equivalent for TreeView Here's what I ended up using: treeViewItem.IsSelected = true ; while (treeViewItem != null ) { treeViewItem.IsExpanded = true ; treeViewItem = treeViewItem.Parent as TreeViewItem ; } treeViewItem.Focus(); ...Show All
Visual Basic Efficient Table Design
Which table design is more efficient when accessing large amounts of sales unit information OPTION1 Jan Feb Mar Apr May Product A Qty Qty Qty Qty Qty Product B Qty Qty Qty Qty Qty Product C etc... OPTION 2 Product A Jan Qty Product A Feb Qty Product A Mar Qty Product B Jan Qty etc... Option 2 would produce well over 1,000,000 records with a two year history. An admitted beginner, Riceroman I would do mine as the 2nd If you are looking at a relational database design Option2, If you are looking at an output Option1 but its easy enough to translate Option2 into option1 for outputting to a grid in a SQL Select statement ...Show All
Microsoft ISV Community Center Forums Need help writting a script similar to...
Sub CommandButton2_Click Me.Textbox7.Text = My.Computer.Filesystem.ReadAllText("C:\info.txt") End Sub I'm a newbie at VB all around, thought that the My namespace was part of the VBA build. I have no clue how to write this kind of script in VBA. Basicall, I have a file (C:\info.txt) that I need to copy all of the info in this file into a textbox (textbox7 to be exact) on the form whenever commandbutton2 is pressed. Any help would be greatly appreciated. Thanks Jdwilliams Hi, the My namespace is breeding some lazy developers. :) No worries chief... When using the file system in VBA I tend to use the FileSystemObject... Set fs = CreateObject("Scripting.FileSystemObject") Set a = fs. OpenTextFile (&q ...Show All
Game Technologies: DirectX, XNA, XACT, etc. d3d9b Debug Version
I have installed a game that wasn't working properly, after wards it told me i needed to download DirectX SDK but after i used the program the same problems are still occuring. also it said that my d3d9b is a debug verion and will slow my computer down. what can i do for this problem help me please! Please note that these forums are developer technical forums. That is, for DirectX programming issues. For usability issues, please contact the game's company technical support, or use this newsgroup: http://www.microsoft.com/communities/newsgroups/en-us/default.aspx dg=microsoft.public.directx.misc&cat=en_US_c35e9667-505f-4005-814b-c077ea156e5f&lang=en&cr=US ...Show All
Visual Basic KeyDown Event...
Basically I have 2 pictures that are changing back and forth with a button pressed. My problem is I want there to be a delay in how quickly they change when the button is being held down. I tried a sleep function but it just blurs graphics or makes them disappear for the set time. I am thinking of using the timer function to solve that problem but I don't know the code to temporarily disable the key and/or halt the KeyDown event before it fires again. Any help would be appreciated, I've been at this for a few hours now and looked all over. I found something about a Me.KeyPreview = False but this doesn't seem to do anything for me... Thanks in advance for your help! After some tweaking, your mouse code ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Server Client architecture
I am developing a simple FirstPersonShooter game. Right now, there are no plans for multiplayer mode. So, I decided not to have server-client architecture (partly because I don't know how to implement it!). But later, if I wanted to extend the code for multiplayer support, should I remodel the entire game to server-client architecture Or are there other ways How difficult is it to write a server-client architecture as opposed to a normal monolith application I am new to this online game programming, so I need some help with this. Thanks. Well, it depends on what you want to do. You will have to choose the proper communications platform and learn how to use it. Appart from that, you may have some things in mind from now, ...Show All
Visual C# Unable to update the dependencies of the project
I have had this error every time I try to check my program into source control after making changes. The project builds and works fine until I check it in and check it back out then it won’t build. I have deleted the setup project and built a new one only to have the same problem after checking it into source control. It also givs me a warning that " Assembly ' FolderName\FileName.exe ' is incorrectly specified as a file. Any suggestions would be helpful. 1. Yes, there is a database project in the solution. 2. If I delete the hierarchy section in the project file I just get the same series of " ERROR: Unable to update the dependencies of the project. The dependencies for the object 'xxxx' cannot ...Show All
Windows Forms Control visiblilty of main form component after the close of pop-up win form
Dear All, My problem here is that first I have a combo box. Upon selecting a value of the combo box its visible set to false. Then at the same location the visible value of a text box is set to visible=true. The problem is that if the value which is keyed in the texbox is below a certain range then a pop dialog or winform will appear for confirmation of acceptance of the lower value. Upon making the confirmation via the pop-up win form the control gets back to the main form. Now I want the combo box to be visible=true and textbox visible=false when the control is pass back from the pop up winform to the main winform. Thanks. Why I'm assuming you're using the ShowDialog method to show your pop-up ...Show All
Windows Forms Generic Bootstrapper - SQL Express Named Instance
I'm using the bootstrapper to install a named instance of SQL Express as a prerequisite. If SQL Express is installed on the computer but my instance isn't, the bootstrapper will bypass the installation of my named instance. 1. Is there a way of passing an argument to the SqlExpressChk.exe to look for the named instance instead of any SQL Express installation 2. Is there a better way of accomplishing my installation goal Thanks, Wayne Hi Doppalapudi, I got round my problem in the end by changing the product.xml and package.xml files in the bootsrapper. Firstly I checked whether my instance was installed by doing a registry check in the product.xml: < RegistryCheck Property ="SQLVersio ...Show All
Visual Studio Tools for Office Automatic update of VSTO application not working on Client machine but does work on Dev Machine
Hi - Our team were able to successfully test the automatic update process of their VSTO application (Outlook 2003) on the development server using the combination of PUBLISH of the Outlook project (on to some deployment server - Windows 2003) and the creation of the .MSI file on the Setup project. The .MSI when installed on this development machine, followed by the PUBLISH of the newer versions of the application on to a deployment server (File System option - Windows Server 2003) successfully pulls up the newer versions on to the local development machine when OUTLOOK is opened the next time. The issue is when the .MSI file is installed on the End User Machine. The .MSI file was installed and the application works fine. But the a ...Show All
.NET Development Is C# working with degrees or radians?
When you use the Math library the Sin, Cos, ACos, etc methods work with radians but in graphics.DrawArc the startAngle and sweepAngle must be given in degrees. It's not a big problem but it's a bit confusing to have to go passing between radians an degrees all the time. PS Sorry, I know I have to improve my English C# doesn't use either. The C# language has no built-in notion of angles. And since it doesn't have any native representation of an angle, it doesn't actually make sense to ask whether it works with degrees or radians. Math.Cos, Math.Tan and so on are not part of C#. They are part of the .NET Framework Base Class Library. As such, they are language-neutral - the same functions are available to VB.NET ...Show All
.NET Development ODBC ConnectionString property drop down
Hi everyone, I've been stuck on this problem for a while and was looking for some help or inspiration! I have a web service that connects to an IBM Universe database using an ODBC connection. I dragged and dropped an odbcConnection object from the toolbox onto the service1.asmx. In the properties window I built up the connectionstring of the odbcconnection using the dropdown menu and the new connection... options. I specify the dsn, username and password and the service builds correctly and the webmethods that use the connection run and return the correct results. Woohoo! However, when I return back to the properties window of the odbcconnection object and try and modify the connection string the drop down menu shows the follow ...Show All
.NET Development Events management in COM from .NET
Hi! I have a COM in C#. Then I need to call a method asynchronously and the with an event inform the client that the method has finished. How can I do this . My client will be a VB 6.0 application and a Director Application. I'll thank any help. Regards, Jorge Arias http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconraisingeventshandledbycomsink.asp ...Show All
Windows Forms Multicheck menu
Hi, When I click in menu the list of menuitems is opened. 1) Now when I click on item (without ctrl holding), the item is checked and the menu is hides and runs the item event. 2) Now when I click on item with ctrl holding, the item is checked and menu stays visible and no event are created. When I click on item (without ctrl holding), the item is checked and the menu is hides and runs all items' events. How can I do this Or where can I download the source Thank's Alexei You cant do this, at least not with a standard Menu control. Clicking an item will always close the menu. The best you could is handle the click event, set the checked property of the menu item, then try to reopen the menu, but there would be ...Show All
Visual Basic i forget what s the name of input message box
to prompt the user to enter a string in a little input text box Thanks What is your follow up question It is there as Nogchoco states (if you need a quick and dirty way of getting a simple input while testing). There really isn't a necessity for it in the core .NET framework. ...Show All
