newguyintown's Q&A profile
Visual Studio Express Editions Sorting a Combo Box that has a DataSet
I'm very new to programming, so I apologize if I'm asking obvious things: How do I sort a combo box that is filled with data from a dataset that is bound to the box. Right now, it is sorting based on the ID numbers from the table, but I want to sort it by name (which is a different column in the dataset). If you try to change the Sort Property to the combo box itself, it says "Combo Box that has a DataSource set cannot be sorted. Sort the data using the underlying data model." I just don't know enough yet to understand what that means or how I do it. That works for the combo box itself, the problem using that is that the other textboxes, etc. that are bound to the original binding ...Show All
Visual Basic saving the reorder sequence of toolstrip items
after ALT - left mouse button drag. I would like the re-ordered sequence to be persisted between sessions. Any ideas Is there a My 'something' object or mechanism that would provide this capability I am trying to figure out how to have runtime customization (which toolitems to include in the toolbar and which to hide) and I would like to persist that customized settting as well. Thanks, -Greg Use user settings to store the location (order) of your menu items...on startup read the values from My.Settings and then setup the menuitems accordingly....when the user changes the menu order...save the setting and if the value is -1 then it is not visible ...Show All
Software Development for Windows Vista I don't think this is a Video Driver or Bios Problem.
I'm having a problem with Windows Vista Ultimate 64 bit edtion on my HP laptop, when i close the lid but i have set up what windows does when i close the laptop to do nothing, but when i close the lid, and re open it, the screen is off/black, cant shutdown it properly and must do hard reboot. Laptop is HP Pavillion dv9000nr AMD Turion 64x2 Nvidia GeForce GO 6150 1gb memory same problem with my hp compaq nx6320, i have the latest video card drivers as well, one thing to do until there is a proper solution is to create a sleep button, and put the computer to sleep and wake it up again with the laptop lid open and windows should restall, it takes time but is better then turning off your lapto ...Show All
Smart Device Development Can't debug deploy WM5.0 mobile app
I have a Windows Mobile 5.0 application that I can copy to and run on a target device, however when I try to start debug under VS2005 says "Deploy started ...." then after about a minute comes up with the error: "Returned by WSARecv or WSARecvFrom to indicate the remote party has initiated a graceful shutdown sequence." I am connected via ActiveSync 4.1.0 and can access the device as well as open sockets in either direction (using IP addresses 169.254.2.1/2 - where are these documented!) so I have connectivity. What am I doing wrong Any suggestions welcome. Mark I have been doing some more testing and find I get the same error if I try to run any of the VS2005 Remote Tools. ActiveSync is still fine however. I am running VS2005 in a VMware ...Show All
Windows Search Technologies Validation Code
I have no idea in what section to ask this question, so I chose this one. I tried to download the beta Internet Explorer and in order to validate my ownership of winXP I was asked to punch in my "Validation Code." Could someone please tell me exactly what this cod is and where I can find it All I can find is a "Product Key" and a "CD Set" number. I purchased WinXP from the store that serviced my computer. Anyone im afraid this is the wrong place to post the question. The best to ask the question is in the appropriate newsgroups, located at: www.microsoft.com/communities Personally, I dont know why it is asking you for a validation ...Show All
SQL Server attached in vb8 vs vb6 incompatability
I have two programs which access sql server 2005. One was written in vb6 the other in vb8 (aka vb.net 2005). vb6 works well with this connection string: Provider=SQLNCLI;Integrated Security=SSPI;Persist Security Info=False;Database=MyDbName;Data Source=.\MyServerInstanceName vb8 (in vs2005) generated the following connection string which works well in the vb8 application: Data Source=.\MyServerInstanceName;AttachDbFilename='C:\MyDbPath\MyDbName.mdf';Integrated Security=True Within their own programs each connection string works well. However, if I use one program and then the other (e.g., vb8 program then vb6), I get an error message: Unable to open the physical file "C:\MyDbPath\MyDbName.mdf". Operating system ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How can I create a GUI for my XNA game? (do any GUI libraries exist?)
Almost every game needs a GUI of some sort so I'm wondering how I can create one in XNA... Do any XNA GUI libraries exist Thanks, John Don't forget to search the forums before creating a new post. This topic has come up several times before. Here's one thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1204342&SiteID=1 ...Show All
Visual Studio Configuration Manager
I can't figure out what I should do to build a non-Win32 project. (FYI... it's an RTSS OS Build www.ardence.com ). I try to set the Platform but can't. I went into Configuration Manager, Active solution platform:, New... Then I try to use it, it's not in the list for the Configuration Manager, P r oject contexts (check the project configurations to build or deploy): , Platform dropdown and it's not in the list. I've restarted and while it's in the Active solution platforms it's not choosable anywhere. When I try to add it in the New Project Platform dialog the dropdown is not editable (as it was when I added it) nor is it in the list there either. I read the doc on the description of a "Project Platform". It was so vague a ...Show All
SQL Server Special Characters appear importing from MySQL
I am importing a small table from MySQL through a linked server on a daily basis. I found that in two fields, when there is no data, it is including a box character for each blank spot. I'm guessing this special character is showing up because sql doesn't know how to represent it, but I don't get why it is there at all. I wan't to show either a NULL or blank value. I updated the MySQL driver to the latest and that didn't help. Any ideas are appreciated. ...Show All
Smart Device Development i have no clue
Now it seems to be and i dont know anything about GPS or C#, but i am a C programmer (ansi C) um, and i just picked up the 67000 and ran across this site because i am interested in getting the gps going. but i was skimming threw it, and reading what you guys said, and looking at the API lib, could it be possible that theres a link when using EMG911, to GPS that does a IOCTL_SERVICE_START or something like that and STOP when EMG isnt active. i also noticed that its using GPD0, which i would think a new registery vaule needs to be added to use COM*: along with a driver the invokes START, that way in the GPS managing software (you would probably have to write a new management software) you could assign which port for the hardware and wh ...Show All
SQL Server DTS Export to Excel
I'm looking for the best way to export the results of a parameterized stored procedure (SQL 2000) to excel. I can do this with DTS using global variables for the parameters, but each time I execute the package it appends the data below where the previous data was, leaving a bunch of blank rows. I need the data to always be appended to the 2nd row (replacing the old data) because I have a chart based on a dynamic named range in Excel. Is there an easy way to do this in DTS, or should I approach this another way (ADO, ActiveX Scripts, .NET, etc.) Thanks, Dave Thanks. I was thinking that using Microsoft Query as you described might be the way to go. I actually came up with something that works using DTS ...Show All
Software Development for Windows Vista Problem with the sample "ASPNETWithPersistenceAndTracking"
Hi All, I'm studing the sample "ASPNETWithPersistenceAndTracking". It is really a great sample. But everytime when I restart my IIS server (using "iisreset" in the command line), the previous persisted workflow instances cannot be fetch back in the "Tracking" service. Below is the error message when I clicked the instance GUID in the "default.aspx". Have you also encounter such problem Pls kindly advise. Thanks. Server Error in '/TestApp' Application. Take a look at this post for the answer. ...Show All
SQL Server SSIS-jobs fails after installing SP2
On my laptop I've got SQL2005 developper edition SP1 with 3 SSIS-jobs scheduled through SQL-agent. These 3 SSIS-jobs are in fact maintenance plans which are also used on our production SQLServers. These take backups (full, transactional), Cleanup old backups, reorganize indexes, update stats ... One of these jobs runs every hour to take transaction logbackups. After installing SP2 this started failing. When I opened the sources of that job in visual studio It seemed like the unit of thime was changed for cleanup jobs fe cleanup bak-files after 4 days changed into after 4 hours. The backup task for transactional backups which had the property to do that for all databases whas changed into specific databases which no database sel ...Show All
Audio and Video Development Problem with 'content ID' while creating directory in 'persistent storage'.
Hello Everybody.... In the java script for creating a directory (FileIO_createDirectory), do we have to specify the content id also If we don't specify, whether the directory will be created or some exception will be thrown I am giving two examples below, please tell in each case what will happen. 1. FileIO.createDirectory("file:///required/app1",callback_createDirectory); 2. FileIO.createDirectory("file:///required/11111111-1111-1111-1111-111111111111/app1",callback_createDirectory); Hi, Also, according to the Spec Z 3.1.3 createDirectory API, directory can be created in the persistence storage. But, while creating a directory, a Content ID has to be specified. Who specifies this content ID, the 'Content au ...Show All
Visual C# HELP! circular assembly reference
Hi, I have a custom text box control that fires rules on the text leave event. To fire the rules I need the ruleset and rules execution parameters to be passed from the form. I was doing this using the following code private void TextEditor_Leave( object sender, EventArgs e) { BaseForm FindForm =( BaseForm ) this .FindForm(); if ( null != FindForm.ruleExecution) { try { FindForm.ruleSetDataSet.RuleSet.Execute(FindForm.ruleExecution); } catch ( Exception ex) { //MessageBox.Show("Exception thrown \n" + ex.Message); } ...Show All
