Haitham.ElGhaareeb's Q&A profile
.NET Development The configSource attribute must be a relative physical path?
Hi, I get the following error when I try to specify the configSource attribute for my configuration section: "The configSource attribute must be a relative physical path." Does this mean what I think that it does That the path must be relative to either the configuration file or the application exe I get this error when I define the configSource attribute to "\\servername\\share\\filename.xml " or "C:\\filename.xml". But if I define it as ". ...Show All
Visual C++ CRecordSet ReadOnly in C++ Dll called from .NET
We are moving our existing VC++ V6 app to .NET using Visual Studio 2005 beta. To save on time we have been able to wrap up a lot of our existing base code into a separate C++ project within the .NET application. The main .NET application uses ADO.NET to connect to our SQL Server DB, the old C++ code uses ODBC via classes derived from the MFC classes, CDatabase and CRecordSet. We have completed some initial coding of the application and have be ...Show All
Visual Studio GridView. Template Controls.
Hi! I have a GridView on my page with some data. I also have a template column in this GridView with a couple of controls (a textBox, a DropDownList and a Label). How can I reach these controls Single line code samples are appreciated! ;) You may want to post this question to the .Net Development forum. http://forums.microsoft.com/msdn/ShowForum.aspx ForumID=39 Thanks, Jeremy ...Show All
Visual C# ?? Using String.Format() for a MAXIMUM Length ??
Hello all, Is it possible to use String.Format() to specify a maximum length for a formatted item For example, let's say I have: String.Format("{0}", "FREDDY"); How can I specify that the result of the formatting should be a string no longer than, say, 3 characters I know I can easily specify the minimum length, but I am producing a report with columns. I need to specify the maximum length, truncating whatever ...Show All
Windows Forms Treeview Bug
It is not possible to make a single node bold without the end of the node text being clipped. The work around this problem, I tried setting all nodes to bold and then setting all but one to regular. The problem now is that  ...Show All
Visual Basic How to move/snap mouse pointer to an object
I have an application where I want to move or snap the mouse pointer to a point on a graphic when it gets in the vicinity. I have the code figured to detect when the mouse is in the vicinity, but can figure how to move the mouse pointer. Or must I realy go to the extent of hiding the cursor and drawing my own pointer You can try using a native method to do this. Declare the following: Public Enum MouseAction &nbs ...Show All
Windows Forms Proper splash screen design
Hello everybody, I want to ask what is the best practice for splash screen design. Should the main method start two separate threads for the main form and splash form Or some other approach Like the main form spawning the splash thread Because I'm rather confused, I've been reading quite a few articles on splash screens all use different approaches and entry points. So I just wanted to ask what's the best practice about the problem. Any advice i ...Show All
.NET Development Need some huuuuge help, please!
Hi, If you have an SQL Database and in it 2 tabels,and on the main form you put both tabels, Clients and Reservations, with all their columns and I want to see every client with its reservation, how do you make all the connextions to work Besides binding every textbox that will be on that form with one of the 2 tabels, I have to write some code to work Thank you Regards, that depends on the controls that you gonna use for example ...Show All
SQL Server Why is taking so long to open/render the reports for the first time?
Hi, Why is taking so long to open/create/render the reports for the first time Is there any configuration to change this I don’t think this behavior is related to Report Execution or cache! I think there is something else going on! Thanks. I can't believe nobody has the answer to this question! Let me rephrase my question. When I open a report for the first time, it takes up to a minute to show it on the browser!! Why If the ...Show All
Visual Studio Team System Problems with "duplicate" user
I have a weird setup where which is causing me issues and I wondered of you guys had seen this and whether the problem has been fixed. I'm running Beta3-Refresh. I have a domain with an account called student, this account has a password (also student, but that is irrelevant I believe). I have a PC in a workgroup. That PC has two local accounts, one of which is also called student, this time with no password. I'm not sure that having no ...Show All
.NET Development Xml problem in finding a particular element when reading
Hi guys. What it the best way to do this I Have an xml file in this format <Countries> <Country> <ID>1</ID> <Name>Italy</Name> </Country> <Country> <ID>2</ID> <Name>France</Name> </Country> <Country> <ID>3 ...Show All
Windows Forms DataGridTextBoxColumn in DataGridView
hi all, I have the DataGridTextBoxColumn in the DataGridView, the DataGrid is associated with some DataSource and internally with a table, The table has some columns like CustomerID, CountryID, CityID etc., I want todisplay the CustomerName, CountryName, and CityName, instead of ID, which areassociated with some other master tables, Actually, I can do this easily with DataGridViewComboBox column, as we can attach seperate DataSource ...Show All
Smart Device Development WM5 deployment error
Hi. Just recieved this morning the first WM5 device that exists in the UK I believe. I love it! (trying to make the wifi work is tough...but anyway) I have VS.NET 2005 I have also installed the WM5 smartphone SDK. Problem I am having is this: When I create a New smart device project for WM5, I get a huge form on the screen, rather than the expected small compact form. Is this correct The form looks like the Pocket PC project. Other issue I have ...Show All
SQL Server How to stop discovery from adomd.net connection
I am using MSAS 2005 with ADOMD.NET 8.0 with .NET 1.1 I observed whenver we execute any query it does discovery of meta data. The meta data is part of resultset that is returned to the client. You can see this part of XML that is returned to client. <root xmlns=\"urn:schemas-microsoft-com:xml-analysis:mddataset\" xmlns:xsi=\" http://www.w3.org/2001/XMLSchema-instance\ " xmlns:xsd=\" http://www.w3.org/2001/XMLSch ...Show All
Visual Basic Failed to add TableAdapter error
I've created a solution with a windows forms project and a class library project. In the class library I added a "DataSet.xsd" file. When I try to drag a "TableAdapter" from the toolbox to the design surface of the dataset I get the following error: Failed to add TableAdapter. Key not valid for use in specified state. in a messagebox... Any ideas how to get around this When I hit OK the tableadapter goes away. Thanks, Jaso ...Show All
