keroed1's Q&A profile
.NET Development Type.GetType(string) not working after migration to 2.0
Hi, we are trying to port our (ASP).NETapplication to 2.0/VS2005, and we're running into a lot of problems. We think we are on top of most of them, but we have one that we simply have no clue about, and it happens to be something completely blocking. We use "ajax" techniques extensively. JS on the client uses the xmlHttp component to post an xml document to the url of a page "getXmlData.aspx". The query string includes a fully qualified class name, and we use Type.GetType() to get the Type object and then Activator.CreateInstance() to instantiate it. After converting the solution to ASP.NET 2.0 the GetType() method returns null! At ...Show All
Windows Forms Displaying DataTable default column values in a new form
I am wanting to display data in a Windows form from a typed DataSet that displays only one record of data but the data is not displaying - the controls are blank. I am obviously missing a step. I have followed the process below... Created a typed DataSet using the DataSet Designer, added a DataTable and columns and set the columns default values. Set the AllowNew property of the DataTable to false. Added the DataSet to the Data Sources window. Created a simple Windows form with 1 textbox and 1 combo box. Dragged the relevant data source items onto the controls on the form controls. What I expect when I run the program is t ...Show All
Visual C++ notification message from CSliderCtrl when starting to drag
Hi all, in my application, I have a CSliderCtrl and also one timer. at the timer event, I read the values from an instrument, and refresh the interface, also the CSliderCtrl. For some users, the interval of the timer is too short to change the value before it is refreshed. I want to kill the timer when the user starts dragging the slider and agin start it after he stops. right now I process the NM_REALEASEDCAPTURE message for getting the values from the slider. I did not find any NM_LBUTTONDOWN or so notification. can anybody tell me the correct message to process . thanks, Hardik ...Show All
.NET Development Deal with datas slowly
Hi: When open DB in SQL EXPRESS or deal with datas in application,that's much slowly than non-DB application,Why How to improve that What's the difference between stored procedures and SQL statements When load datas,DB automatically sort by PK,Can load datas by input sequence Hi, Accessing a database in all platforms is much more slower than accessing the in memory objects that your application creates. When you just access SQL server you are creating objects and creating connections against the server, server handles your request, accesses disk and returns you whay you queried. The possible ...Show All
Visual Studio Team System GetLatest "Force" option in the object model?
I've read James Manning's comments in this post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=236346&SiteID=1 I would like to be able to offer a force behavior, but this code doesn't give me the results I want: GetRequest request = new GetRequest(localPath, RecursionType.Full, VersionSpec.Latest); GetStatus status = this.workSpace.Get(request, GetOptions.Overwrite); Anybody know a better way Alan, I'm away from my main dev machine at the minute so can't test this. From memory the Overwrite option forces overwrite of files that are writable in the working folder. The option you probably want is something like:- Ge ...Show All
Software Development for Windows Vista Workflow at presentation layer
Hi, I have recently read an article on Windows Workflow Foundation that hinted that it will be used for "User Interface Page workflow". I could not get much information on it so far among various documents that are currently available for MS - WF. Does that really mean about using WF as page navigation mechanism or implementing Workflow at presentation layer Thanks, Ganesan Krishnamurthy. Thanks, Arjun. I referred the workflow overview content in http://msdn.microsoft.com/windowsvista/building/workflow/workflow_overview/ (user interface page-flow). I will go through the link mentioned by you. Regards, Ganesa ...Show All
Windows Forms Method to set datagridview row background color
Hi all, I had a datagridview. May I know how to set the particular row color of a datagridview to yellow Please help. Thanks Yes you can do this by using the following code snippet int RowIndex = 0; this .dataGridView1.Rows[ RowIndex ].DefaultCellStyle.BackColor = Color .Yellow; ...Show All
Visual C++ c++ compilation strategy
Well .. this is probably not specific to C++ language. It is a more general question on the requirements of including headers, etc, and so sort of basic, of compilers. I have been looking at translation units and linking, etc. I learnt that there can't be duplicate identifiers in all of the translation units combined. If there are duplicates, it's a linking error. It can be avoided by using extern keyword for all the duplicate declarations of the identifier. Each .cpp file that is included in the project is compiled separately and so results in a compilation unit. The compiler requires that before the code is compiled, the identifier must ha ...Show All
SQL Server Selecting ProfileName to use by the SQLMERGXLib.SQLMerge
Hi I am trying to set the profile name for the merge agent to use during replication. currently I am setting .ProfileName = "High Volume Server-to-Server Profile" But it still defualts to the defualt profile during merge. Has anyone had any luck in setting the profile I know I can do it opn the server but we are imaging the computers on the lan first and then rolling them out to the client sites. Some will be only using dial up to merge changes hence the need to be able to change the profile in the Vb code calling the merge. Cheers Davide Hi Davide, Using a custom profile or any other built-in profile ...Show All
Visual C# performance problem
Hello. I have created our custom ticket-like component. I must place multiple ticket's component on the form in runtime. This tickets must fit in the form's size. their size changes according the amount of tickets to fit on the screen, and this process is to slow. when I have more than 4 components on the form, and I put another one, all of the tickets size is changed and the screen is flickering. I tried Application.DoEvent(), Invalidate etc. but nothing gaved me the result I wanted. anyone knows what's the problem I appreciate your help. thanks in advance. Hello I suggest that you review the Code you have written, there may be ...Show All
Visual Basic Loading Folders into TV
Someone said that to load folders into a treeview you need to load it as an array But i need to know exaclty how do load your computers folder and dircetories into a treeview list This is typed from memory and some running code. The fileinfos code may is for illustration and may not be accurate. You have associated the Treeview control smallimagelist with an imagelist with 16x16 pixel images. You have an enumeration of the Images that looks like this: Public Enum ImglstImages cExpanded &nb ...Show All
.NET Development Error 400 Bad Request
I am having problems with a .NET remoting application, which runs fine in the development environment. The application is using http channel and binary formatter to serialize custom objects. I have three .NET assemblies on the remote machine. Two of the objects contain methods which query a database and populate array lists to be returned to the calling application. One object is returning an array list of strings and is working fine. I am using that object to populate combo boxes. There are two methods in second object. One method returns a string array and is working correctly. The method which returns an array list of custom objects ...Show All
Visual C++ Active X not working from webpage without Studio installed
Hi all, This is my first Active X component, so I may have made some basic mistakes. But here is what I have done so far... 0. I am using Studio 2005. 1. Created a real basic (AboutBox) MFC Active X Contron using VC++. 2. Created a CAB file project. a. Included the OCX and and INF file to the cab. 3. Created a license file using LPK_tool.exe. 3. Created an HTML page that will access the Active X. And display the AboutBox when the button is pressed. 4. Copied the CAB, the license file and the HTML file to Tomcat webserver. Execution: Test Settings: Using IE on XP prof. Set all the security settings to download, install and initialize unsign ...Show All
Visual Studio Express Editions Sound
Hi im making a VB Program in Visual Basic 2005 Team SUite the problem is ow can I add sound to my prog I believe the My namespace has the ability to play sounds. If you want to play anything other than wav tho, I think you need to use DirectShow ( in the PSDK ) or Windows Media Player. ...Show All
Visual Studio Team System TF30177: Team Project Creation Failed
It feels like, I am going one step forward, just to be thrown two steps back. Ok, my problem is close to be the same as with TFS BETA3 (now i use the CTP). When I try to create a new team project, it fails with this (friendly) message: Error Unable to connect to the Windows SharePoint Services at COMMMO-TFSRV Explanation The Project Creation Wizard was not able to connect to the Windows SharePoint Services at COMMMO-TFSRV. The reason for the failed connection cannot be determined at this time. Because the connection failed, the wizard was not able to complete creating the Windows SharePoint Services site. User Action Contact ...Show All
