OMCPero's Q&A profile
Windows Forms Databinding problem
Hi everybody. I have a form which contains a user control. When the form loads, I'm populating some DataSet, and assigning the dataset refernece to one of the control properties. The control contains other control that are bound to various paths on that dataset, adding new rows, modifying, etc. Now, I want to update the changes back to the database with dataadapters. I can put a Update button on the control itself, or in the form containing it. When I call the adapter's Update method in the context of the form (i.e. in response to form's button click), the db doesn't update. When the same thing happens at the control, it updates as well ...Show All
Visual C# proxy problem
Hi all, VS 2003, windows application that uses Internet. I create an application to merge pdf files downloaded from Internet (which give me one file for one page). I'm behind a proxy server. The problem is: when i request a file, the web site creates a temporary file with the page (xxxx.pdf, where pdf are numbers). So these files are also on proxy server and sometimes i have some error because (i think) the page is got from proxy server. How can avoid this problem Turning off the cache of proxy Or from code (c#) Thx manuel0081 wrote: I'm behind a proxy server. The problem is: when i request a file, the web site crea ...Show All
SQL Server From DataSet To SqlDataReader in a CLR Stored Procedure
Hi all, I'm writing a CLR stored procedure that just execute a query using 2 parameters. SqlContext.Pipe.Send can send a SqlDataReader, but if I've got a DataSet How can I obtain a SqlDataReader from a DataSet Dim command As New SqlCommand(.......) ..... Dim ds As New DataSet() Dim adapter As New SqlDataAdapter(command) adapter.Fill(ds, "MyTable") ... 'manipulating the ds.Tables("MyTable") At this moment I have to send the table...but ds.Tables("MyTable").CreateDataReader() just give me a DataTableReader, and i can't send it with SqlContext.Pipe.Send(... Help me please! The DataSet.CreateDat ...Show All
Smart Device Development Error: Connection To CE.NET Device
Hi Guys I am trying to connect to windows CE.NET Device from Visual Basic.NET 2003. When I am trying to connect to Device its giving me error Cannot connect to device make sure the device is physically connected to the desktop. I think I have configured all the settings correctly. Any thoughts thanks in advance. It is connected via Active Sync If so, please try this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=74468&SiteID=1 ...Show All
Visual Studio Team System MS Project - can't get work items
We get the following error on MS Project : TF80071: Team Foundation encountered an error while accessing the work item database. Please contact the Team Foundation Server administrator. We have Office SP2 and Project SP2 Any ideas Please try the workaround in: http://forums.microsoft.com/MSDN/showpost.aspx postid=159182&siteid=1 and let us know... [look for Sridhar S] ...Show All
Visual C# Limit TextBox entry
How do I prevent a user from being able to entry non-numeric text in a textbox Are there textbox classes available that only accept integer values The simplest way to limit the input type, is to validate the input befour it is even shown, here I use: OnKeyPress Here is a one method to do it, there might be some simpler way out there: this.MyTextBox += new KeyPressEventHandler(OnlyNumbers); void OnlyNumbers(object sender, KeyPressEventArgs e) { if (Convert.ToInt32('0') <= Convert.ToInt32(e.KeyChar) && Convert.ToInt32(e.KeyChar) <= Convert.ToInt32('9')) e.Handled = false; //All ...Show All
Visual Basic Where do I download?
I wish to download it to make a new MMORPG... If you help me, (In either way) consider yourself a GM. (or some ) I also need Player Worlds... Their Website doesn't show up for me... You can find Visual Basic 2005 here: http://msdn.microsoft.com/vstudio/express/vb/ The DirectX SDK is here: http://msdn.microsoft.com/directx/sdk/ Mike Carter Visual Basic QA ...Show All
Visual Basic A Function To Return Two Values
Hi, Is it possible for a function to return two "things" or items, i.e. a data item the function is used to get (a string) and a result saying if the function was successful or not (boolean) What I am trying to do is parse through an XML file from a server (where lots of things could go wrong), and use the data in my application by calling a function which does the parsing. I need to be able to display an error message in the application if the parsing function goes wrong. Thanks. Hi It is not possible for a function to literally return two values but there are ways of achieving this. ...Show All
Windows Forms Toolbar strip and TextBoxes
Dear All, Does Toobar strip now allow addition of controls like TextBox, buttons & combo-boxes Thanks & Regards Sunil Additionally, you can inherit from ToolStripControlHost and provide strongly typed properties, methods and events - this is what ToolStripTextBox and ToolStripComboBox do. You can get to the underlying control by accessing the "C ...Show All
Software Development for Windows Vista How to access a published webservice in hosing web application
Hi, I am new to WinWF, I have done a Sequential Workflow in Beta 2.2 with WebServiceInput, InvokeWebService and WebServiceOutput Activities and published that as a webservice. Now any body can help me how to access that webservice by making a WebReference to that in a webapplication and where the Interface needs to be implemented which is specified in InterfaceType property of WebServiceInput Activity. Can anyone please help me in this. Satya - you should be able to use the url created when you published the assembly as a Web Service. In that web project there should be an asmx file - if you right-click on the file and select ...Show All
Visual Studio Default page layout settings?
Hi, We don't use "Letter" paper size in Sweden. Is there a way to specify default page setup at design time, so that my users won't have to specify this every time they want to print a report This is for the WinForms ReportViewer. Thanks. See the answer in this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=126378&SiteID=1 ...Show All
Visual Studio Side By Side Installation
Hi I am looking to move from .NET 1.1 to .NET 2.0 for all new projects but still have to support those existing projects written in .NET 1.1. I realise I can install V1.1 and V2.0 of the framework on the same machine, but am I able to install Visual Studio .NET 2005 on a machine that has Visual Studio .NET 2003 installed on it without causing problems for maintaining those existing applications Regards Smeat I have both VS2003 .NET and VS2005 installed. It works, if you double click a project it usually try to open with VS2005 so I usually start the environment I want to work with first and then load the pro ...Show All
SQL Server Installing SQL Server 2005 with visual studio 2005
Hi, I need to know how can I install both 'Microsoft SQL Server 2005 Enterprise July CTP' on the same machine with 'Visual studio 2005 professional Edition' , virsion 8.0.50727.42 (RTM 050727.4200) since both of them needs to be installed first , i.e., befor the other, If I try to install VS2005 then SQL Server ,it tolds me that I must remove any previous versions of .NET framework, Sql server editions, ........... If I try the reverse process , the SQL server first, the VS2005 will need to remove it befor the installation. I note that the SQL Server uses 'Microsoft .Net Framework 2.0 Beta 2' , while the VS2005 uses'Microso ...Show All
Windows Forms Custom Contro Icon
Hi!! I have make an custom Control that inherits from textbox and adds it severar validation functions and maskedit. Now I want to add a icon to this control to showit in the IDE ToolBox and add it to forms in design graphical mode. How can I add a "toolbox Icon" to my control crazy, i wonder why they picked that&nbs ...Show All
SQL Server Stored Procedure
Hi, im doing a stored procedure, it's for changing the data type of several columns, specifically the number of decimals, so i want to pass this as a parameter, but i cant use this in the alter column command, example, im doing this create procedure XYZ @decimals int as alter table XYZ alter column XYZ decimal(18, @decimals) go any idea how to make this work you have to use dynamic SQl create procedure XYZ @decimals int as declare @SQL varchar(666) select @SQL ='alter table XYZ alter column XYZ decimal(18, ' + convert(varchar(10),@decimals)+')' exec ( @SQL ) go also make sure you read t ...Show All
