Shalabh BIndlish's Q&A profile
.NET Development Windows Services
I have created a windows service using the timer control to upload data to a database. This works fine on my development server but when installed on a user system with .Net Framework installed it nevers triggers the timer elapsed event. Can anyone help me out with this Thanks, Paula I got it, I needed to install a .Net ODBC Driver on the users system. Sorry to bother. Thanks, Paula ...Show All
Visual C++ Problem with VC++ 2003.Net Inheritance and destructors
I have come upon a weird but probably very simple problem. In Visual Studio.net 2003 I try inheriting a public managed class into a public managed class both of which were created by using the class wizard. If I comment out the destructors the library compiles properly. But if I leave in the destructors or any one of them the inheritance gives a compiler error. Would someone be kind enough to tell me what silly mistake I am making Error Messag ...Show All
Windows Forms datagridview
Hi, Hi, Iam using datagridview,How to add a new row to the datagrid view In insert button i wrote this code, dataGridView1.Rows.Add(3); when i run this code,it is giving the following exception exception: rows cannot be programatically to the datagridview's collection when control is databound In save button i wrote like this, private void button1_Click( object sender, EventArgs e) {da.Update(ds, "emp" ); } I ...Show All
SQL Server SQL Express with W98
Dear friends I have a question, SQLExpress are function with W98, because i had install SQLExpress in W2000 server, but the users with W98 can't connect the DB, this show a error, y tried connect by ODBC but i can't, what is the problem. Thank you Which error do you get If you use SNAC ou have to keep in mind that this not supported in Win95 / Win98. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Software Development for Windows Vista use of Activity.Save( ) method?
hi there ... i hav a few question regardin Windows Workflow foundation library n itz classes! 1) every Activity class comes equipped with a method called Save( ) ... but none of the activites, Base Class Activities, like code n all ... are serializable then wat is the purpose of this method 2) does framework uses this method to generate the .xoml file thx Muhammand - not sure if you are still in ...Show All
Visual C++ Hidind Console Application
Hello, Is it possible to hide this function from the user: system ("cmd"); For example, so when i run he wont see the window jusst the new that comes up on "cmd" Don't use the system function. Use ShellExecute with SW_HIDE. http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/reference/functions/shellexecute.asp ...Show All
Windows Forms SetParent
Up to now I used the Windows API to code my programs. Now I started using C++/CLI and .net 2.0. The Windows API has a function called SetParent(HWND, HWND) . Now I'm looking for the net equivalent. How can I move a Control from one Form/Container to another Form/Container Is it possible to make a Control a Form by setting it's parent window handle to NULL By the way, what is the real difference between a form, a container or a contro ...Show All
Software Development for Windows Vista Problem with TransactionScope when running Unit Tests
Hello, we are having a bit of a problem here. Three of us are running Unit tests daily. One of us have installed an English OS and the tests are running excellent. Two of us have Swedish OS and frequently run into this exception: Failed Test method UnitTest.CompanyTest.UpdateCompanyTest threw exception: System.Transactions.TransactionManagerCommunicationException: Communication with the underlying transaction manager has failed. ---> Syste ...Show All
Visual Studio Tools for Office VSTO Excel Binding a dataset from a webervice
Hello, Can someone point me to some sample code on how to get a dataset from a webservice and bind it to a sheet via the code If the dataset is quite large is there a way to parse it out onto different sheets Thanks in advance. John To make a method on Sheet2 callable from Sheet1, make it a Friend method and use the Globals class provided in VSTO. Code in btn_PostData will look like the following:1 G ...Show All
Visual Studio Tools for Office Select worksheet explicitly
I currently have an excel vsto solution that has an action pane consisting of link labels. There is code behind the link label click event to select a particular range in the worksheet. When you click the link label, it selects the range on the worksheet correctly, but if I start typing immediately, I realize the focus is on the action pane, not on the excel worksheet. Is there a method in excel that will explicitly pass the focus to the workshe ...Show All
SQL Server Migrating from Acess 2003 to Sql server - Function Val()
Hi folks I do a lot of work with address data. I have been using Acess 2003 as my database but now need to upgrade to SQL Server. My queries have been making extensive use of the Val function to order my queries on address columns. A typical address column might be: 12 The Avenue ....... by using Order By Val(AddressCol) I can sort these rows in ascending house number. I can't find anything in SQL Server that will acomplish this. ...Show All
Smart Device Development Possible Bug in Designer PPC Windows App
Hi, I get a strange result when dealing with the designer in VS.NET 2005 (release). Reproduce: I place a label on a form. Than I assign a backcolor (like ActiveBorder or so). This works fine. But when I try to assign a Custom Color - it does not take it. It can be done if I assign a Custom Color to the Window. Next I can change the bkgColor to a custom color for the Label in Designer. The value in the property window changes to the same val ...Show All
Visual Studio Team System Adding a Step to MSF Agile?
I was wondering if it was possible to add custom steps after I export and rename the MSF Agile process Reason being, I would like the Sharepoint site to have some specific permissions. After it's created, I'd like to set authenticated access to be automatically a "reader", so any user on our network can access the project sites to see information about them. Is there any documentation on this I was thinking just of making a .dll ...Show All
Windows Forms Font Change
How can you automatically change the font size according to your screen resolution Public ReadOnly Property FontSize() As Integer Get Return SystemInformation.PrimaryMonitorSize.Height \ 60 End Get End Property ...Show All
Visual Studio foreach on CodeElement for CodeClass returns physical file, need help
I'm using VS 2003 I'm doing a loop through the projectitems then a loop through each items codeelements and that is returning only namespaces. I do get the classes from the projectitems thereselves but they are never Class, only physical files. The class is marked as a phsical file and is a physical file (i.e. Namespace AccountEntity has a class named Account. I get the Account.cs as the projectitem with the kind as a vsProj ...Show All
