Fredvanherz's Q&A profile
.NET Development Picking a certain combination using dropdown boxes
Hi. I am very new to XML and .NET Framework programming, so pardon me if my post is not in the right spot. I am programming in C# - a pocket PC application using an XML file as my database. Let's say I have the following attributes in my XML file: ID, Name, Age, Gender I would like to be able to say, "I want anyone who is 14 years old who is female" listed. Can I do this ...Show All
SQL Server why doesnt this work?
i am new at T-SQL and am trying to delete entries in a column that are not integers. i have the following code. why does it not work. T-SQL select invoicenumber from [control register] where convert(int, invoicenumber) like '%' if @@error > 0 begin delete from [control register] where invoicenumber = invoicenumber end go gives me the error in Query analyser: Server: Msg 245, Level 16, State 1, Line 1 Syntax error converting the nv ...Show All
Visual FoxPro Link data base file
Been trying to link, in access, a dfb, without corrupting the file to be used in other fox pro type software. Any idea's What do you mean by "link" If you want to read DBF data you can connect through an oleDB Provider. http://www.microsoft.com/downloads/details.aspx FamilyID=e1a87d8f-2d58-491f-a0fa-95a3289c5fd4&DisplayLang=en You can also use the old VFP ODBC Driver but that one is older ...Show All
.NET Development TCP Sockets checking aliveness
Hi, I have an app where it is critical that any connection interruption between the server and the client is immediately noticed. Right now I'm using a "ping packet" that I send to the server and the server sends it back. If it's not returned within time x and the server hasn't received a new one within time x the client assumes it's disconnected or the server disconnects the client. However, since I'm sometimes sending large objects o ...Show All
Visual Studio Express Editions How do I make a directory browser?
Basically, what I want to know how to do is click a button that makes a folder browser window come up, and add the chosen directory to a string variable. I hope it isn't too complicated. Thanks. thx Christian qwv , type this line at the top of your class b4 any line of code "imports System.windows.forms" and remove the part that intellisense added you will find it still working best regards ...Show All
Visual C++ App hogs CPU when mouse pointer moved over it
My MFC app hogs CPU when the mouse pointer is moved around over it. I'm using task manager to monitor the CPU usage. No othe app seems to do this. If my app has a modal dialog box up then it doesn't happen. The app is built with Visual Studio 2005. My main window is only handling WM_CLOSE, WM_ERASEBKGND, WM_SIZE and WM_SYSCOMMAND (none of which get fired when you just move the mouse pointer around over it). If you get furious with the mouse p ...Show All
Visual C++ Multithreading
Is it possible for a master thread to force abortion of pending IO in a slave thread, as with signals on Posix. Win32 only, no .net bullshit please. Thanks, - NK A similar way has been suggested by Ronald in this thread. Unfortunately I cannot guarantee (or rather enforce) that the client code is using asynch IO. Hence this is not the solution to the problem. With posix I can use signals to abort *any* system ...Show All
.NET Development Custom columns in databound DataGridView
Custom columns in databound DataGridView In a .NET 2.0 VS2005 project i'm trying to use custom columns in a DataGridView ... the goal is to have one or more non-persistent columns whos values are based on persistent values from a Dataset . Normally i would implement my own class and add a property with get&set, but in this case the DataGridview is connected to a BindingSource which in terms is connected to a retrieved via a ...Show All
Visual C# Retrieving windows user accounts
I'm trying to retrieve a list of all windows users, but all I can manage is the current user. I want to be able to connect software accounts to the windows accounts for automated login. How can I get a list of all windows users What do you mean by "all Windows users" All Windows Users currently logged onto a workstation All local Windows user accounts All Windows users in a domain I woul ...Show All
Visual Studio Express Editions 64-Bit OpenGL Application development.
I'm currently working on compiling some sample code that uses OpenGL. my setup: AMD Athlon 64 Processor gl.h glu.h glut.h Microsoft Platform SDK Visual C++ 2005 Express Edition Whenever I try to build, I end up with this error: .\Debug\i.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64' I get the basic idea of the conflict of architectures, but I was wondering if there was a work around Since the Athlo ...Show All
Visual Studio Express Editions How to find which RadioButton has been selected in a GroupBox?
I have a lot of RadioButtons in a Groupox, except checking the Checked property of each RadioButton in the group, is there any other way to know which is selected Thank you for your help! Hi, Try and search for a property like ... radionbuttonlist.SelectedItem.Value. This should give you the value of the selected radio button in the list. Cheers, Nasha. from eeks to geeks ...... you can ca ...Show All
.NET Development ByRef ByVal by pointer always?
Some simple guidance please to clear up what really happens differently for ByVal and ByRef. I hear one school of thought that says byRef has poor performance when calls back to the server objects span network boundaries to get at the original parameters and hence using the localised passed in ByVal parameters have better performance in this regard but incurr the overhead of creating the copies and then marshalling these copied objects around, a ...Show All
Visual Studio Team System how to read command line arguments inside webtest generated code
Hi, I'm a newbie user of webtests. I'd like to find out how to read command line arguments inside my webtest generated code. I'm recording webtests to test various webpages of an application server and would like to parameterize the root URL to these webpages. This is so that I could use the same webtest generated code to test different installations of the application server. The webpages have identical links except for th ...Show All
SQL Server 'DataGridView1_CellContentClick' Doesn't Work For All Cells.
SQL 2005 Express (Visual Basic 2005 Professional): I have a DataGridView with 'ReadOnly' set to true in the Properties Window. I would like to have it perform an operation when any cell is clicked. In .vb [Design], I double-clicked each cell, and, it jumped to 'DataGridView1_CellContentClick' where I entered the instruction to perform. But, it only works for some of the cells in the middle of the DataGridView. The re ...Show All
Visual Basic Simple window restore from max/min behaves erratically when AppSettings are used
VB 2005 - Very simple windows application - one form, no controls. The only thing I set is Form1/ApplicationSettings/Location to "Form1Location" and Form1/ApplicationSetting/Size to "Form1Size". Now run the application in IDE (or as execuatble) and maximize the window using the control box. Then restore the window using the control box - the window does not resize to the original size before the maximize. Now run the application in I ...Show All
