AsOne's Q&A profile
Visual Basic Problem wiring click action to a button
I have just installed VB 2005 Express (first time user!) and am trying to follow the example of creating a simple web browser which starts at page 60 in the PDF Manual 'Build a Program Now!' I have followed the examples without a problem until I hit page 65 headed 'To wire the click action to a button.' The Manual states 'Close the running application and go back to the IDE. Double-click the button control. You'll see the code window as shown in Figure 4-3'. The problem is that the code shown in the example is: Private Sub btnGo_Click ( ByVal sender As System.Object, ByVal e As System.Event.Args) Handles ...Show All
SQL Server Multi Value Parameters
Hi, Thanks for the reply...I think I should have been a little more clearer. I can specify the multi paramaters, but I want to be able to select certain values from that parameter like in the pic. E.G. I have a dropdown with City's in, but I dont want to select one, which is what I can only do at the moment, I want to be able to put a tick in the tickbox next to it to select more than one Does this make sense RS2005 is not for production purpose. Wait until november 7th. I think it's possible in RS2000, but I've never tested RS2000. I'm sorry. ...Show All
Windows Forms Change the color of the SortGlyph
I would like to make the Sort Glyph shown in the DataGrid header more distinct. For example my header is yellow and the text is black but the sort glyph does not pick up the text color. I would like to make the Glyph the same color as the text to make it stand out. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XACT Beta?
How does one get on the XACT beta program I went to https://connect.microsoft.com/availableprograms.aspx and it is not listed there. I signed up for the DX beta program, but it apparently does not let you access the XACT beta newsgroup, which is where I would like to ask questions. I also tried going to http://beta.microsoft.com/ and using the Guest ID: XACTBeta, but once I was logged in no beta programs were available for signup. ...Show All
Visual C# Overhead of adding references
Hello, Does adding a reference to the project have any negative effect on the program exe (e.g. in terms of speed, size, ...) I have a console application in which I need to know the actual path of the executable on the hard disk. The only way I could find was to use System.Windows.Forms.Application.StartupPath. But this is the only thing that I'm using from System.Windows.Forms. Is there any other way to get the StartupPath without adding the System.Windows.Forms reference to my console application thank you, --mehrdad. This should work: Assembly .GetExecutingAssembly().CodeBase ...Show All
Windows Forms Change cell
How do you in code change the vaule of a cell for the datagridview object Hello. Try something like this: DataGridViewRow r = dataGridView1.Rows[1]; DataGridViewCell someCell = r.Cells[1]; someCell.Value = "testing123"; or here for more information. ...Show All
.NET Development Enumerating Domain/Realm for login Form
Hello, I am a .NET newbie. I want to write Login Form similar to Windows Login Dialog in one of my applications say MyApp. Here are my requirements. 1. The login form contains Login ID, password and Realm fields. 2. The realm is a combo box which should list the following items a. "MyApp SQL Server Database" b. A List of all available NT domains which can authenticate a user/password from the machine on which MyApp is running. c. Any Active Directory Servers which can validate a user name/password from the machine on which MyApp is running. Now given these requirements, here are my ques ...Show All
Windows Forms 4 panel in one windows form with splitter
I develop Windows Forms Application with VS.NET 2005 BETA 2.. I wanna fill one windows form with 4 panel and 3 splitter..Every splitter can change only neighbour panels' size.. I made it with docking ability of windows controls..But the problem is "I couldnt easily access their real time Height properties..For example when u set Dock property to DockStyle.Fill, Height Property is meaningless..Question is clear: Which approach is the best way to solve this problem ... 1) Dont use dock properties..Control splitter event and manually fill form with 4 panel .. 2) Use dock properties .. (Eat your brain ) ...Show All
.NET Development MapPoint in VS.NET 2005
Does anyone know that we can use MapPoint in VS.NET 2005 We are designing a project and we are using VS.NET 2005 to develop it. However, we have some trouble while using mappoint web service. We know that it is used in .NET Framework 1.1 and VS.NET 2003 and in september, its last version, 4.0 released. However, there is no information about using it in 2005 and framework 2.0. If anyone knows that how to find ant info or documentary about using it in framework 2.0, please, tell us. It is urgent and important. We need to complete our program till January. Thanks for all. The problem we were faced with is that ...Show All
Visual Studio Installing Visual C# .NET 2003
I'm attempting to install Visual C# .NET 2003 on my laptop. When the setup comes up, there's a four step process. The first step is getting system prerequisites installed. I got that part done successfully, and the next step is to install Visual Studio .NET 2003. I select that option on the start-up menu, and I get a message tell me to "Please go to the Control Panel to install and configure system components." Can anyone help me explain what to do to get this thing to install Thanks. I have deleted the registry entry: HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/App Paths/setup.exe&n ...Show All
Windows Forms Text box text format checking
I have some text box which allow the user to key in integer and decimal. How do i do a checking on the text enter in the text box that it is integer ot decimal E.g. Throw a error msg to the user when the user enter letters in the text box where the user is suppose to enter integer or decimal. As soon as ...Show All
Visual Basic automation to download executables
I'm developing an application to download exe files from an http site. Everything works great up until I try to launch the downloaded executable. I either get nothing, or I get a cmd window open and then nothing. Here's the code I'm using: Public Sub Download(ByVal parstrFileURL As String, ByVal parstrURLUser As String, ByVal parstrURLPassword As String, ByVal parstrFilePath As String, ByVal parstrFileName As String) Try Dim strFlName As String strFlName = parstrFilePath & parstrFileName Dim objURI As New System.UriBuilder(parstrFileURL & parstrFileName) Dim WebReq As new WebRequest = WebRe ...Show All
.NET Development Publish app and other files
Ok, I have gone through and made a sample application and now I want to publish it. The app has several ASCII text files that it uses and I need to get these files published with it. The clickonce publish seems to get the app installed ok, but I also need to get the text files published out as well. How can I do this You need to add the files to the solution and in each file's properties pane select Content and Always Copy. Note: You also might need to check your Application Files under Publish to make sure that they are included in the list of files to be published. ...Show All
Visual Studio Express Editions Whats going wrong here?
Hi Folks, Could someone please take a look at : http://pastebin.com/657314 I am not sure what I am doing wrong. All the errors and code are their. Thanks -Al On this line vtElevationGrid::LoadFromASC("C:\\Documents and Settings\\Al\\My Documents\\FLIR Targetting\\gx20tm.asc" , ); At the end there is a comma , before ) Either you should not have the comma there or you should have something behind it if a second parameter is required. ...Show All
.NET Development Data drops when reserializing XSD.exe-generated classes using 2.0 framework.
I gen my XSD /classes with no reported errors, then deserialize my sample data using XmlSerializer. The data structure looks exactly as expected in the debugger. Then I reserialize with XmlSerializer and, again, no reported errors. The output is valid by the schema. I can reserialize it if I like using the XmlSerializer objects, for example. The output just happens to be missing a bunch of elements (it's a lax schema, minoccurs of everything is zero, so this is valid). On inspection it seems to be serializing just the string-valued elements--not the longs, dates or enums. I've tried various types of output to no avail. I've been goo ...Show All
