denis kahl's Q&A profile
.NET Development datatable, datacolumn Visual Studio 2005 Beta 2
This code fails at the codeline '.expression = "IIf .......' This code works properly with Visual Studio 2003. The tool used is Visual Studio 2005 Beta 2. If it is a bug is there a patch or a work around if not what is wrong with these lines. thanks Gerhard. Private Sub CalcColumns() Dim rate As Single = 0.0862 Dim table As DataTable = New DataTable("MyTable") ' Create the first column. Dim priceColumn As DataColumn = New DataColumn With priceColumn .DataType = System.Type.GetType("System.Decimal") .ColumnName = "price" .DefaultValue = 50 End With ' Create the second, calculated, column. Dim ta ...Show All
SQL Server Setting permissions on system stored procedures in SQL 2005
I want to set permissions to system stored procedures with the help of the SQL Server Management Studio. To do this with standard SP I can use the context menu option "properties". The context menu of system stored procedures doesn't contain this item. So I have to use the security folder of the database containing the wanted role or user. In this manner I can use the context menu option "properties" of an user or role. To set permissions to the mentioned system stored procedure I select there the "Securables" page and add the permissions to the SP. The problem: When I reopen this dialog no "Secureables&quo ...Show All
Visual Studio Express Editions Ip Address and Computer Name in vb 2005 express ?
I asked a question on experts exchange here : http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21604354.html And I have got a vb.net example for vb.net 2003 which is this : Imports System.Net Dim hostname As String = Dns.GetHostName() Dim ipaddress As String = CType(Dns.GetHostByName(hostname).AddressList.GetValue(0), IPAddress).ToString Console.WriteLine("Computer Name: " & hostname & " IP Address: " & ipaddress) However vb 2005 uses different functions such as GetHostEntry as apposed to GetHostByName etc and I also g ...Show All
Visual Studio Team System Sharepoint error after installation
Our internal IT department installed TFS Workgroup Edition for us, but it doesn't work. When I try and create a new project (I am an administrator) there is an error when it gets to the sharepoint section. There are also errors in the event log indicating sharepoint problems: #50070: Unable to connect to the database STS_Config_TFS on DEVTEAM. Check the database connection information and make sure that the database server is running. Login failed for user 'NT AUTHORITY\LOCAL SERVICE'. [CLIENT: 10.0.1.156] It seems clear to me that Sharepoint has been installed incorrectly - but I wonder if there are any easy steps to resolve it There is no ...Show All
Visual C# radio button's "selected" event
am using 2 radio buttons in my form. rAdmin and rDesigner. < input type =radio id =rDesigner runat =server name =userType onserverchange ="rDesigner_ServerChange"> < input type =radio id =rAdmin runat =server name =userType onserverchange ="rAdmin_ServerChange"> when the user selects either radiobuttons, data is displayed based on which radio button is selected. where should i write the code for displaying these data there is no onserverclick event available. i tried to write the code in onserverchange event. protected void rDelUsers_ServerChange( object sender, EventArgs e) ...Show All
SQL Server SQL 2005 upgrade and 32bit/64bit mixed environment questions
We are planning to upgrade our entire environment from SQL2000 to SQL2005 Standard and I have a couple questions: 1. If our developement servers are going to be running SQL2005 32bit and our production servers are going to be running SQL2005 64bit are there going to be any compatibility issues between them We will be transferring tables and objects back and forth between them on a regular basis and will also perform db restores on the 64bit systems from .bak files created on the 32bit systems, and vice versa. 2. Our developement servers will likely be upgraded by way of an in-place upgrade to SQL 2005 but our production servers will ...Show All
Windows Forms How to resize controls on my windows form with changing form size
Hi, In my windows form I have a tab control with a few tab pages. Each tab page has some user controls and some .net controls such as datagrid, labels e.t.c When I resize the windows forms the controls dont change their size and position. So if I reduce the size of window it hides half of the controls on my application. How do I make my application or controls such that they relocate and resize themselves when size of the window changes. Thanks, You have to DOCK them on your form to top, bottom, or center depending on ur requirement. ...Show All
Smart Device Development Can no longer add reference to CF 2.0 assembly in windows forms application
Hi everyone I had solution that contained many projects which was written in visual studio 2005 beta 2, the solution contained both smart device projects (windows forms and class libraries) and projects that targeted the full framework as well (windows forms and class libraries). Some of my full framework projects contained references to my .net CF 2.0 class libraries as I wanted to share the libraries between both platforms. This all worked exactly how it should without any problems. Then the other day I opened the very same solution up in the final release of visual studio 2005 and found that it will no longer build as ...Show All
Visual Studio Team System Team Foundation RC install Failures, Dr Watson
Hi, I have been trying for serveral days to try to figure out what the heck is going on with this install. The issues I have ran into was during the install on TFS (RC), I keep getting these watson failures. I am so stumped on why this is doing this. I have everything else working fine such as sharepoint, reporting/SQL. Here is the last line of the error log file. [03/23/06,20:32:24] Setup.exe: GetGlobalCustomProperty({4F8791EE-486F-44B5-952B-F28F9FD58BD0}) [03/23/06,20:32:24] VSServerUI: ISetupManager::GetGlobalCustomProperty() failed to find global prop in CProgressPage::RunningComponent() [03/23/06,20:32:24] VSServerUI: {4F8791EE ...Show All
Windows Forms Binding to Radio Buttons
Can someone point me in the right direction for binding to Radio Buttons I am trying to find some sample code or tutorials but haven't found much. I've been able to figure out TextBoxes,DateTimePickers,ComboBoxes,CheckBoxes,DataGrids - but I can't seem to get Radio Buttons to Bind without some hard-coding. An example would be a field in the DB that has&n ...Show All
Visual C# Updating SQL database
Hello. I am wondering exactly what kind of code is needed when I want to update an sql databse from a windows form. I have a form with two textfields, and a button called save. When I press that button, I want the information in the textfields to be saved in the database as a new column in the table that these textfields are taken from. So, i want to write the code in the click method of the button. I guess this is really easy, but I have never tried before, and my book doesnt really explain how to do it. Will really appreciate help :) Hi! Easiest way is to use DataSet, DataAdapter, WinForms data binding th ...Show All
Software Development for Windows Vista Cannot install neither VC nor VB on vista?
I'm trying to install VB6 and VC6 on my computer and before the installation I get error saying "ODBC's sqlinstalldrivermanager failed" then, at the 'actual' installation, when installer tries to copy DBNMPNTW.dll file, it stops and say "VB(VC)6.0 professional setup was not completed sucessfully" I'v set the installer (ACMSETUP.exe)'s previlege level to administrator and it still gets that error. I'm using WindowsVista build 5259. 5259 is only for TAP customers, if you are a TAP customer then direct this question to your contact for the program. Josh ...Show All
Visual Basic click and double click events are not fired in listview component in VB.NET
hi, i have created a sample window aplication in VB.NET.placed a listview component in the form ,written click and double click event for list view.But the events are not fired.is there any property to be set for click event. Thanks, Ganesh The events for click and double click are selected in events tab.but still they are not fired. ...Show All
Windows Forms Dragging an UserControl
Hello, I have a bit of a situation. I have a UserControl which I will want to drag around a panel, I've found many tutorials on dragging things into controls, but I actually wish to change the X,Y location of the control. I've tried using this: ... customControl. MouseDown += new MouseEventHandler (DragIt); } public void DragIt( object sender, MouseEventArgs e) { customControl. Location = new Point (e.X, e.Y); } But it would only drag when its clicked, and wouldn't simulate a real drag across the screen. If anyone could help, I'd appreciate it. :) ...Show All
.NET Development Passing xmlNode between components
Hi guys, I have one component that creates an xmlDocument and I call another component that returns the nodes I want to attach to my xmlDocument I use this code but I get an error saying that "The node to be inserted is from a different document context." when I append the resulting node to my document. I know that but how can I pass XmlNode What could work and be really effcient because I don't want to return an xmlDocument. Just the xml string Or another object Thanks Dim myDoc as new xmlDocument Dim myCompon ...Show All
