LuisGamma's Q&A profile
Visual Basic Adding a Prefix to SoapHeader Namespace
Hi, Can any one help me to add a prefix to the SoapHeader Namespace. The XML would look like this <soap:Header> < aaa: TocHeader aaa: role="ADMIN" aaa: locale="en-US" aaa: softwareName="TOC" aaa: softwareId="aaaaaaaaaaa" xsdVersion="1.0" xmlns :aaa =" '>http://toc.schemas.testing.com/headers/2006-02-01"> < aaa: Message> < aaa: Id>< aaa: MessageID>10</ aaa: MessageID>< aaa: MessageGroupID>10</MessageGroupID><TimeStamp>6/16/2006 12:00:00 AM</ aaa: TimeStamp></ aaa: Id></ aaa: Message>< aaa: Security>< aaa: Token>Administrator</ aaa: Token&g ...Show All
SQL Server SQL Server Express 2005 and SQLXML 4.0
I have been using VB Express 2005 and SQL Server Express 2005 over the last week and converting one of my projects from Visual Studio 2003 and SQL Server 2000. I use the Managed Classes(SqlXmlCommand, SqlXmlAdapter), XPath Queries, DataSets to query the database. I want to use the new data provider SQLXMLOLEBD.4.0 and the SQL Server Native Client, but SQLXML 4.0 is not installed. WHERE DO I FIND IT Everything works fine if I just use SQLOLEDB Data Provider.... Thanks in Advance! I have SP3 loaded... But really want SQLXML 4.0 for the Native SQL Server Client (which is not in SP3). Let me ...Show All
Visual Studio Express Editions registration thank you email suggestion
is missing product key it would be nice if it was included How did you install the product... Remember that if you did install the product by using the CD Image ISO or IMG you will not get a registration key in the email as the system does not require one (Item 7 on the Registration FAQ). The other option is to connect to the registration benifits portal and select the product keys option, this will display your registration key. ...Show All
Windows Forms resize form based on DataTable
How can I resize a form based on the width and height of a DataTable I have a form with a DataGrid control. I programmatically insert a DataTable. I want to then programmatically resize the form to show the entire DataTable unless the size is larger than a predefined threshold. In that case I would resize the form to a predefined maximum. I'm struggling with obtaining the width and height of the DataTable. If the DataTable is small enough, I don't want the scroll bars, I want the form to resize to show the entire DataTable. If the DataTable is larger than a predefined maximum width and height, I ...Show All
Windows Forms Specifying child and parent co,lumns in DataRelation Object
Hi, I have a dataset with one data table in it. The SQL query that populates the dataset uses left join between 2 tables Orders and SubOrders. SubOrders has a FK Order_Id which is a PK in Orders Table. I want to bind the dataset to a datagrid such that the datagrid shows it in hierarchical view. Now, since all the data is in one datatable, I am trying to do a self join something like this ds.Relations.Add("RName",ds.Tables[0].Columns["OrderId"],ds.Tables[0].Columns[SubORder_OrderID], true); Now in DataGrid it displays all columns in childrow as well as in parent row.. Is this possible to show columns from suborde ...Show All
Windows Forms Is it possible to have an array of backgroundworker thread running?
Hi I am new to VB.Net and i have some doubt here that i hope to get some help on. I am wondering if an array of backgroundworker thread can be created. and where the array is stored arraylist or a container Please advice Regards Soon Lee Sure. The background worker object is just an object and you can have it in whatever data type you want. It depends on what you want to do with the object as to why you would do this. Probably would help if you went through a how to on this object. eg. http://msdn2.microsoft.com/en-us/library/waw3xexc.aspx Toddap_MS ...Show All
Visual C# Finally! Some additionaly code snippets for C#.
Welcome to the future! I just had to share it with someone. http://msdn.microsoft.com/vstudio/downloads/codesnippets/default.aspx Q: Why can't I have a snippet for any functionality I want Q: To what extent can I view these as "best practices" Q: Why can't all new functionality added to a product (say SQL Server 2006) that can be invoked by way of .NET (say a custom aggregate) have snippets (in the language most suitable) added by the team implementing the functionality (say the SQL Engine team) Q: Have anyone made an add-in that makes searching snippets faster Does anyone want one ...Show All
Windows Forms LIB's in a Windows Form?
Hi folks, I'm just wondering if it's possible to add a LIB to a Windows Form project I want to add Shlwapi.h, shlwapi.lib so that I can access the useful functions: PathAddBackslash PathIsDirectory PathRemoveFileSpec PathRemoveBackslash PathFileExists PathFindFileName etc.... Is it possible I can't seem to figure out how to add a LIB and just adding the .h causes a whole mess of problems. Any ideas Hi Blair. I would use the System.IO.Path class, but it just doesn't have the functionality I'm looking for - specifically the functions that I mentioned above. So, does anyone know how I could add a L ...Show All
Visual Studio Team System Data Generation for nvarchar & varchar.
When using the data generator, the the data generation preview tool window within Visual studio shows gibberish text for a varchar or a nvarchar column, the generator being set to string. Is there a setting that i'm missing I have not made any specific setting - just added a data generation plan to the project. Is there some property that needs to be set at this stage The collation is Latin1_General_CI_AS -Tanveer Rashid Hi Tanveer, can you please explain me what gibberish characters you are seeing If I think what you think, there's nothing gibberish in those chars . In fact the Latin1 colla ...Show All
Windows Forms Functions in Expressions
I am using VS 2005 Pre Release. I have a Windows form and a dataset. My question has to do with expressions in a column in a dataset. I know I can create a FullName column in the dataset and in the expression for full name do something like LastName + ', '+firstName. However, I would like to glue two fields together like LastName and AccntNumber. AccntNumer is an integer. I thought perhaps something like LastName + ', ' Str(AccntNumber), or something like that, but this does not seem possible. I guess the question is whether you can use some sort of a string function in an expression, and if so, what is t ...Show All
Windows Forms ComboBox DroppedDown
Hello Sir, This is Chandra and Working as Software Engineer. I got a really weird problem with ComboBoxes. I have set the ComboBox DroppedDown Property to true. Now the actual problem is When the ComboBox DroppedDown is Shown Or True I have to actually click twice to get out of the form or need to click twice to do anything. For Example in My Form If I have 2 Controls One is ComboBox and Another Button Which Clicked Just Closes the Form. Then I set ComboBox DroppedDown = true.So When the ComboBox DroppedDown = true to click on Close Button I need to click twice to initate click event on the button. Plz Help me on how to do it once when ...Show All
SQL Server How do I install a new instance of the 2005 engine?
I need to be able to add a new instance, we use to use svrnetcn with 2000. Take a look at this topic: How to: Install SQL Server 2005 from the Command Prompt http://msdn2.microsoft.com/en-us/library/ms144259.aspx Regards, Boris. ...Show All
Windows Forms Why the Administrator delete Reply????
Please, what is the code for populating a Listview with data from a Access DB Is urgent for me. Thanks!! did you say something bad Did they give you a reason ...Show All
Visual Basic Using Variables in VB .NET
First, I come from the old Basic days. Skipped VB5 and VB6 and went straight to VB .NET. So knowing that, and knowing that I have been reading the dickens out of all sorts of articles, I have a this problem at hand. I have been working on this for more than a week now and have not been able to get a grasp on the concept of using variables between classes on vb.net. What I want to be able to do is load up a set of variables and use them in different classes. The first scenerio is that I want to be able to load information out of the registry and save this to some variables that can be used in any class. May ...Show All
SQL Server Books on T-SQL
Hi Can anyone suggest me a good book on T-SQL for SQL Server 2005 I preferably need both a Hardcopy and a softcopy (any link which covers in depth T-SQL for YUKON will do). Same for Hardcopy also. Thanks in Advance Shaun I'm not sure what you mean by "official". The only official documentation is Books Online. I don't recommend the book in my signature because the coverage of T-SQL isn't all that deep -- we covered the new features only. Aside from the four books targetted at the beta editions (Beauchemin et al, Otey, DeBetta, and Scalability Experts), all of the oth ...Show All
