alejack's Q&A profile
Visual Basic Restrict '\' character in textbox
Hi everybody, How do restrict entering these characters <>\"%';()& and telling user these caharcters are not allowed to be enter in the textbox field using RegularExpression Validator I put in the Validation Expression property [^<>\"'%;()&]. It restrict every character execpt 0 to 9. How to fixed this I used [^<>\"'%;()&]+ in validation Expression property of Regular Expression Validator Control. All are working except when entering the character \, which suppose to restrict it. How to restrict '\' character Thanks. den2005 Try doubling the \ so that the ex ...Show All
Windows Forms DataGridView Object Data Sources
Hi All, I have tried to use a datagridview in a windows form to render a list of wine objects. The wine object contains a Region Object. I want the datagridview to to display two columns, Wine.Name and Region.Name. I have created a BindingList of Wine objects which is then bound to a datagridview. Using autogenerated columns, the Region.Name column renders as just its type name - not the data... What am I doing wrong Public Class Wine Dim _name As String Dim _origin As Region 'Wine Name Public Property Name() As String & ...Show All
Visual Studio Team System Permission denied when creating new team build
Things seem to be working great with TFS, except that when I try to create a new Team Build, I get this: --------------------------- Team Build --------------------------- Permission denied. You need 'Administer Build' privileges to create a new build type --------------------------- OK --------------------------- My user is set as a namespace administrator (and I've rebooted like that). I even had myself manually added and had all permissions set. Still get the same error. If I goto the DC and logon as TFSSetup, I can create a new build (well, I don't get this error). What else can I do so I can create builds Or should I ju ...Show All
.NET Development What's a good way to add record to an xml file
Would anyone help me about "How to add record to an xml file" I could add ONLY one record to it using Serialization, but that record will be updated by updating or creating a new instance of the serialized object, i want it to be added to xml file like a log file for exmple. Woth tahnk. Howdy... why don't you look at creating an object collection that contains your 'record' object. Just serialise and de-serialise as required, adding and removing from the collection. Just remeber to add the XmlInclude attrib for both your object type and objectcollection type. Give me a yell if you need some code for it. Che ...Show All
Windows Forms Let's kill a PDF!!!
Hey guys, I was wondering if anyone has any experience printing an adobe pdf file programmatically, and then killing it so that the process doesn't stay open after the application ends. My problem is that I think I'm killing the process too quickly before it has a chance to spool the information to the printer. If anyone has any advice or experien ...Show All
Visual C# Define Name in Excel through C# code
Hello, I have a code to import Excel Sheet into an .NET application through OLEDB connectivity provided if my excel sheet is defined as a table with a name by going through Insert-->Define-->Name. But I want to automate this option through code by simply selecting the excel sheet and it would define the range and then import the data. Has any one ever done this before The reason I want this to be automatted is, we have hundreds of excel sheets to import and it is really hard for an end user to define the name and then import them. I would appreciate if any of you post ...Show All
Software Development for Windows Vista Nvidia nForce MCP networking adapter drivers
I am trying to locate a good driver for the Nvidia nForce MCP nic on my ASUS system board but have been unable to do so. I am using the 5308 build and have tried the drivers directly from Nvidia however these do not work. Any suggestions would be greatly apprecieated. I understand these are supposed to function but on their site it says beta 1 and the version I am using the the 5308 beta 2 so I can get everything else working but this. I am having the same issues. I am running the 64 bit version of Vista 5308 on nVidia nForce3 built-in network adapter. Works erratically. If open network graph (in task manage ...Show All
Visual C++ how to use this dll in managed code
I create a MFC dll file like below, which is not compiled from CLR environment. //////////////////////////////////////////////////////////////////////////////////////////// ScanComm.dll head file //////////////////////////////////////////////////////////////////////////////////////////// #pragma once #include "serial.h" #define MAX_BARCODE_SIZE 255 #define MAX_COMPORT_SIZE 10 class ScanComm :public CSerial { public: ScanComm(void); ScanComm(LPCWSTR comPort, BOOL saveOptn); public: ~ScanComm(void); LONG LoadPropFile(LPCWSTR propFile); LONG InitDevice(DWORD dwInQueue = 2048, DWORD dwOu ...Show All
Visual C# Reading a Log and Extracting Data
Using C# or VB.NET Ok here is my situation. I have a text document that I extracted from another program with lots of raw data. I would like to create a program to search this raw text document that pull certain parts from it and place that info into a datagrid or an array or anything at all, just pulling the data is what I need. Here is an example: (Note the Raw Data is formatted very well) Text Doc: ["Guild"] = "Guild Name", ["DBversion"] = "1.1", ["DateExtracted"] = "07/14/05 02:27:30", ["Hour"] = 3, ["Locale"] = "enUS", ["Members"] = { ["Member1"] = { ["Note"] = "", ["Class"] = "Fighter", ["Level"] = 31, }, ["MemberX"] = { ["Note"] = "", ...Show All
Visual C++ How to interrupt a continuous plot?
I am using visual C++ 6.0 to program a data acquisition system. I am continously plotting data within a loop but am unable to access the file menu (or any menu) during the plot. It seems that any other inputs are blocked during plotting and it doesnt allow access to a user input to stop the acquisition. Any suggestions would be appreciated Cagla This is very difficult! Interrupting painting, or making painting reentrant. You can use another thread. But you need special techniques because you cannot pass the DC to the other thread. Also your WM_PAINT message arrives in your main ...Show All
SQL Server Is SQL Server 2005 still using Named Pipes ?
I keep getting errors. It all started when I enabled named pipes on my SQL Server 2005 server. Ever since then I've had connection problems up the butt. Most recently I got this error so does this mean that SQL Server is still trying to use named pipes even if I only have TCP/IP enabled in SQL Server Configuration Manager Error: TITLE: Connect to Server ------------------------------ Cannot connect to BG-SQL2005. ------------------------------ ADDITIONAL INFORMATION: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fa ...Show All
Visual Studio check-out causes refresh of all (most) files in project
Hello, I'm using VS 2005 on an XP pro machine. I have a .resx file in a sub-folder on the project, used for localisation by most pages. My business partner and I are using sourcesafe over the internet. When I check out the .resx file (say by trying to edit) , sourcesafe does check-out, but I don't get access for 25 minutes while VS cycles through all the files that reference the .resx file. Any way of stopping this Hi, I don't know what VS is doing " for 25 minutes while VS cycles through all the files that reference the .resx file", but that doesn't sound like a SourceS ...Show All
Visual Studio Tools for Office Auto Sum From Left to Right
Does anyone know how to use the autosum from left to right I got the sum function working but only from top to bottom. Thanks Example: Lemonade Sold Monday Tuesday Wend Total 15 25 28 68 http://msdn2.microsoft.com/en-us/library/microsoft.office.tools.excel.namedrange.calculate.aspx For others ^ Thanks anyways. ...Show All
Windows Forms Binding ArrayList (of Structures) to a Datagrid Question?
OK. I am **hoping** this is something silly and simple that I'm forgetting to do. I've read some examples on binding a datagrid to an array list and that is what I'm now trying to do. I've got an ArrayList (populated from a structure). I've got the MappingName set to the ArrayList name (which I believe is what I'm supposed to do). I've g ...Show All
Visual Basic Can I compile C# code and VB.NET code into the same DLL?
We have 2 libraries of code that we want to combine into a single library so that they both have access to each other. One is in VB.NET and one is in C#. Both are .NET 2.0 in Visual Studio 2005. Thanks. John. No, but you can buy programs that convert between C# and VB.NET, in both directions. ...Show All
