Software Development Network Logo
  • Visual Basic
  • Visual C#
  • SQL Server
  • .NET Development
  • Audio and Video
  • Visual C++
  • SharePoint Products
  • Game Technologies
  • Microsoft ISV
  • Visual Studio
  • Visual FoxPro
  • Windows Forms
  • VS Team System
  • Windows Vista
  • IE Development

Software Development Network >> Chimme's Q&A profile

Chimme

Member List

Przemek G.
CraigT
Mehta Vikas
nglow
CarlosA
KentaroM
tenchyz
Adam J Friedman
Insignia
Scott_P
Giedrius Banaitis
teqmem
aborchik
Martin Bennedik
TheViewMaster
abcoura
Preston Moore
ChildGuidanceCenterGB
Enkht
Horst Klein
Only Title

Chimme's Q&A profile

  • Visual Studio Express Editions Full row select in readlonly DatagridView and EnterKey

    Hi Am am using datagridview in readonly mode with fullrow select turned on. When I press enter bring up a dialog to handle the Adding/inserting of records. After the dialog is closed, the selected row moves to thenext record. how can I stop this default behaviour. I would like the selected row to stay the selected row. I have looked at other posts but the all involve calling ProcessRightKey to get the focus to the next cell. Unfortunaltly I am unable to tranlate that solution into my requirements. Hi, You mean to press enter and not let the datagridview to go forth to next row, right If so, you can override ProcessDialogKey and ProcessDataGridViewKey method in datagridview. To c ...Show All

  • Visual Studio Tools for Office Loadbehaviour changes automatically from 3 to 2

    Hi, I have a weird problem when deploying my Office Addin developed in VS2003. When installed the values for word, excel and pp. are all set to LoadBehaviour 3 as it should be. As soon as Iam starting on of the apps the values changes from 3 to 2 and therefore the addin doesn't come up. If Iam changing it back again it will be overwritten to to after the next attempt. Please help! many thanks in advance! Patrick hint: there is not .net 2.0 installed, as I could find a solution for a similiar problem in vs2005 Sounds like you've got an unhandle exception in the OnConnection startup and the apps are disabling you. http://blogs.msdn.com/eric_carter/archive/2005/02/01/365021.aspx ...Show All

  • .NET Development Unable to write file with StreamWriter after replacing explorer as shell.

    Hi, everyone. We have an application that we are using to replace explorer.exe as a user's shell. The application runs in a manufacturing environment, is the only thing that we want to run on the machine. We are trying to write to plain-old text files from the application using the StreamWriter for logging purposes. If we set explorer.exe as the shell and then start the application from within explorer it writes the logs with no problem. Now, if we replace explorer with our applicationa s the shell, then no logs are written. Even if we then start explorer.exe after our application has started, still no logging. The code behaves like everything was written OK, but no file is created or appended. I even tried a third-party loggin p ...Show All

  • SQL Server help with query syntax

    Hi all, I have been fighting with this query and would like some advice. Please consider the following tables; prod_table widget_number shift date production_time (in minutes) down_table rec_id (ident key) down_shift down_date down_minutes Prod_table (data) widget_number shift date production_time 0001 1 08/02/06 5.00 0002 1 08/02/06 10.00 0003 1 08/02/06 7.00 0004 2 08/02/06 5.00 0005 2 07/31/06 3.00 Down_table (data) rec_id down_shift down_date down_minutes 1 1 08/02/06 3.00 2 1 08/02/06 20.00 3 2 07/31/06 10.00 I would like to combine ...Show All

  • .NET Development searching through an xml document

    I'm creating an application that needs to search through a large xml document for any text matching what the user has entered. Can anyone please tell me what would be the most efficient way to handle this as the xml file is fairly large (20mb) Many thanks It is a bit huge XML i would say. Anyway, as far as i know the XPath is a best case here. I suggest to use XPathDocument (or better say XPathNavigator) because at this size you will pay a lot for opening it as XmlDocument. Hope this helps. ...Show All

  • SQL Server Exporting To .xls

    I did a move of reporting services to another server. This was a problem before but someone else figured it out. I have a report which should be around 6MB (it was on the other server) but it exports to .xls at 67MB and will not open in Excel. When I download it as .csv it is about 3-4 MB. I seem to recall something related to headers causing the problem. But that could have been another issue. Please give me any suggestions. I have some other reports which download, slightly larger than I think they should be but they work in .xls. No there are not any images at all. I am using the same database, same rdl file, just renamed the datasource and server name. This is very strange. It is about 1000 rows and 25 columns. Best Regards, J ...Show All

  • Windows Forms ProcessCmdKey and Controls.Clear

    Hello, im writing a small C# Win application for my University assignment, i have encountered a nasty problem while trying to implement keyboard shortcuts: i have this code in MainForm.cs ... protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { switch(keyData) { case Keys.Control|Keys.Q: ShowControls1(); break; case Keys.Control|Keys.W: ShowControls2(); break; } return base.ProcessCmdKey(ref msg, keyData); } ... protected void ShowCotrols1() { panelContainer.Controls.Clear(); //add some controls ... } ... protected void ShowControls2() { panelContainer.Controls.Clear(); //add some controls ... } ...Show All

  • Visual Studio Team System Data Generation and Lookup Tables with Known Values

    Is there a way to exclude lookup (foreign key related) tables in a data generation plan Our scenario in simplified form is as follows: assume we have two tables tblPrimary and tblLookup. tblLookup has fields LookupCode and Description wich have known values. We would like to populate tblPrimary which has a Foreign Key constraint relating it to tblLookup on LookupCode. Currently when we select tblPrimary in the data generation plan tblLookup is automatically selected and we are unable to exclude it. The problem is that there isn't any way that we can see to generate the correct matching LookupCode/Description combinations since the two columns generate data independently and since LookupCode is a unique primary key we can't use the RegularE ...Show All

  • Software Development for Windows Vista Unable to terminate process

    I have a .NET console app that is being scheduled to run through windows scheduler. Sometimes this process hangs and I'd like to be able to kill it. Unfortunately, I get an "access denied" error whenever I try to kill it with task manager. I've tried the kill command from the platform sdk and even tried the code here: http://support.microsoft.com/kb/q131065/. With the latter solution, I'm able to add the debug privilege with no errors, but the TerminateProcess still fails with "Access Denied." Is there some alternative technique to killing processes spawned with the scheduler Yes.  My user account is a local admin on the box.  I'd have to jump though some IT hoops to get ...Show All

  • .NET Development Interop Thread Leak?

    Hi, I'm hoping for a few pointers for tracking down a resource leak. I developed a VB 2.0 indexing application which is using FileNet's Capture COM objects and we're occasionally seeing a fairly serious leak. It doesn't appear to happen consistently (one user has never had one and I can't seem to reproduce it in my test environment), but it does occur regularly in production. I've been using various tools to poke around in a mini-dump (w/ full memory) and I've seen a few potential problem areas, but I can't seem narrow it down any further. Using PerfMon I found that the leak appears to be in private unmanaged memory. When I open the dump in WinDbg, I get this message: This dump file has an exception of interest stored in it ...Show All

  • Visual C++ CList and template

    Hi guys, I made a template that will works on a CList type, but it doesn't work. template <class T> class CIntFile { // ... void Write(T list); }; template <class T> void CIntFile<T>::Write(T list) { //// list.GetAt(0); list.Next(); //// } ///////////////////////////// in another file: CList<CIntMyClass> listMyClass; /// fill it listMyClass.Add(NewData); /// CIntFile<CIntMyClass> intFile; intFile.Write(listMyClass); -------------- Why Tnx Not problem of compilation of linking. Just one problem, I don't know how I can make a template class that can accept a CList of MyClasses and use these by the methods of my template class. ...Show All

  • SQL Server SQLBrowser problem

    Hello everybody, we have encountered big problems with SQL 2005 SQLBrowser service. We changed settings for SQL Server 2005 Network Configuration trying to resolve some warnings in event log from SQLBrowser service. To made story short - this is cluster environment with multiple sql instances and sql services failed to start. Using clusterrecovery tool resolved that issue, but since then SQLBrowser service wouldn't start, for example running "sqlbrowser.exe -c" outputs: SQLBrowser: starting up in console mode SQLBrowser: starting up SSRP redirection service SQLBrowser is successfully listening on 0.0.0.0[1434] SQLBrowser: failed starting SSRP redirection services -- shutting down. All sql instances are running ok and ...Show All

  • Visual Basic Raising events

    I was wondering if the following is possible: I have 1 windows form and 2 user controls. Each user control has a shared event, I would like to use the shared event of UC1 to raise the event of UC2. Thank you for your help. Ok, I figured out what I needed to do. In UC2 I have several shared writeonly properties. All I had to do was set the writeonly properties to raise the event. For instance: public class class shared event Event() shared writeonly property Property() as integer set(byval value as integer) variable = value raiseevent Event() end set end property End class In UC1 I have an event that is raised when certain events happen in the user control. Then I palce both of my user controls on my form and run the following code: i ...Show All

  • Smart Device Development Datagrid Paging

    Hi, Does de datagrid in the CF 2.0 for windows forms suports paging Regards Mario If by paging you mean "Up" and "Down" buttons, then no, it does not. You can add these buttons and some code yourself, however. As user pushes these buttons, load data source with different portion of data and you all set. ...Show All

  • Windows Forms WebBrowser interaction help

    Used to be with the ActiveX web browser you can use - AxWebBrowser1.Document.All("username").value = "HackMax" to set a value of an element in an HTML document. How do you do it with the new WebBrowser control in .NET 2.0   Heh this page throws me a scripting error in this copy of my OS but it posts to this forum hopefully. I installed another copy of my OS in another partition to clean up my system because I have been having trouble with this copy of Visual Studio. (That copy won't post to the forum for some reason.) Seems my code keeps losing all the "handles" statements at the end of the event handlers. I have tons of them and losing them all is catastrophic. (Starting another ...Show All

©2008 Software Development Network