tusk's Q&A profile
Visual Studio Express Editions C# retrieve database
I am using Visual Studio 2005. However, I faced some problems in retrieving data from SQL server database. I intend to extract a data from and show it on a label,but i could not do that. It is not same like VS 2003, could someone help me about this thank you very much~ Hi Cosmics, you shouldn't have any problem. you can extract the information from the dataset (for example) as before whithout any changes. Also, you can upgrade your old working project (in VS2003) to the new VS2005 (the wizard will do this for you). if the problem persist, please specify it to give you a correct & stright directions ...Show All
.NET Development How can I disable Keep-Alives in webservices?
I'm receiving "underlying connection was closed" when calling external webservices. According to this article http://weblogs.asp.net/jan /archive/2004/01/28/63771.aspx I need to disable keep-alives in .NET 2.0 but I can not find any reference.cs file as mentioned in article. What code shall I write to disable keep-alives in ASP.NET 2.0 Thanks G ...Show All
Visual Studio Tools for Office Manged outlook add-in issue
So I am having an issue with some code, that checks the mailitem.sendername and then moves it to a folder and then flags it. Just something simple, am using a switch statement to do the job... the code is as following: void ThisApplication_NewMail() { Outlook.MAPIFolder _inbox = this .GetNamespace("MAPI").GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox); Outlook.Items unread = _inbox.Items.Restrict("[Unread]= true "); &nb ...Show All
.NET Development Master Page and properties.
I have a simple master page setup where I have created a property. Here is the Masterpages vb code partial class MasterPages_MasterPage Inherits System.Web.UI.MasterPage dim m_SecondHeading as string = "Second Heading" Public Property SecondHeading() as string Get Return m_SecondHeading End Get Set(ByVal value as string) m_SecondHeading = value End Set End Property I know the property works because in my Master page html I inlcude the following <&=Me.SecondHeading %> In my page that ...Show All
Visual Studio Team System How to resolve: Assemblies should have valid strong names
I need some pointers on this to resolve this issue. The Improving Web Application Security Threats and Countermeasures book by Microsoft states that it is not possible to use a strong name for an ASP.NET web page assembly because of the way it is dynamically compiled. Is this still true Does this rule apply for only non Web applications ...Show All
Visual C# Getting User full name from Active Directory
How can i get a givven username full name from the active directory Can u give me an example I would visit this link: http://geekswithblogs.net/mhamilton/archive/2005/12/11/62815.aspx ...Show All
.NET Development Exception: DataTable internal index is corrupted: '5'. on ...
Hi, I have a problem with bindingsource component in framework 2.0. I have a combobox bound to a bindingsource which is also bound to a dataset with 2 related tables and a datagridview bound to the same bindingsource. What I want to do is : When the selectedindex property of my combobox changes, the corresponding cell value must be changed in the datagridview. But although the value in bindingsource changes, datagridview does not display the new value. That value is displayed after I move the mouse over that cell and make it invalidate its region manually. Another error I caught is the one that you can see as the subject of my po ...Show All
Windows Forms how to insert textbox into treeview control
I have searches everywhere but couldnt fing anything. In C#.NET how can i add textbox to treeview control.I mean textbox as a node. Ok. No, the TreeView doesn't have any support for this. You'll need to go a 3rd party route. -mark Program Manager Microsoft This post is provided "as-is" ...Show All
Windows Forms Change the checked and unchecked value of a DataGridViewCheckBoxColumn
Hi, What I'm trying to do is quite simple..... 1. I've created a empty DataGridView 2. I add a DataGridViewCheckBoxColumn using the following code- colToBeAdded = New DataGridViewCheckBoxColumn colToBeAdded.FalseValue = 2 colToBeAdded.TrueValue = 1 colToBeAdded.ThreeState = False colToBeAdded.valuetype = GetType ( Integer ) colToBeAdded.HeaderText = headerText colToBeAdded.Name = colName colToBeAdded.DataPropertyName = colName dgItemSelect.Columns.Add(colToBeAdded) 3. I then bind my datatable to the datagrid view:- dgItemSelect.DataSource = dt The datatable contains a column of type integer ...Show All
Windows Forms Position
How can i determine the position in the screen e.g. : we got a form (somewhere) with a panel and on that panel there's a groupbox. on that groupbox there is a button. When you click on the button , a new form wil show right below the button to show the new form i need the coordinates of the button on the screen I could dril up in the hirachie until there is no parent anymore and sum al the top and left values But i suspect there is a elegant methode to do this Regards Remco the framework solution goes like this (in VB): Dim point As New Point(B ...Show All
Windows Forms Could anyone answer this client error msg? tx
Here it is, I'm a noob basic user.. <NewDataSet> <Watson> <LogType>Unhandled Exception</LogType> <OSVersion>Microsoft Windows NT 5.1.2600 Service Pack 2</OSVersion> <GameVersion>1.2.0.40701</GameVersion> <CLRVersion>2.0.50215.44</CLRVersion> <UserEmail xml:space="preserve" /> <UserComment xml:space="preserve" /> &n ...Show All
Software Development for Windows Vista Why is the Activity ContextGuid not public???
The execution context of an activity is an important piece of the workflow. So why is this important piece of information hidden Currently, there is no way for me to correctly obtain a specific instance of an activity. The main issue I am running into is with tracking. I need to track additional information that is supplied by custom activities. Also, can see the need for a workflow to be able to access other activities in a specific context in order to complete. you can do this : Guid contextGuid = (Guid)activity.GetValue(Activity.ActivityContextGuidProperty); ...Show All
.NET Development LIST CONTROL (Population Property)
Hi, I am using Visual Studio 2005. I create a list box on a webpage. and when I try to run it the content of list boxes opening on the upper side (from lower to upper)). Is there any property which control opening of the list box contents to downside (Up to Down) . Please let me know Thanking You Anshu Hello Anshu, A great place to ask ASP.NET questions is the ASP.NET Developer Forums website. Hope that helps, Stephen http://blogs.msdn.com/stfisher ...Show All
Windows Forms Splitcontainer Design
I have a splitcontainer but I do not like the way it looks. The 3d design looks strange, and the black border looks strange also. I would like the lines to be like Visual Studio 2005... How do I change the color ...Show All
SQL Server suppress the display of a txt box when null
I have a text box in a list, which i only want to display if it is not null. How can i do this in reporting services. thx la Select the list item where your data objects are places, go to the properties and write for example No Data in the NoRows properties. That's all ...Show All
