Ben Fulton's Q&A profile
Visual Studio Express Editions Datagridview cell content deselect
I have a question regarding the Datagridview control. When I use mouse to select one cell, the value of this cell will be selected automatically, but I would prefer it not being selected, just put the cursor at the end of the value. How can i do that Thanks I didn't set any of those. Whatever I set is set in code. Try unsetting the things you set, like edit on enter etc and then see if the de-select works> Btw it's "code" it's never "codes". ...Show All
Smart Device Development Active X Control registration
Hello All I am new to the Mobile app development.I am developing an application using VC++ MFC dialog based application for Windows Mobile 5.0 smartphone in Visual Studio 2005. I have to use shockwave flash and Windows Media Player ActiveX control in it. When I am adding the control in the dialog and building the application it builds the solution properly. but while executing it the run time error appears illustrating that the component is not properly registered. The error is mentioned beneath: CoCreateInstance of OLE control {D27CDB6E-AE6D-11CF-96B8-444553540000} failed. >>> Result code: 0x80040154 >>> Is the control is properly registered I have found out that the Active X control need to be registere ...Show All
.NET Development ContextSwitchDeadlock While Exporting Data And Processing
Hi All, My program does the follwoing, 1. Extracts data from Excel File (30,000 Record) to temporary table in SQL server using bulk copy class 2.I am calling one stored procedure ( spUpdateTransaction ) to process this data and posting into 2 other tables. Step 1 executes fine by taking time around 1 Min Step 2, I recive an error in line "cmdFSS.ExecuteNonQuery();" The error is ContextSwitchDeadlock occured. But this program runs without any error at some time but most of the time irecive the above error. Can anybody help on this problem please.......... Here is my code........... private void btnExport_Click( object sender, EventArgs e) { string strExcelConString; string strExcelQuery; string ...Show All
.NET Development How To Retrieve ADO Recordset from Oracle Function Through ASP Using REF CURSORS?+++
I have a lot of Oracle function in packages and i would like use it in my ASP pages. With Oracle procedure it's all right. Sample like this ... set cn = Server.CreateObject("ADODB.Connection") connString = "Provider=MSDAORA.1;Data Source=<>;User ID=<>;Password=<>" cn.Open connString SQL = "{call test.test_asp({resultset 0, cResult})}" Set cmd = Server.CreateObject ("ADODB.Command") Set cmd.ActiveConnection = cn cmd.CommandText = SQL cmd.CommandType = 1 'adCmdText Set rs = Server.CreateObject ("ADODB.RecordSet") Set rs = cmd.Execute If NOT (rs.BOF and rs.EOF) Then Do while NOT rs.EOF <%=rs("dfcountry")%> <%=rs("dfname")%> rs.MoveNext LOOP End ...Show All
Visual Studio Tools for Office How to get a contorl instance of the ribbon UI?
Hi there, I am using VSTO SE and Excel 2007. I want to handle the ribbon UI and child controls. But' I don't know that how to get the a control instance of the ribbon UI. Microsoft.Office.Core.IRibbonUI didin't have any methods to handle(add/remove/visible/unvisible/set/get value) the ribbon UI and child controls. Has someone any solutions Thank very much, Dennis... But, My interest is that How to get and control a child control in Ribbon UI, Not add. There were examples about add controls and define callback-functions using the XML. But, There weren't examples about control them in real-time. Where do I find information about this ...Show All
Visual Studio Team System Time-tracking for TFS work items?
Does anyone know if there is a way to track the time spent working on a work item I'm thinking of something like a "clock-in/clock-out" feature, so a developer can record the actual time spent working on a particular task, etc. I assume that if there isn't a built-in way to do this, there might be a way to build this in as custom functionality. Any ideas/guidance Updated Question: Perhaps I should have stated this better earlier... TFS work items obviously have a field or two in which a developer can enter the total time spent on a project, but what I'm looking for is a way to help track and calculate that total time, based on a mechanism (like a chess timer, for example) which would allow a user to "clock in" ...Show All
Visual C# Is it safe to remove a delegate inside its delegated method?
This sounds a bit strange but it's a real world problem. Say I have an event Disposing and a method F() handles that event. obj.Disposing += new EventHandler(F); ... void F() { ... obj.Disposing -= new EventHandler(F); } Here's the problem, F() is going to remove itself from the invocation list of the Disposing event right at the time it's invoked. I don't find a statement for this in the spec. So could anybody tell whether this is designed to be safe or not guaranteed Thanks in advance. Emrah Yi it wrote: But I didn't know that user uses Managed Directx, so first post should be more explanatory... I talked in general and in general there is an event which is Component.Disposed and a p ...Show All
Visual Basic Program to execute on one machine only
Hello, My problem is that I want to deploy my program onto a 'thumb drive' and sell it that way and I need the program to only run off that drive. It is a small program that can easily be copied and run by anyone so I thought that if I could somehow 'lock' it to the small USB drive then that would solve my problem. Because some games require a CD to be in a drive before they will run I figured that that would be something that I could do, my problem is finding any help in how that might be accomplished. Can anyone point me in the right direction Thank you very much Bill Langston I think I'm getting closer. It looks like I can use the DriveInfo.GetDrives method to determine if the drive is a removable one and work wi ...Show All
Windows Forms Reliable enough?
I'm working on making my application work with ClickOnce deployment. It is an application that will be sold to custommers, thus installed on all kind of computers. So my concern right now is, is ClickOnce relable and mature enough, or I will be faced from time to time with problems on specific computers From what I can see, some issues will show up on specific cases. Hopefully not too often. Any comments Hi Mystery (I like the name) I was there. It all depends on how well you package your application and remove as much dependency as possible. Operating System and patches change per machine to machine. I have tested my application on different kind of PCs and different OS (2000 and up) and so far most o ...Show All
Windows Forms AutoResizeColumns gives operation exception
Hi, I'm having a problem with the AutoResizeColumns method on a DataGridView. I'm calling it in the DataBindingComplete event handler: void DrmGridView_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e) { this.AutoResizeColumns(); } but I get an operation exception with this message: "This operation cannot be performed while an auto-filled column is being resized." My grid has five text columns that are the properties of objects collected in a BindingList<>, and using a BindingSource. It's fine without the AutoResizeColumns (apart from the column widths!). I get the same error if I try to drag the divider to change the column width. Any ideas, please The stack t ...Show All
Visual C# Hidden files/folders? C# 2.0
I need to know how I can search through a folder or directory and NOT see all the hidden files/folders. C# 2.0 Windows App I want to display a directory I.E. My Documents and when I display the files and folders, I want to have a method which DOESN'T display the hidden files and folders and vice versa ...Show All
Software Development for Windows Vista Override Vista Scaling??
I read on technet that administrators should be able to override vista's scaling features. However it did not say how. I've looked around and I can't seem to find the setting anywhere. Does anyone know how to do this short of a registry hack. Basically I want to enable aero on my system, which is just slightly to slow for it. I have a 128MB graphics card and 1GB of RAM and all, but my system is still coming up too slow for it. I'm having the same problem. I know that my computer should be able to handle it but i've been looking for the override every where. ...Show All
Visual Studio Team System Create work item in Team Project (TFS) using c# code
Hi guys, Do we have any dll or web-service to integrate TFS with c# Ur help would be appreciated. Thanks. You can also refer to TFS API documentation at http://msdn2.microsoft.com/en-us/library/aa398956(VS.80).aspx Swamy ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Spacewar first run
Being a complete newbie to all of this C# and XNA i loaded up spacewar click on build then installed the project. Then i ran it and a error window popped up, details said something about a missing something or file not found, i sent a report to MS from the window that popped up. I can see im going to have to buy a C# for dummys book cause im totaly lost as to what to do first... Thakyou ScottJK. ScottJK wrote: This definition for D-pad is from http://en.wikipedia.org/wiki/D-pad Ok, no publishing. Can somone tell me how do i create a standalone .exe for the pc I thought publish = compile or does build = compile to exe. or am i missing something , ...Show All
Smart Device Development Datatable refuses to go out of US date time format C#
This C# does not seem to work: newTable.Locale = new CultureInfo ( "sv-SE" ); // newTable is a Datatable It's still in US datetime format. I've tried lots of different constructs. I working in Windows CE 5.0 DataGrid shows data in this case, so formatting should be done by DataGrid. That is supported starting NETCF V2 SP1. DataGridTextBoxColumn.Format is relevant property in that case. It's not going to change locale but it would format data as you need it to be formatted. Please see this for details: http://blogs.msdn.com/netcfteam/archive/2006/04/25/583542.aspx Alternatively you can change locale settings for entire device. ...Show All
