Bill Reiss's Q&A profile
Windows Forms Gridview Sort Arrows
Anybody know how to set up a gridview so that each column header has an up and down arrow that when clicked would sort that column in that direction I have seen tons of examples of a single image to indicate which direction the current column is being sorted on, but why do that and possibly have to click a column header twice to sort in the desired direction when you can just have an up and down arrow image for each column that reacts to the click event by sorting in that direction It's nice that you have a data controls section, but this topic is not about windows based programming, it is about ASP.Net applications in C# ...Show All
Windows Forms Deep confusion.....Urgent,Plz help me
Hi, I have the following doubts in .net. Please help me. 1. Is the .net is platform independent Or dependent 2. A .exe (or .dll) made in Windows platforn, is it runs under Linux 3. Is it provides more security bye sreenivas. Thanks in advance. The .net Framework you download from the microsoft website will run on windows 98 or later. If you want your application to run on linux you will have to use the mono project a non windows version of the .net framework ...Show All
Windows Forms How Launch .Net win forms application from VB6.0 by passing runtime parameters over net work?
We have an existing vb application which is invoked from Network shared folder. Now we build a new .Net win forms application which takes runtime parameters as command arguments and get invoked from this vb application. When we try to invoke we are getting errors Can any help me out in deploying the new .net code Thanks in advance. You didn't say what error you're getting, but I think you're just seeing the common security issue of initiating .NET code from an untrusted location. http://www.vbdotnetforums.com/showthread.php t=1224 ...Show All
Visual Basic CheckBox Service control (VB, VS 05)
I decided to try and expand my project, I now wish to have the (current, I'm adding more as I find out which aren't required ) two processes here's a brief on what stage the additions are at. I have added 4 check boxes named; SpoolCheck1 SpoolCheck2 MDMCheck1 MDMCheck2 (more will be added as I find out more that can be stopped) and two command buttons named; StopCheckedButton StartCheckedButton I would like to 'link' the check boxes to the command buttons, but the checkboxes job (when checked, then clicking the start/stop command buttons) is to start/stop the selected program/process, in this case spool and mdm. I have these codes for starting and stopping the processes and return a message if there is a problem. ...Show All
Visual Basic Editing tips question regarding (shortcuts keys and fast code editing)
1- When my cursor is in the middle of a word do you know how I can select that word with shotcut keys. And how can I select a whole line when I am in the middle of that line and I don’t want to use : Home, Shift, End but I want to use some faster keyboard keys 2- Also when I am in the middle of a line and I want to copy the whole line just in the line bellow (without going through the trouble of doing: Home, Shift End with my keyboard….) 3- When we do Cntrl Alt F2 in the VS2003 documentation, we go to the help Index. But sometimes I don t get the focus in the little “Look For ” text box window in order to write my criteria directly. Then I have to go there with the mouse. Do you know what shortcuts I can use to get to that “ Look ...Show All
SharePoint Products and Technologies Javascript error in Internet Explorer
Hi, I've been searching for this topic, but can't find any articles on it. Some user in my company using Windows 2000 SP4 with Internet Explorer 6 SP1. Previously when we were using WSS 2, we dont have any problem. But when we upgrade to WSS 3, problem start to raise. Some user cannot click submit button in any webpage in SharePoint. There also a javascript error in Graphical View for Survey. The common error message is "...in line xxx is undefined... I have no idea what that is since we have update IE, j2re, jsdk, and windows scripting. Some computers running Windows 2000 SP4 with Internet Explorer 6 SP1 works, but some doesn't. Any advise Fix the problem. For those of you who have these problem, I would like to share ...Show All
Windows Forms ClickOnce Deployment / MSI Installer
I'm working on a freeware addon for MS FSX with VB 2005 Express. First question: Is it possible to write MSI installers with VB 2005 Express I'm missing the Setup Project templates (I have a prof. version of VB .NET 2003 but not upgraded to VB 2005 since i don't need it for my work yet). So thought i'd try to use ClickOnce. It publishes fine to my website but when i download and run the published setup.exe all it does is showing the Appname.application XML file in my default browser (tried MS IE 6.0 and FireFox). Shouldn't setup.exe actually download that stuff and install on my local machine or did i understand something wrong Edit I'm using the automatically generated web page for installation, which can be found here: http://www.docmo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do I protect my code when distributing it?
Having read the FAQ. I noticed that in order to share your game creations (and lets face it, you can't get recognised without sharing your games), you need to send the other person the entire uncompiled game. This includes sourcecode, graphics, music, sound etc. etc. They then compile the code and download it to their xbox360 account and then only if they too are on the games creation program. My key worry here is that you send them everything you have just worked incredibly hard to create. Presumably they can then send this stuff on to whoever they please and god forbid, even sell it on! It strikes me that there isn't much incentive to distribute things this way. How is Microsoft going to prevent the above scenario Is there going to be a ...Show All
SQL Server Declare cursor based on dynamic query
Hi, I am declaring the cursor based on a query which is generated dynamically. but it is not working Declare @tempSQL varchar(1000) --- This query will be generated based on my other conditon and will be stored in a variable set @tempsql = 'select * from orders' declare cursor test for @tempsql open test This code is not working. please suggest Nitin Hi, I dont know for the moment how to declare a cursor on a query from a string.. I dont think its possible this way. An alternative is to find a solution other than using the cursor, else you'd lose development time in trying to find a solution. If you cannot find a solution, try to explain the problem, someon ...Show All
Smart Device Development How to get SQLCEResultset record count?
Can anybody help me here to check the record count in SQLCEResultset Ilya Tumanov wrote: Try this one: int records = rs.RecordsAffected; If it does not work (I'm not sure it's implemented), try this one: int records = (( ICollection )rs.ResultSetView).Count; I'd think selecting a count within the DBMS would be more efficient than casting the resultset to a collection ... but it wouldn't hurt to test both methods. also, isn't records affected for delete or update type statements or does it apply to select as well ...Show All
Windows Forms datagrid troubles with stored procedure (vs 2003)
I have the following code: Dim daGrid1 As New SqlDataAdapter(Me.SqlCommand1) (a stored proc) Dim dsGrid1 As New DataSet dsGrid1.Clear() daGrid1.Fill(dsGrid1, "top") DataGrid1.DataSource = dsGrid1.Tables("top").DefaultView I set the command to a stored proce and fill a dataset, then set the datagrid1 to the dataset table. I can then see the data grid on the form filled out. I need to change the column headings, hide some columns, then click on a row, and get the hidden field and pass it on to another form. I thought I would need a table style for that. But when I try to add one, I get: "The data grid table styles collection already contains a table style with the same mapping name." ...Show All
Windows Forms datagridview cell selecting
hi, i have a datagrigview with columnheader and rowheader . the default behaviour for the topleftcell click is to select all cells. is there a way to bypass this functionality ( none cells selected ) or to disable that cell thanks thank you, Zhi-Xin Ye i verified that ... succes i worked with OnMouseDown but i did not 'see' the HitTest solution ... thanks again and to all others ...Show All
Visual C++ Runtime Library Error
I'm getting a runtime error/abnormal program termination in Internet Explorer everytime I try to use a chat room. Any suggestions As a mere user of the chat room, you should probably ask for support from the people who run it. The Msdn forums and news groups are meant for developers, not end users. Either way, to deal with your problem you could try to disable all other browser plugins and upgrade your Java runtime (which can be found at www.java.com ). If the problem persists, contact the chatroom operators. ...Show All
SQL Server Dynamic Row group in matrix
Hi All ! I want to show row groups as hierarchy levels and need the sub total values belongs to each group and sub group levels. But the most important point is that my top next top group (from child to parent ) is not static its dynamic.i.e for a diffrent senario my under displayed example can have Universe--->Earth as parent for Australia and USA. eg: 1.Australia |-------sydney |-------Melbourne 2.USA |------North US |------North US(1) |------North US(2) |------South US |------South US(1) |------South US(2) Can I get some help from anybody for making a dynamic row groups in the matrix. Waiting for a kind help. R ...Show All
Commerce Server Creating new CS2007 ASP.NET site fails
The environment is as follows: Two Windows Server 2003 systems, CS2007 and SQL2005 - both in the same domain depending on which adapter is enabled - but the box hosting Commerce Server is in the DMZ. I have CS and SQL2005 configured just fine. I create a new project from VS2005 and it churns, churns, and churns, and eventually the wizard terminates and says something along the lines of "the unpacking process returned an error, see pup.log" so I check Pup.log and the only error there is this: Error importing object data for Transaction Config from file C:\Documents and Settings\Administrator\Local Settings\Temp\1\Transaction Config 80131501:The transaction has already been implicitly or explicitly committed or aborted. WTH does that mean ...Show All
