Cornishboy's Q&A profile
Windows Forms Any shortcut to passing a form as an argument?
Any shortcut to passing a form as an argument I was hoping that vs 2005 would ease the problem of passing a form as an argument over vs 2003. Looks like not. It is very cumbersome to overload a procedure for each form, so much so that there's no reason to do it. sub XXX(frm as New Form1) Sub XXX(frm as New Form2) etc. It's easier to repeat the code within the form. Is there a workaround dennist ...Show All
SQL Server multiple columns in "in" search
Is it possible to put a set of columns into a select statement using "in" For example: select count(*) from table1 where (col1, col2, col3, col4) in (select a.col1, a.col2, a.col3, a.col4 from table1 a where........) This is possible in this form for Oracle and DB2 but I cannot get it to work in Sql Server. Any ideas No. SQL Server doesn't support row value constructors yet. You ca ...Show All
Visual Studio Team System Question about TFS folders
This might be somewhat of a weird question. The company that I'm writting my thesis for are using Documentum www.documentum.com to handle alle their document versioning, and are as such not really interested in letting alle the important development documents be handled by TFS. Now if, and I dont' know if this is even possible, I was able to write a documentum extension that would somehow let me interface to a specific folder in Documentum, wou ...Show All
.NET Development Identity from Access
Hi, I have been searching around for a solution to this problem with not much luck. From what I have read, I don't like the answer, but I thought I would check just in case. I have been given the impression it is impossible to retrieve the identity value from an Access database after an insert. I have been purely using the dataset designer and using the tableadpater methods I have created in the designer as I am still getting to grips with the w ...Show All
Windows Forms Getting an Error when Signing a Click-Once Application
I got an authenticode (2048 bit Microsoft Enhanced Crypto v1.0) key from instantssl.com and ran pvkimprt on it. Both my .spc and .pvk are directly under C:\ Since I installed pvkimprt to the Windows directly it exported the .pfx file to C:\Windows I then moved the .pfx file to C:\ and ran the cert manager to import the .pfx into my personal store. So far so good, or at least I thought. In Whidbey Beta 2 I loaded the .pfx from the store (Select f ...Show All
Smart Device Development MSN Messenger Server adress
I am unable to connect to MSN Messenger server using Sockets in .NET Compact Framework. The client sends the data but the server fails to respond. I am connecting to "messenger.hotmail.com", Port 1863. Please let me know the correct server address. this is not a messenger support forum. Once you find the correct server address and are still having problems with your .NETCF socket code, please re-post. ...Show All
Visual Studio Express Editions Where are the registration benefits
Have just installed and registerd VB Express. I received an email with a link to the registrations benefits page ( http://go.microsoft.com/fwlink/ LinkId=52054 ). This link leads however to Microsoft Connect, not the registration benefits page. The link given in the Express Registration FAQ is the same incorrect link. Judging from this forum, this seems to be quite common. has anyone got a working link to the page Chee ...Show All
Visual C# Socket streaming difficulties
Hello The scenario is as following: There are two computers talking to each other through socket over a 1Gbps network[low network traffic], the requirement is that the server sends a data packet of barely 500bytes[average--- the packet size is variable-- excluding tcp header and acks.], every 10ms. The data is received reliably [i have checked it]. The data which is recieved is then displayed on the dialogue in form of vector graphics ...Show All
Visual C# How to determine if a generic parameter is null or default?
The following code snippet gives me the compiler error: "Operator '==' cannot be applied to operands of type 'T' and 'T'" void Test<T>(T item) { if (item == default (T)) // error here ... } What is the reason behind this compiler error I just want to see if the item is null for reference types, or default for value types. How can I do this Yeah... both do boxing. I guess if you intend to use v ...Show All
Visual Studio ReportViewer in Firefox version 1.5.0.1
I have problem rendering the ReportViewer in Firefox version 1.5.0.1. The width of the ReportViewer is much smaller than expected and the data is just messed up. But the ReportViewer works fine in the early version such as 1.0.7. Any clue on that Thanks. Brian, Is there a hotfix available to resolve the "narrow width" issue when the ReportViewer renders columns in Firefox We're seeing the same err ...Show All
.NET Development Best practice while writing C# functions
Hi, Anyone has any idea about how to free up memory in C# functions. Does the GC collects memory after a function has executed How about setting variables to null after we are finished with them, or the GC will automatically set them to null Does setting variables to null in finally causes an overhead void TestFunc() { XmlDocument xdDoc = new XmlDocument(); try { // use xdDoc } catch { // handle cat ...Show All
Software Development for Windows Vista Important, working with workflow runtime & services in a web based application
I have a web based application , but i want to add the workflow runtime & its related services in a related class so that i call methods of it whenever necessary. the main point is that i want to omit all the data related to workflow from the web.config & add it in the Workflow class. I have a problem in adding these two sections of the web.config & they are: <configSections> <section name="WorkflowRuntime ...Show All
Visual Studio Tools for Office Use Visual Studio 2005 or use VBA in Access or Excel?
I am looking for some direction as to how to begin a new project. I am wondering if it would be better to try and use Access or Excel along with VBA to do this project of if I should use VS.NET 2005. What I would like to do is make a proggy similar to QuickBooks. When I downloaded QuickBooks and ran it on trial, I noticed it looked like someone took Access and created a custom form for it. I want the program to be able to keep track of ...Show All
Windows Forms can i use listboxes or other controls inside a datagrid?
Hello all, I'm developing a windows entry main form and I’m trying to develop a datagrid as sub form where users should be able to enter data in the datagrid by selecting from listboxes. But, I'm wondering if I can use listboxes in a  ...Show All
Windows Forms draft fonts in Crystal Report 9 VS .NET?
how can i have a draft font in crystal reports for .net everytime i print with draft fonts it always shows up as arial pls help me! Hi, Hmmm. quite interesting. I've encountered the same problem before, but the error there was that the default windows printer wasn't set to the printer being ...Show All
