Patrice Calve's Q&A profile
.NET Development No effect When I Update My database ?
I created a form and database of 3 tables .I added a datasource(rssDataset ) to my application ( by going to menu Data->Add new Data source .....thus i got rssDataset ). I bounded the form controls(comboBOX,ListBox etc) to different tables available through my dataset.I make some changes in my dataset in my program .Now I want to update my database . When I use this : this.channelTableAdapter.Update(rssDataSet); (channelTableAd ...Show All
Visual Studio What does VBProjectProperties3.MyApplication return?
I can get a hold of the Myapplication property via Project.Properties.Item("MyApplication").Value but I have no idea what kind of object it is and whether or not it is useful to determine what are the members and events in My.Application. I'd like to add code to a couple of application events (startup and shutdown) so I need to generate code as if the user has clicked "View Assembly Events" button on the project properties ...Show All
Visual Basic Delegate - Addressof problem
HI all I am trying to transfer a program over to .NET and am having trouble with the delegate Function. I think I understand what its trying to do but as I don't have any api programming experience so I don't really know what I am doing. This section of code is part of another SDK which I use in my program. Public Sub Hook() 'UPGRADE_WARNING: Add a delegate for AddressOf WindowProc Click for more: 'ms-help://MS.VSCC.v80/dv ...Show All
Windows Forms Control the size of the Context Menu Popup?
I have a context menu: m_AddRowContextMenu = New DMS.ToolBox.ContextMenuStrip() Add some Items (200 maybe...): For i As Integer = 0 To 200 m_AddRowContextMenu.Items.Add("Item" & i.ToString() ) Next Show the context Menu: m_AddRowContextMenu.Show(Me, mousePoint) The popup is HUGE! I want to show about 20 Items, with scrolling. I can't figure out how to change the size of the popup. It makes i ...Show All
Visual Studio Express Editions (Newbie) Combo box - index of current value?
Hi I am using a combobox which had a fixed numerical value list, set up in designer. The list was : 1 First, 2 Second, 3 Third , etc I have now changed the list to text items, again just set in the designer. List is now : First, Second, Third, etc Previously, I used Val(Combobox1.Text) to get the item (which corresponded to the item position in the list). So how do I now get the current selected value 'index' in the list ...Show All
Visual Studio Team System Installation of Beta 2 over VS 2005 Professional
Can I install Beta 2 of Team System Client onto a computer that has the final release of Visual Studio 2005 Professional I noticed that it asks for Beta 2 .Net Framework to be installed, but would this interfere with the newer version already installed We already have a Team Foundation Server (Beta 2) up and running with active source control projects, so I need to be able to work with these from my new installation of VS 2005 Professional. ...Show All
Windows Forms does taskvision work on win pro 2k
hi, I realise that it states that taskvision should only be run on winXp and win2k3, But I'm trying it on win 2k pro. The msi installer successfully installs the app and the database onto sql2k, but I get the following error when I try&nb ...Show All
Visual Studio Error. Failed to load expression host assembly. Trying to use local report manually copied to mapi dir (VSTO project)
You may see from earlier posts that I'm having difficulty deploying report solutions (VS2005 B2) and VSTO. My VSTO app opens a winform report viewer. Even very basic reports (no data) fail. My last attempt was to use the report path option. The first error said the report def was not found in the dir 'C:\Program Files\Common Files\System\MSMAPI\1033', so I manually copied the rdlc file there. Now I get another error "Proce ...Show All
Visual Studio 2008 (Pre-release) Problem on Hands-On Labs (Building XBAP with WPF)
I am using the February CTP while doing the lab(Building XAML Browser Application with Windows Presentation Foundation) and encountered an error when publishing the application on my IIS. If I run it using my VS 2005, it just works fine but when I use IE to navigate to the URL ( http://localhost/XBox/XBox.xbap ) I get this Application Deployment Error - The application cannot be deployed. Any idea why I would appreciate your assistance on thi ...Show All
SQL Server Slow execution of queries inside transaction
I have some VB.NET code that starts a transaction and after that executes one by one a lot of queries. Somehow, when I take out the transaction part, my queries are getting executed in around 10 min. With the transaction in place it takes me more than 30 min on one query and then I get timeout. I have checked sp_lock myprocessid and I've noticed there are a lot of exclusive locks on different objects. Using sp_who I could not see any deadloc ...Show All
.NET Development OPENXML: Error inserting xml into SQL Server 2000
I am having trouble inserting xml data into SQl server using the OPENXML. This is the SP I have. When I pass small XML content the Insert works but not when i have a bigger XML file. ALTER PROC uspW3TeamList @doc text AS BEGIN DECLARE @idoc int EXEC sp_xml_preparedocument @idoc OUTPUT, @doc INSERT INTO SportsSchedule (TeamName1,TeamName2,GameDate,GameStartTime,InsertedOn) &nbs ...Show All
.NET Development table variables, SQL Server 2000 and VS 2005 (ASP.net 2.0)
Hi guys i am having problem using stored proc that contain table variables while developing in VS2005. I use a table variable in one of the stored procedure: Declare @TempTable Table (RowNumber int IDENTITY PRIMARY KEY, Name varchar(50)) In VS 2005 when creating a table adapter it given an error saying invalid object @TempTable I some how tricked the VS2005 and created the table adapter, but when running the application and making the c ...Show All
Visual C# Asynchronous BeginInvoke GUI update order
Yes/No question for the experts: If I only have thread A and B (thread A being the GUI thread), and B calls several BeginInvoke's in a row to 'Post' messages to thread A, is the order in which thread B updates thread A guaranteed to be preserved I can write a simple app that would give an answer, but I prefer to hear the answer from the GURUs just to make sure. Thanks -Kevin Thank you for the reply. I am surprised, I thought they would ...Show All
Windows Forms O/R mapping tools
Hi guys, ADO.NET provides dataset/datatable so that you can store your data you get from databases in your code. But some deem dataset/datatable are not 'real' objects and they don't fit into the object paradigm. (Agree ) So those ppl use O/R mappings&nb ...Show All
Windows Forms UrlEncode
How do you UrlEncode a string in Windows Forms I know the static method is in System.Web.HttpUtility.UrlEncode but that only seems to work from ASP.NET for me. I have a Web Browser control on my Windows Forms app and need to UrlEncode&n ...Show All
