Frederic Enesys's Q&A profile
Visual Basic Need help with loading a form.
Hi all, I'm new to VB and need some help im trying to get a form to load after a login box below is the code im using so far. Also is there any way i could get the login box to check a database for the usernames and passwords before alowing login If Usrname.Text = ( "greg" ) And Password.Text = ( "password" ) And Domain.Text = ( "United Kingdom" ) Then Im not sure what goes on the end of then. Thanks, Greg Thomas Here's a general idea of what your going to need to do... I'n the example I'll refer to the the two forms as login form and firstform w ...Show All
Visual Studio Team System Can't install in Vista Build 5384 (Beta 2) 64-bit
I just installed Vista beta 2 on my AMD 64-bit x2 machine. Vista appears to be running find, but I'm not able to install Visual Studio 2005 Developer Edition for some reason. When I run the setup program and select the first option (install VS2005), it copies about 66 files to my hard drive and then ends. There's no error or anything. I think at this point it should be trying to run something that it copied to the hard drive from the VS2005 DVD, but I'm not sure what. Dos anyone have any ideas about this Thanks in advance... Eric While I haven't seen that particular bug, Vista / Office12 compatibili ...Show All
Visual Basic Treeview Node Search (FullPath, Level, and Name)
The code I use to search for a particular treeview node obviously works because no error arises. However, when I try to show that 'searched for' node by displaying the treeview's selected node in a message box, nothing happens. It's as if my code did not find the node. Any suggestions By the way... Of what use is node.level if I cannot use it in code to manipulate a node I haven't found a way to even search for a node using level unless I write a recursive loop. It is as if level is for information only, not manipulation. Thank you very much for your excellent adv ...Show All
Visual C++ Compiler does not find form class
Hi, beside that the built in real time compiler an syntax checker in the formular designer for C++ projects ( VS 2005 beta 2 ) is buggy power 10 i have a little problem. Pls guys fix that!!! I#m crying sometimes I'm designing a little MDI app. So when i want to show an about form from the main formular the compiler says unknown structure for that class. But when i include the header of the about form class some really strange things are happening. Million errors are fireing and many control variables are doubled in the main class by the formular designer. When i use the namespace scope the compiler always says unknown class and so. So my qu ...Show All
Visual Studio 2008 (Pre-release) how to create .xps files
can anybody know how to create .xps files programatically You probably want to start here . Pay special attention to the side bars. there is an XPS popup menu on the left and there are related links on the right. Articles and code samples for XPS documentations can also be found here Hope this helps. ...Show All
Visual C# Updating an SQL database
Got a little problem... I have a simple windows form with one button and two textfields taken from a database. When i press the button, I want to save the information in the textfields in the table where the textfields are attributes. This is my code: private void btnSave_Click(object sender, EventArgs e) { String kode = entKodeTextBox.Text; String navn = navnTextBox.Text; SqlConnection testConnection = new SqlConnection( @"Database=northwind"); SqlDataAdapter testAdapter = new SqlDataAdapter( "SELECT EntKode, Navn from TestSimen", testConnection); SqlCommandBuilder testBu ...Show All
Visual C++ batch build over telnet and error PRJ0003 : Error spawning
Hello, I try to build my application with a batch build via telnet on another computer in our company network. But I get the following error messages when cl.exe tries to start: Microsoft (R) Visual Studio Version 8.0.50727.42. Copyright (C) Microsoft Corp 1984-2005. All rights reserved. ------ Build started: Project: SOFILIB, Configuration: Debug Win32 ------ Compiling... Project : error PRJ0003 : Error spawning 'E:\Programme\Microsoft Visual Studio 8\VC\bin\cl.exe'. Creating browse information file... Project : error PRJ0003 : Error spawning 'E:\Programme\Microsoft Visual Studio 8\VC\bin\bscmake.exe'. Build log was saved at " file://q:\obj ...Show All
Visual C++ Places Bar on CFileDialog
Hello all, I'm using a custom save dialog inherited from the CFileDialog. The problem is that the Places Bar is hidden, and I can't show it. Can anyone help me please !! Thanks a lot Martin. I think this article is a good one. But a problem encountered me while updating my dialog as in the article. The problem was that I use the “edt1” which is the File Name edit box control to change it’s position. But in the new Dialog, it seems that MFC change the dialog template when changing the size of OPENFILENAME structure, and the edt1 edit box replaced with the cmp13 combo box. I have another ans ...Show All
Visual FoxPro How to visualize an SQL server table in MSDE?
Hi! I want to visualize an sql server table in a grid, and then, modify my data, and upgrade the original table in sql with a button! Is it possible using sqlexec( ), and without using wizard tool Il I want to make a select in a sql server table, how I can visualize that in visual fox Thank you! Browse command opens in its own window. That's normal. If you want to view in a form grid then create a form and grid. Set grid's recordsource. ie: Public oForm oForm = Createobject('myForm') oForm.Show Define Class myForm As Form DataSession = 2 Add Object myGrid As Grid With RecordSource='results' Procedure Loa ...Show All
Visual C++ PRJ0050
Hello, I am building a DLL with ATL8.0 in VS2005. I am getting this error when I build the DLL. error PRJ0050: Failed to register output. Please ensure you have the appropriate permissions to modify the registry. Very next time I build, it goes away and the comes back next time. Sometimes i can build 4 - 5 times without error and then it comes back. Any help will be appreciated. I have full permissions on registry. I never had any problems in VS2003. Thanks Another problem of this error can be exception inside DLLMain. When DLL is loaded DLLMain is called. So if you c ...Show All
Visual Studio Stepping through the debugger takes a life time.
Hi all, I have just gone through the process of upgrading to VS 2005 from VS 2003 and have noticed that when I debug my application stepping through it takes an absolute age now. It takes around 12-15 seconds for each step - making my debugging life hell :( Are there any ways I can look in to actually speeding this up Thanks Tryst Are you running into this http://blogs.msdn.com/greggm/archive/2005/11/18/494648.aspx ...Show All
.NET Development HttpWebRequest.BeginGetResponse - Why is TCP window size zero?
Hi, I have a server application that gets web pages from different web servers with HttpWebRequest.BeginGetResponse . The problem is that, after a while, one of my requests gets never answered. I've seen with the sniffer that the packet containing that request has a TCP Window Size of zero. This causes the server not to send the answer. Whan can be the cause for this Any clues Thanks, Fran If the window size is zero on a given connection this means you have outstanding data to read on the connection. Can you post the code snippet that is causing this behavior ...Show All
Visual Basic Add connection wizard fails with Access database
I have the RTM version installed. I am quite puzzled at this wizard. It works fine with SqlClient. But for Access databases, this wizard completely fails. In this wizard, I only have one option to do - setting the ConnectionString. I set it to Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\path\abc.mdb, which works fine in my code. But when I click OK, it complains: --------------------------- Microsoft Visual Studio --------------------------- Format of the initialization string does not conform to specification starting at index 0. --------------------------- OK --------------------------- And more, the Advanced button is dis ...Show All
SQL Server Web App Failover problem
Hi, I have successfully set-up a DB mirroring. When the pricipal goes down, the mirror picksup and the other way around too. So the mirroring part is working great. However, when I use my web applicaiton (dot net 2.0), it is not able to connect to Mirror server . I get the following error: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) My connection string in web app: &q ...Show All
Visual Basic VB.NET reference to VB6 DLL recompile
Hi all, I have developed a simple VB6 DLL to be used in VB.NET. My problem is that everytime I compile VB6 DLL, my reference in VB.NET was loss and I have to re-make the reference. Do I miss anything to automate it Thanks. Make sure you've enabled Binary Compatibility in the VB project properties (and that you don't break any exported interface). ...Show All
