vb lord's Q&A profile
Visual Studio Team System Object reference not set to an instance of an object
Greetings, I created a Solution containing two SQL Server 2000 Projects. I imported a schema into each project (both from SQLServer 2000) and corrected some errors. I saved my files and closed the solution. When I reopen the solution I get the error "Object reference not set to an instance of an object." for each project and now neither of my projects is available either from the solution or by opening the project files indiv ...Show All
.NET Development Reading ConnectionString from .config
I am interested to know how the ConnectionString line of code works. It appears to search machine.config, app.config and web.config. Anybody have any background on how this process works Does it really search all three files and in what order Protected Function DB( ByVal DatabaseName As String ) As String Return ConfigurationManager.ConnectionStrings _ (DatabaseName).ConnectionString End F ...Show All
Visual Basic Hanging Indents with VB RichTextBox
First, I'm new to VB so I'm hoping this isn't an overly dumb question... When I try to indent the first line of a paragraph in a richtextbox, the first line doesn't indent, but all of the other lines in the paragraph do. It's backwards, in other words. What am I doing wrong Code: rtf_1.SelectionHangingIndent = 10 Thanks AB ...Show All
Windows Forms RightToLeft property on Textbox control
So I'm using Visual Studio 2005 and anytime I add a textbox to a form the RightToLeft property by default is YES but it should be no and it's driving me crazy. I have Chinese, Japanese and Korean installed as system languages on Windows XP SP2 which someone suggested might be the cause. Is the default setting available to ...Show All
Visual Studio 2008 (Pre-release) PresentationHost.exe
What is the purpose of PresentationHost.exe It is the process that hosts XBAP applications when running in the web browser. ...Show All
Windows Forms Add new data source - object - wizard crash
I have a VB.NET Windows user control project that references an assembly that contains several entity objects and dataset. Each time I try to add a object data source, the wizard crashes when opening "select the object you wish to bind to" with this error message: An unexpected error has occured. Error message: object reference not set to an instance of an object. When I click OK, the wizard closes immediately. Binding in code work fine, and I h ...Show All
Visual Studio Express Editions Unable to create a stand-alone executable
This may sound like a beginner's question, and it really is one. I have just created an application. It's a fairly simple thing, no more than an interface that opens files and runs programs. When attempting to run the executable on other computers, a message is displayed requiring that the .NET Framework version 2.0.50215 be installed. Now I could put the entire setup for my application on the disk, so that the user first runs it; this way, I su ...Show All
Visual FoxPro Data Retrieval Slow with VFP 9 OLEDB Driver and Crystal Reports 10
I've run into a situation where my clients Crystal reports were running 4-6 hours in cases where they used to take minutes or seconds. I determined the cause of the problem is the VFP 9 OLEDB driver. Going back to the VFP 8 driver cured the problem (reports now run fast again). Has anyone else discovered this issue I'd like to report it to MS, but I don't want to burn an incident when I can work around it with the old driver. ...Show All
.NET Development UDP socket communication between a linux (server) and a window (client) machine in C#
Dear all, Are there any thing to watch out for between UDP socket communication between a linux (server) and a window (client) machine Can I just treat the linux mahine as a "black box" that I just send and receive byte arrays I am not able to receive data from the hardware which is linked to the linux machine. As far as I know, it seems my program is correct when I test my c# client program and a C# server program which just receives dat ...Show All
.NET Development TCP/IP Printing and Printers
I have 2 questions. I am still fairly new so please bear with me. I am using VB.Net and I have a computer on a network. I wanted to know if there is code I can write to return a list of all printers that are available to me on the network. The second question: I wanted to know if there is a way I can type the IP address of a printer then use TCP/IP to print to that printer using port 9100. Thank you for your help. ...Show All
Visual Basic Prime numbers
Hello I need to write a program, that takes a number (entered into a textbox, by the user) and determines if the number is prime or not. If the number is a prime number, then the program is just supposed to display, something like "This is a prime number" in a label. If the number entered is not a prime number, then the program is supposed to display the prime factors of that number. Must use the following Function and Procedure in program: ...Show All
Visual Studio Team System Broken FAQ for TFS
Hello -- I went to read the TFS technical FAQ (usually a nice thing to do before posting), but the links to the answers all led back to the top of the page with the questions. You can see this at: http://msdn.microsoft.com/vstudio/teamsystem/support/faqs/foundation_techfaq/default.aspx Sorry to have to post about this, but didn't see any better place to make it known. Cheers, Skip He's right. It works in IE (or ...Show All
Visual C++ _CRT_SECURE_NO_DEPRECATE has no effect
MSDN clearly states that if you define _CRT_SECURE_NO_DEPRECATE it "will disable deprecation warnings". I tried adding _CRT_SECURE_NO_DEPRECATE to the Preprocessor Definitions and #define _CRT_SECURE_NO_DEPRECATE to the code. In both cases I still get a C4996 warning from every single strcpy call. The only way to disable the warning, as far as I can tell, is to use #pragma warning (disable:4996) or add the warning to the C/C++ settings (Ad ...Show All
Visual Basic searching in datagridview using textbox
I had a datagridview which contains all the last name of a certain database.the data was displaying properly .I want to accomplished two tasks,first I want it that upon loading on the datagrid, data are sorted alphabetically already even without pressing the column header.Second I want to search the datagrid using a text box. I want like an autocomplete manner, if I type a single letter, say "B", the datagridcolumn will automatic ...Show All
Visual C# Sending message to remote computer by MSMQ
Hi all, I want to send a message by MessageQueue.Send(), but the Queue is in a remote computer. Is it possible, I'm a client in a network , I want to use MSMQ of another client in the network. Regards... Hello Aidy, Thats true, if I give the machineName\QueueName it should work. But when I try to do that I am getting the following error " A workgroup installation computer does not support the operation" Can you ...Show All
