George2's Q&A profile
Windows Forms add an empty line to combobox?
hello, I have two questions. 1) When using Databinding with combobox, the application shows the first record automattically inside the combobox. I want it to show nothing until the user selects drop down tab. When user selects drop down they should be able to see the available choices. How do i do this 2) I have another combobox that I don't want to populate until the selection is made in the first combobox. so how do i keep the combobox2 visible and unpopulated until the selection is made in first combobox (Making a selection in first combobox gives me a value that i use for filtering purpose for second combobox) I am very new to C# and .NET, so I would appriciate any links/instruction that helps me figure this out. thank you. ...Show All
SQL Server Including Views in Replication
I have a three server peer-to-peer replication setup that includes articles for tables and views. As I understand the BOL, scheme changes -- which I take to mean changes, amont other things, changes in the design of a table or view -- should automatically replicate to the other servers in the topology. Here are my quesitons: When including a view as part of the publication, what is it, exactly, that is getting replicated If all the tables supporting a given view are being replicated, and the view exists on all three boxes, whatelse, besides the view schema (and changes thereto) is being replicated Secondly, if in fact schema changes are replicated, why can't I modify a view that is part of a publication When I try to make a change t ...Show All
SQL Server sp_xml_preparedocument VS nodes()
I am considering converting a stored proc which uses sp_xml_preparedocument to a select using the node() syntax. I made two sql scripts, one of each method with identical input xml and ran a query plan on each of them. To my surprise, the Sp_xml_preparedocument seemed to produce the better query plan. The Estimated subtree cost for sp_xml... was 3.36433 for 10000 rows and the estimated subtree cost for nodes() was 421.126 for 60 rows. Am I missing something or is sp_xml_preparedocument still the best method to shred an xml document sp_xml code: DECLARE @idoc INT , @trans_id int , @after_doc xml , @record_type int , @sm_session_id nvarchar ( 50 ), @trigger_start_time datetime , @user_id int , @fo ...Show All
.NET Development Could not find installable ISAM.
I got the "Could Not find installable ISAM error" while uploading an Excel file in my application. The connection string uses the Microsoft.Jet.OLEDB.4.0 provider with following parameters Provider=Microsoft.Jet.OLEDB.4.0;Excel 8.0; Extended Properties=HDR=No; IMEX=1. I checked the registry entries as mentioned in the "Retrieving Data from Excell 2003-Could Not Find installable ISAM" post and even registered the "Msexcl40.dll" again. Even then I got the "Could Not find installable ISAM error". So I restarted the IIS Server. Even then the problem persists. What else could be the problem Thanks and Regards, Little The Excel ISAM is actually intalled wit ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Design Mode
I want to be able to dictate the order in which my components are drawn and updated. However, we are not allowed to change our ComponentCollection, and it has no concept of ordering other than the order in which things are put into it. What's the best way to deal with this Should I create separate components to manage all the drawing and all the updating, and just order the items in there, or am I missing something in the framework You might want to read this , especially the part about Game Components. ...Show All
Windows Forms how can i stop the IDE from being so "helpful?"
hi, when i bring up a form or a control derived object in the designer i can use the properties window, press the lightning bolt and add events to handle. when i type in a name for one of the events (Paint or KeyUp for instance) and either press "Enter" or click onto another event to handle the IDE immediately takes me to the newly inserted code. very annoying. i still have a few more events that i want to handle and with this behavior it becomes rather tedious. any ideas thanks, scott Moving thread to the Windows Forms Designer forum. -Tom Meschter Software Dev, Visual C# IDE ...Show All
Visual Studio Express Editions problem installing visual studio 2005 express on visa beta 2
I try to install it from internet, but the download stop immediatly. Then I download the iso image and burn it on CD, but the installation stop because I don't have installed WinXP SP2, but I can't install it because i'm running windows vista. I try to set the compatibility with Win XP SP2 and Win server 2003 SP1 but was unless. I have the same problem but I install from CD: When Setup is copying the temporary files from the CD, Windows Vista says that setup.exe has stopped working. If I leave it, it continues and takes me through the setup process, seemingly install everything and then it simply reports a 'setup error' and lists all the things which were NOT installed (just about everything) ...Show All
Windows Forms Taskbar events
Hi together, I am trying to add a C# control to the taskbar. The control shows up in the "Shell_TrayWnd" and I can click or type some text (if it's a textbox). The idea behind is to have something similar than Windows desktop search, where you can enter the search text in the taskbar and then a window pops up with the result. The main problem is, how can I hook up the events from the taskbar, so that my control recognizes if the tasbar gets resized or the TrayNotifyWnd gets expanded or collapsed. Any help would be great Cheers, Franz Hi, thanks for your answer, I know that project but I thought I can handle this without band objects. But it seems, that there is no other way. Cheers, Franz ...Show All
Smart Device Development Toolbox Icon
Hi guys, How do I provide an icon to be displayed when my custom control is added to the toolbox with CF In the full version, its easy: [ToolboxBitmap .... ] but this seems to be missing in CF. Obviously it can be done, but having trawlled through here and MSDN, I cant find anything. Thanks in advance, Millie. Hello! We are are currently trying the same thing, simply adding a toolbox item to a custom control. Therefore we added a xmta file. <Class Name="Gulliver.CSharp.Controls.Forms.Button"> <ToolboxBitmap>Gulliver.CSharp.Controls.Forms.Button.bmp</ToolboxBitmap> <DesktopCompatible>true</DesktopCompatible> <Property Name=&qu ...Show All
SQL Server Interactive sort changes time field values to 0
Hello all, I have a report which connects to a Pervasive database via an ODBC connection on the reporting server (RS2005). When I initially bring the report up, a time field (OdbcType.Time) shows the correct format: hh:mm:ss. When I sort any of the sortable columns on the report, the time field (which is not sortable) values all change to 0. Backing out of the report and re-running it restores the correct time values. Any ideas Thanks, Ken Thanks for your time Fang, I've pasted the snippet for the field in question: <Field Name="TIME_RECEIVED"> <rd:TypeName>System.TimeSpan</rd:TypeName> <DataField>TIME_RECEIVED</DataField> </Field> ...Show All
Visual Studio Express Editions Multithreading and and "encroachments"
Hi, I'm developing on a new vb.net-application with the Visual Basic Express Edition . Now I have to use a backgroundworker for a longer process. But I'd like to keep the user up-to-date, what the application is currently doing. So the Backgroundworker has to change some labels in the main Form. Now the Question is: How to get the backgroundworker changing the label in another thread I know, that I have to use invoke and delegate , but I don't know, how. Can someone explain this to me Thanks, Greetings from Germany and Regards, Fabian A delegate can point to a function as well as a subroutine. If you e.g. want to point to a function, which receives an integer and returns a string, you may define the delegate as: Public D ...Show All
Visual Studio Sharepoint Webpart
Hi All... How can I develop a webpart for Sharepoint using Dev Studio 2005 I see there's an addon for 2003 - when installed it lets us use a new template for a web part library. But when we try to install that addon under 2005, it says the Dev Studio's not installed... Perhaps 2005's is all set to do this - if so, where does one start Thanks, Stitch. It certainly does help. Man, talk about a change of direction... I can only imagine the fun those SP2003 users will have upgrading to SP2007. Thanks again! ...Show All
SQL Server Problem with output parameters that are varchar and null
I am using version 9.00.2047.00 SP1 of Visual Studio 2005. Using ADO.NET, I have been unable to get the Execute SQL task to successfully return the value of an output parameter defined as varchar or nvarchar when the value is null. No other data types seem to have this problem, including the sql_variant data type. Here is the stored procedure I am calling: create proc spx @in int = null output, @vc nvarchar(10) = null output, @dt datetime = null output as select @in = null, @vc = null, @dt = null return The variables to which the three output parameters return their values have a data type of Object. The task runs fine when the integer or datetime parameters are used, and the variables can be identified as null using IsDBNull ...Show All
Windows Forms A challenge. Text to binary, and back.
In my windows forms application I need to develop a method to convert a string to binary and then back again. This is going to be a simple way of user authentication to secure the data. Aside from that conversion I will be doing another conversion with it to secure it even further. The only part I need to know how to do is the binary to text and back. Here's my logic: User inputs password -> Converts to binary -> my conversion -> finalized password User retrieves password -> my conversion -> converts to string -> original password yes, I use MD5 most of the time - its the safest way to go really. If they lose the password then you gotta create a new one. So I would use MD5 and store the hash into a database or file ...Show All
Visual Studio 2008 (Pre-release) Service Principal Name configuration not working (cross domain)
We recently tried to deploy our WCF service to the production environment. Our WCF service is configured as such: <service name="CompanyName.PromoManager.Services.PromoAdminService"> <endpoint address=" http://localhost:8000/PromoAdminService " binding="wsHttpBinding" bindingConfiguration="promoBasicBinding" contract="CompanyName.PromoManager.Contracts.IPromoAdminService" /> </service> <wsHttpBinding> <binding name="promoBasicBinding" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxReceivedMessageSize="99000000" messageEncoding="Text" textEncoding= ...Show All
