jschumann.net's Q&A profile
Visual Basic How to not get combobox SelectedIndexChanged be executed on load
Hello, As what the subject line is.... What is the method to not allow combobox SelectedIndexChanged to be executed on load... and only make it to be executed when a "USER" changes the selection value. Thanks Well yes that is true, but I am still trying to figure out why initially the index is being changed. If its done by the developer, then perhaps we can move that code to some other event rather than onload (so it doesnt change the index until some perhaps user action has happened). I think i'm getting a bit carried away, my pesonal preference is just interferring! :-) I just do things a bit differently myself, but yes you are right and I would perhaps do that. Although would be nice to ...Show All
Windows Forms DatagridView, commiting changes immediatly please!
Hope I explain this right. I have a DataGridView, whos DataSource is a DataTable. This DataGridView has two DataGridViewComboBoxColumns. When I select an item from the ComboBox, I have to click on one of the other rows before i choose to save, or else the data is not commited to the DataTable. Is there a way that I can have any changes I make take affect the instant I select an item from the ComboBox Thanks. Hi, After you select an item from the combobox, the selectedinexchanged event fires. Therefore, you may put your save code into this event handler. How do I handle the SelectedIndexChanged event Sometimes it is helpful to know when a user has selected an item in the ComboBox editing control. ...Show All
Visual Studio Team System view all change lists
hi, i had two workspaces with files checked out on each. i checked in the changes for one workspace and to my dismay changes for both workspaces got checked in. not what i expected. so, i want to view the specifics of a change list relative to the database and not a specific file. i need to revert these changes that went in incorrectly but i don't know which files nor how many. i read somewhere that TFS was based in some manner on perforce which is very easy to use while in TFS...not so much. thanks, scott thanks richard. i cannot remember exactly what i did to get the changes from two workspaces in with one go, maybe it had something to do with the way i created the second workspace. i had a bunch of chan ...Show All
Smart Device Development Trying to connect directly from PocketPC to Oracle db
We get the following error: Error loading user data: Could not load type System.Data.ConnectionState from assembly System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=B77A5C561934E089 Can anyone tell me why Is there a way to get beyond it Thanks. That's because you can't use desktop assemblies ( PublicKeyToken=B77A5C561934E089 as opposed to PublicKeyToken=969DB8053D3322AC for NETCF) on devices. It appears you’re trying to use OLEDB or ODBC desktop providers from desktop .Net 1.0. It can't run, besides it won’t work because ODBC is not supported by the Windows CE OS and there’s no OLEDB driver for Oracle on devices anyway. There’s NETCF compatible Oracle ADO.N ...Show All
Visual Basic User & pwd authentication - Web App using vb2005
Could anyone please help I need to login authenticating the windows user and password UserName = txtUserName.text UserPassword = txtUserPassword.text MyDomain = txtDomain.text Hi, Show the default web page and drop the LOGIN control from the toolbox LOGIN area onto the default.aspx page. Your aspx.vb code will then need to be something like.>> Partial Class _Default Inherits System.Web.UI.Page Protected Sub Login1_Authenticate( ByVal sender As Object , ByVal e As System.Web.UI.WebControls.AuthenticateEventArgs) Handles Login1.Authenticate If Login1.UserName = "Admin" And Login1.Password = "myPassword" Then 'Do something. End ...Show All
Smart Device Development Soft Keys and toolbar control
I have a simple Smart Device application that needs to create a menu with images on it, so we are using the toolbar control. Whenever I add a toolbar control all of the sudden the Soft Keys that are usually tied to the mainMenu no longer work. I have tried this both with and without a mainMenu control on the form, but I never get the keydown event for the softkeys. I get every other key, but not the two menu keys. Is is possible to use the sofy keys with a toolbar If not, are there any options for making a mainmenu with images on it. Hi Watsonm2, You might find the following post from the compact framework newsgroup helpful http://groups.google.com/group/microsoft.public.dotnet.framework.compact ...Show All
Windows Forms Passing values from one form to datagrid placed on diff form....
Hi, If the two forms are in the same project, then there are several ways to do. 1. make the value public (though not a good idea) or global 2. write a function which you can pass the value as parameter ... But if they're two different windows applications, then you may use the Clipboard (OLE) to transfer the data. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C vs C#
Currently I'm taking a C class at my university and I was wondering how different is C# from C code wise. Thanks Sebastian I started programming doing BASIC on an Apple 2e and COBOL and FORTRAN on a mainframe. I then picked up Pascal and C, then C++. I had no problems moving from procedural to event driven when I finally picked up VB3. I can't imagine doing it any other way now. ...Show All
.NET Development Abort() Thread when Thread is finished processing?
Hi all, is it best practice to Abort() a thread once that Thread has finished doing its processing I currently have the following code... WorkerSignOffThread = new Thread(BackgroundProcessing); WorkerSignOffThread.IsBackground = true; WorkerSignOffThread.Start(); private void BackgroundProcessing() { processingDone = false; InspectionManager.FillInspectionGoodAnswers(SelectedInspectionUID); processingDone = true; } ...as you can see when the processing is finished, I don't use Thread.Abort(); Must I Abort() the Thread, or doesn't automatically about itself when it has finished Thanks Use Abort only when you try to end a thread while it is doing its work and when you have no way of waiting for it. It will raise a T ...Show All
Visual Studio Com Add-in Stops firing my custom events after displaying a C# Winform
I'm using VB 2005 to develop a Visual Studio add-in for Office 2003 I have looped through all the menu items and toll bacr buttons and added my own event to each of the commandbarbutton types using the standard C# += methodology. My routine simply displays a new winform as a dialog asking for a password, and if the user enters an invalid password, then the CancelDefault value is set to true, and the underlying default event isn't fired. This works great to begin with. After 10 times, my custom event is no longer being fired. Also, if I set CancelDefault = false, and let the underlying event fire, and again, after (6 times this time), my custom event stop firing. Any ideas Many ...Show All
Visual Basic Create new Webbrowser
I want to create a new webbrowser and display it in a tab I tried this Dim browser as New Webbrowser in TabControl1.SelectedTab But that doesnt work... hopefully based on that code you know what i'm trying to accomplish.. it doesnt compile at all because of the errors but your solution works, but I also have another problem there is a button for a textbox I have the button saying webbrowser1.navigate(textbox1.text) But when there's a new tab, the browser in the window won't be called webbrowser1, it would be called webbrowser2 or something like that so how would i specify the button to navigate using the selected tab's browser ...Show All
Visual Studio Team System Release date?
Any news yet on when VSTE DBPro will be officially released and out of CTP I found a date of Dec. 7th or 8th here: http://blogs.msdn.com/gertd/ That site is linked from the official product info page. ...Show All
Visual Studio Team System Sub Projects folder and orphaned objects
Hi I've just installed the new CTP, it's the third time I installed a CTP of TS DBA on my computer and I really apreciate this new tool. I've two questions about this CTP. When I go to the "New Projet" menu under "Database Projects" / "Microsoft SQL Server", I have two sub folders "SQL-CLR" and "1033"... What is this "1033" In "schema view" what kind of objects could take place in "Ophaned Objects" Thanks In CTP5 we made the database project locale aware, 1033 is the LCID (locale ID) for US English. CTP5 will also be released in Japanese and Korean, which is why we had to make the change, since the project templates contain localizable co ...Show All
SQL Server value is null remotely - non null locally
ok here is a WIERD issue. I've NEVER EVER had this issue, I have always done this and it works great both locally and remotely. I have a table, which is a "customers" table. I have a stored procedure which takes in parameters (name, address, password etc...) and returns me back, via a parameter declared as output - the customer ID. I've always done this, and works great. Now, this works fine locally. IF I try to run this/do the exact same execution of commands (create a customer) remotely (where the database is stored, so copying everything from local to "over there") it does not work. I get a DBNULL value back from the parameter, declared as an int output. IF I copy and paste this Stor ...Show All
Windows Search Technologies Folder selection bug
Hi, I have my second hard drive mounted to "c:\documents and settings\myusername". It does not have a drive letter. It appears in explorer, and in every other folder selection dialogue box I've ever seen. However for some reason it does not appear in the "folders to index" selection box. A fix/workaround would be much appreciated. Thanks, Tom We currently only index drives that are assigned drive letters. You can work around this by assigning a drive letter to this drive. You can keep your mountpoint but you need to have a letter assigned. ...Show All
