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

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

wangbt5191

Member List

M Thomas
Sam_2
laboremus
Juan Carlos Ruiz Pacheco
rwbogosian
Hexadecimator
Matty4242
badsign
AustinW04
Peter__123
deGame
Annihil8
pyeung
ccaci
cosminb
Zero_
Tryin2Bgood
beto81
Tigers21
José Antonio Farias - MVP
Only Title

wangbt5191's Q&A profile

  • Windows Forms DataGridView & CellValidating

    I have a problem where CellValidating is firing when the DataGridView loads up. How can I dectect if the DataGridView is loading and exit out of the CellValidating I already use if (dgvSolred.Rows[e.RowIndex].IsNewRow) { return ; } To detect new lines. What I'd is to suscribe to the event after I set the DataSource for the Grid. DataGridView.DataSource = Source; DataGridView.CellValidating += new DataGridViewCellEventHandler(CellValidating); And if for any reason you need to change the DataSource, just unsucribe from the event on the DataGridView.DataSourceChange event. Hope this helps... ...Show All

  • .NET Development question about classes

    I am a fairly new to oop programming and have a question. I have a class defined as follows: namespace CapitalRequest { class CapitalRequestData { private bool _editMode; private string _requestID; private string _projectNo; private string _employeeID; public bool editMode { get { return _editMode; } set { _editMode = value; } } public string requestID { get { return _requestID; } set { _requestID = value.ToString(); } } public string projectNo { get { return _projectNo; } set { _projectNo = value.ToString(); } } public string employeeID { get { return _employeeID; } set { _employeeID = value.ToString(); } } ...Show All

  • Windows Forms Custom Control Error

    I have created a custom control, and added it to my toolbox. I have then used it on a form in the same project, and it refuses to compile. I have made no modifications to the cutom control, using only trhe default code from the add item wizard. The error i recieve is The type name <my custom type name here> does not exist in <form name.form name> When I say form name it may be the namespace as they are the same.If i click it to take me to the problem, I get directed to the aut genearted InitializeComponent method. Whats going on Any help much appreciated, Mike Controls added in the Designer result in code being added to InitializeComponent. Properties that non-default are explicitly set insid ...Show All

  • Visual Studio 2008 (Pre-release) "windows presentation foundation host has encountered a problem and needs to close"

    I am having trouble viewing XBAP's. On SOME of them I get the "windows presentation foundation host has encountered a problem and needs to close" error and IE has to exit. This does not happen on all XBAP's. For example, I can view some of the XBAP's on Charles Petzold's blog but not all of them. This implies that there is some operation that is being attempted which my system is having trouble with. Also, note that if it fails once on a given XBAP it always fails for that XBAP. Has anyone else seen this issue It there some way to debug this other than to send the error report to Microsoft I've done that several times and of course it's like sending a letter out into the abyss. I can also say that this has been going on for ...Show All

  • Software Development for Windows Vista SqlTrackingService Beta 2 Lab 03 exercise 2 failed

    In WF hands on lab 03 ex 2, after I added the SqlTrackService, the workflow instance got aborted. I added event handler for ServicesExceptionNotHandled, it is not called. Without the SqlTrackingService, it works fine. Workflow got completed. Comment out SqlTrackingService and add SqlWorkflowPersistenceService, the program finished with each workflow persisted and completed. But I did not see any data in the database. In all the cases, there is not exception catch by ServicesExceptionNotHandled hander. The database seems OK. If I change the connection string, I will get exception "Can not connect to database". Any one have solution for this Thanks, #region Using directives using System; using Sy ...Show All

  • SQL Server How to set douplicate id in sql server 2005?

    Hi There, Some one please help me to achieve this task. I have task to join 2 tables and insert values.The table which i am inserting values has typeid column which is primary key column.I supposed to insert values except this column(TypeId).When i m trying insert values its throw an error saying Error: Cannot insert the value NULL into column column does not allow nulls. INSERT fails. Please let me know ther is a way to set duplicate id for this rows Thanks in advance. Rafael Salas wrote: I don't understand; how is that a column is a PK but you don't want to insert any value on it a PK has to have a value, right It could either be an identity, or he needs to assign a value to it. ...Show All

  • Visual C++ Compiler selecting template function in error?

    class A { ... A operator =(A &rhs); A template<typename T> operator =(const T &rhs); A operator -(A &rhs); } int main(void) { A number; A otherNumber; A result; number="123"; //calls templated operator = as expected otherNumber="321"; //calls templated operator = as expected result=number - otherNumber; //calls templated operator = in error } I don't not understand why the templated version of the assignment operator is being called when minus operator returns an object of type A. The last line should resolve to: A = A After the call to the minus operator which should have the compiler c ...Show All

  • Architecture Survey respondents needed for masters thesis

    We are two students from the Royal Institute of Technology in Stockholm, Sweden (http://www.kth.se/eng/). We are currently doing our masters thesis in Applied Information Technology where we specialize in security. As a part of this thesis we will do a survey where we compare general information about software organizations and software projects with certain aspects and activities specific for the creation of secure software. We would really appreciate if you participated in this survey to help us with this masters thesis. Please feel free to spread information about this survey to your colleagues or any friends you have in the software industry. All answers we can get are helpful to us! The survey is availab ...Show All

  • Windows Forms Best practice - DatagridView column manipulation

    Hi I would like to give my users the possibility to change column width, change column order and change column visibility. This information should be stored so the application, next time started, remembers the settings. Also, the most right column, should automatically be resized to hide the background. I've been trying to solve this requirements myself, but not beeing able to find any "good" solutions. Is there a "best practice" for this kind of problems. I guess my requirements must be quite common. //lars Check this out: http://www.code-magazine.com/Article.aspx quickid=0607031 ...Show All

  • Visual Studio Express Editions Database Search for Visual Basic Express

    I have created a database with MS Access 2003. The database is read with Visual Basic Express. I am now trying to find a way to do a search. The search would allow my program to find data in my database based from Visual Basic Express. Thanks in advance. There's this walkthrough that you should read, it tells you step by step on how to do this search Walkthrough: Creating a Form to Search Data in a Windows Application ...Show All

  • Visual Studio SubreportProcessing not firing, does it have to be an executable project?

    Summary: SubreportProcessing is not firing when the project output type is not executable. Hi , I am using LocalReport in my application. All the reports are located is inside a library and also all of them are embeded inside the assembly, so far everythings worked fine until I tried to use a subreport. I notice for some reason the SubreportProcessing event does not get fired, in order to test the application, I copied exactly the same files into an executable test project, and I noticed everything work properly there. Can you tell me what is the problem   And if my guess is correct, problem is related to the project output type, how can I achieve this without chaning the project output type Many Thank ...Show All

  • Internet Explorer Development XML DOM using JavaScript

    Hi everybody how r u Actually i am really in big trouble for very small problem i guess. I am manipulating a xml file using xml dom using javascript, after manipulating the dom tree internally, when i tried to save the file i am getting "permission denied" error. I have tried saving file locally as well remotely. since my code is little big, i am giving u a dummy example. var xmlDoc1 = new ActiveXObject("Msxml2.DOMDocument.4.0"); var str = "<Root></Root>"; xmlDoc1.loadXML(str); var path = "C:\\1.xml"; xmlDoc1.save(path); for this also i am getting error. Thanks a lot. Hi Dig. first of all, i've encountered a similar problem in ...Show All

  • Visual Studio Tools for Office VSTO 2005 SE Deployment Problem

    Hi, I am creating a Excel 2007 VSTO COM Add-In using VSTO 2005 SE . It runs perfectly fine when I build it and run the in development computer having VS 2005 . However, when I try to install the setup.exe or .msi file for the same addin in the client machine or Virtual PC having the following configuration: 1. VSTO Runtime 2. Office 2007 3. .NET 2.0 Framework it does not seems to load . I also did caspol settings to make it Fully Trusted . I get the following error " Not Loaded. A runtime error occurred during the loading of the COM Add-in ." Can someone please help me on this Thanks in advance 1. I make load behavior as 3 2. set VSTO_SUPPRESSDISPLAYALERTS=0 3. Launch excel.exe from cm ...Show All

  • Visual Basic html editing problams

    i have create a file : Imports System.io ..... System.IO.File.Create( "C:\filename.html" ) now i want to edit it : <html> bla </html> i know that i can use Streamwriter but Dim StreamW As StreamWriter streamw.write("<html>bla</html>") doesnt work what shold i do to wirte into html / txt files with stream writer A FileStream can be used to make files... and in the case of using File.Open(), a FileStream instance is returned. The FileStream class extends the Stream class which is one of the possible items you can pass into the creation of a StreamWriter . A more direct way to have a FileStream instance create the file is to ...Show All

  • Visual Studio Tools for Office Automation in Excel 2003 fails when linked in Word or PowerPoint

    I am building a shared add-in for Excel but am having difficulties with Excel objects in Word or PowerPoint when my add-in is running. I have found out that the problem comes from listening to Application events in Excel and have made a simple project that reproduces the error. I used the VS2005 template wizard for making a shared add-in and my connect.cs looks as follows: using System; using Extensibility; using Microsoft.Office.Interop.Excel; using System.Runtime.InteropServices; namespace MyAddin1 { [ Guid ( "CE7B3AF1-9095-4e05-92FC-66F3AF564C47" ), ProgId ( "ExcelAddin.Connect" )] public class Connect : Object , IDTExtensibility2 { public Connec ...Show All

©2008 Software Development Network