Murali Krishnan's Q&A profile
.NET Development passing a dataset through a webservice
Hi, I'm a really a newby in .NET webservices technologies. I've just started in. I want to pass a typed dataset from my client app to the webserver application. To start, I created a webmethod and passed a dataset parameter to it. For instance: <WebMethod> Public Function PassDataSet(ByVal orderDataSet As OrderDataSet) As Integer _orderDataSet = orderDataSet Return 0 End Function _orderDataSet is an attribute of the webservice class. The problem I have is that my _orderDataSet is not stored as persistent, so It becomes empty when I try to call it from an other method. I don't have any idea about how to perform that. I heard about XML serialization, but I don't know how to apply it in this simple practical case. Excuse m ...Show All
Windows Live Developer Forums Click call back
Is there a way to add a link into the hover dialog so when the user clicks on it it'll generate the route and display directions No built in way to do it. You can add a html link to your pin's rollover details to call your custom javascript function. Most implimentations I've seen have a drive to, and drive from link that populate varibles and are displayed in a route panel somewhere. That panel has a go button that called the VE API route function and displays the route and directions. Its not hard but there is a little bit of work. John. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Why Can't Use Swap Chain in Full Screen Mode
When it calls CreateAdditionalSwapChain in Full Screen Mode, it's failed, while it works ok in window mode. http://msdn.microsoft.com/library/en-us/directx9_c/Multihead.asp ...Show All
Windows Forms Problem with value DataGridViewComboBoxCell
In VB 2005 Express I have a problem, which completely do not understand. I use a DataGridViewComboBox in a DataGridView. When I change data and save it, I have no problem. But when I close the form I a repeting error, being: System.ArgumentException: DataGridViewComboBoxCell value is not valid. Can anybody help Thanks in advance, Simon Does the data you saved exist in the DataGridViewComboBoxCell's items list For instance, if your DataGridViewComboBoxCell::Items collection is {"one", "two", "three" } and the value you saved is "four" then you will get this error. Another situation is if your DataGridViewComboBoxCell is data bound. For example sake, say that the ComboBox displays data from a DataTable, ...Show All
Visual C# How can I share my custom user settings (ApplicationSettingsBase) with several objects?
In my program I have several classes: WebServer EmailClient TelnetClient ...and they all use configurable data which I have in a class called "GNotifyUserSettings" (which is a descendant of ApplicationSettingsBase). Do I need to create a GNotifyUserSettings object in every class I want to use custom settings in ...or should I pass in an object reference to the user settings object to every class Neither method seems very clean. What I'd really like is a "global object" that every class can access... (and it must be thread-safe) sofakng wrote: Do I need to create a GNotifyUserSettings object in every class I want to use custom settings in ...or should I pass in an ob ...Show All
Windows Forms ListBox Help
Sorry I accidently posted this already in the wrong forum Visual C# IDE. ... I have a ListBox who's contents change frequently. When they do I want the focus and selected item to be at the top. Heres my problem. When the contents change I call List.SelectedIndex=0; This causes the first item to change color as if it is selected. If the user presses down, however, instead of moving to the second item, it now "focuses" the first one (draws the dotted focus rectangle around it). Pressing down a second time goes to the second item and pressing it again, goes to the third as expected. The problem is I want the first item to be selected *and* focused so that when the user presses down for the first time it moves him/her to th ...Show All
Visual Basic How to print additional table's data in EXcel tab (Windows application)
Using VB 2005 To all Users: I have this problem when i using vb and transfer data to excel to print. The problems comes as the 1st table is able to print while the rest of the table tab do not have data.. Could anyone help me with this asp I will be greatful Pls provide sample code/links asap ya! i mean is that i have more than 1 spreadsheets. But the data is not filled up! Could u help me with this ...Show All
Visual Basic RunAs in Visual Basic
Hi, Is there any way to use a VB form to supply user credentials to the Runas command in command prompt I basically need something exactly the same as the GUI for RunAs but just for Internet Explorer (yes I know you can right click and go RunAs but that cant be done in this case). So the user would open this VB form, type their username and password in, hit OK and it would open Internet Explorer with their credentials (they log in under a generic account used by many people). I have researched this for a long time and not having much luck... you can use the ProcessStartInfo class to supply it a username and password - the password being the securestring. Dim theProcessStartInfo as new System.Diagnostics.ProcessStartInfo("i ...Show All
.NET Development How-To (Object Class => Binary Serialization => To Memory => Encrypt => Save to File)
Hi Every body .... I have a [Serializable] Class like this ======================================================== [Serializable] class Customer { private string _CustomerName; private string _Country; public string CustomerName { get { return this._CustomerName; } set { this._CustomerName = value; } } public string Country { get { return this._Country; } set { this._Country = value; } } } ======================================================== How can i use Binary Serialization to serialize the object class temprary to Memory and Encrypt it and then save the encrypted to file. Like this 1. Object Class => Binary Serialization => To Memory => Encrypt => Save to File 2. Read file => To Memor ...Show All
SQL Server Link Server to MySQL Database
Hi I ma trying to create a linked server to a MySQL database via ODBC. I am running SQL 2005 on Windows 2003 R2 (64-bit). Can any one point me in the right direction . Hi James, Were you able to do that I am having the trouble doing the same. If you have done, could you please post the procedure. Thanks, Neelesh:) ...Show All
Visual Studio Tools for Office Control Break in Visual Studio VSTO, Word does not recognize break
I placed a control break in the vb code inside VSTO and Word does not recognize it. It runs and ignores the break. How do I make it to stop on the break I set in VSTO. I placed a break here, I placed a debug control break in the code in Visual Studio, but I was unable to let Microsoft Word to understand this. It would not break for me to do a step through. Is there a setting that I need to turn on to do this At startup I have the following code: Private Sub ThisDocument_Startup( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Startup Dim oPause As Object oPause = False Me .MailMerge.Execute(oPause) End Sub I placed a break at : Private Sub ThisDocument_ ...Show All
Visual C# query regarding system time
hi how to get the current system time and date in visual c# i used SYSTEMTIME stime = new SYSTEMTIME (); GetSystemTime( ref stime); but what does GetSystemTime contain Is this correct or is there any way of doing it you should use DateTime.Now which gets the current datetime, is this not what you are after MessageBox.Show(DateTime.Now.ToString()); you can also format the way the datetime string should be shown: http://msdn2.microsoft.com/en-us/library/97x6twsz.aspx http://msdn2.microsoft.com/en-us/library/8kb3ddd4.aspx ...Show All
SQL Server Decrement values in an aditional column
Hi I have a table like this: CLIENT Value a 12 b 11 c 8 d 10 e 4 I want to decrement this values in an aditional column CLIENT Value ACUM a 12 12 b &nb ...Show All
.NET Development c# to x86 code
Hi Mike, how do you generated the x86 code in one of your following blog http://blogs.msdn.com/jmstall/archive/2005/09/08/il_vs_native_offset_0.aspx Thank you for your help, Visual Studio will show you the native code for jitted C# methods. (It won't however show you the IL). ICorDebug exposes the native addresses of jitted code, so any managed debugger could show that information. Vance Morrison has an excellent blog with further details and a walkthrough: http://blogs.msdn.com/vancem/archive/2006/02/20/535807.aspx ...Show All
Visual Studio 2008 (Pre-release) Load and modifying DataTemplate from XAML is not working
Is there a way to write a DataTemplate in XAML, then load and modify it in my C# Code and assign it to the control where I want to use it I tried it this way: DataTemplate dt; dt = ( DataTemplate ) this .FindResource( "myTemplate" ); StackPanel sp; sp = ( StackPanel )dt.LoadContent(); ItemsControl ic; ic = ( ItemsControl )(( StackPanel )sp.Children[1]).Children[1]; Binding b; b = new Binding ( "myPropertyPath" ); b.Mode = BindingMode .OneWay; ic.SetBinding( ItemsControl .ItemsSourceProperty, b); myItemsControl.ItemTemplate = dt; But only the definitions from the XAML file are applied to the control... I've also tried to use dynamic resources und add the dynamic resou ...Show All
