Romstyle's Q&A profile
Windows Forms DataGridView and ContextMenuStrip
Hello all, 2 questions about using ContextMenuStrip in conjunction with DataGridView: 1. How can I get a ContextMenuStrip to open only if the user right-clicks on a cell, and not a cell header/row header/background/etc My current solution is to associated the CMS with the columns, and not the DataGridView, i.e.: datagridview1.ContextMenuStrip=Nothing For Each c As DataGridViewColumn In datagridview1.Columns c.ContextMenuStrip = dgvContext ...Show All
Visual Studio Express Editions How to Format date from 01/01/06 to 01, Jan 2006 in VB 2005
I am having a problem. I just installed the new version of VB 2005, and I don't know how to format the date. For example in VB 6.0 I do as fallow: CODE: Me.panelDate.Caption = Format(panelDate, "dddd"", ""dd MMMM"", ""yyyy") DISPLAY: Sunday, 01 January 2006 If I do similar using the VB 2005 CODE: Me .LabelDate.Text = Format(LabelDate.Text, "dddd"", ""dd MMMM"", ""yyyy" ) DISPLAY ...Show All
.NET Development Difference between Sockets and TCPlisterner-TCPClient
Hi, I'm new to sockets and I can't understand the difeerence on creating sockets using : New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp) or using the TCPListener and TCPClient classes. Any help will be appreciated.. Thanks. Ubercoder The Socket class is not protocol specific and provides an abstraction for network communication. This way you can write code using a ...Show All
.NET Development TableAdapters.....
Is there a way to expose the SqlDataAdapter within a TableAdapter as a Public property even after re-generating the TableAdapter I can't use TableAdapters, because they don't expose the SqlDataAdapter as a Public property since I need to pass down the DataAdapter to a separate DB I/O method. Not a generated DB I/O method within the TableAdapter. I'm forced to use the Component Designer and create a SqlDataAdapter like I have been doing in VS.Ne ...Show All
Visual C# Having troubles with Randomness
I am new to these boards so not sure if I should post code snippets or how you guys handle things. Basically the issue can easily be seen here: http://www.thecodeproject.com/csharp/CsharpMersenneTwister.asp If you don't have an account there you can just download the binary called the demo. When you run this simple dice program you can see that it always has the same results. Do so by running it, memorizing the number of rolls for each ...Show All
.NET Development Webservice: "The ASP.NET process identity does not have read permissions to the global assembly cache."
I'm uncertain what the best forum is for this - I also posted this in the ASP forum. I am developing a distributed application with a client-side java calling a webservice serving a static binary database. The application works well with the VS2005 Development server on XP Pro SP2. However when I publish it to an IIS v5 environment, it fails with these errors. 3.) .aspnet_wp.exe (PID: 3988) stopped unexpec ...Show All
Visual Studio Express Editions Visual C++ 2005 Beta 2 breaks when trying to view project options
In Visual C++ 2005 Express Beta 2 when I goto project options, I get a message box that says: "Failed to create Frameworks PropertyGrid component. Please verify that the Common Language Runtime and .NET frameworks are properly installed." I am running Windows XP Pro with SP2. I've already tried installing VC++E 2005 B2 twice. I ran the cleanup tool with Beta 2 already installed and it seems to work fine now. ...Show All
Visual Studio Tools for Office Outlook Schedules, Meetings and Tasks
Hello, I am at a cross-road with regard to designing a new scheduling app for a customer. I can go with the way I have done it in the past and develop the UI, Business and Data layers in a typical client app or I can look at using VSTO. My dilemma is that I will not be using MS Exchange as the source/storage for Scheduling, Meetings and Tasks (I will use SQL). So can I use MS Outlook 2003 with VSTO but use SQL as the data source and have the ...Show All
SQL Server Scripting question
I have two Transact SQL scripts and I want to call the second script from the first – is this possible in SQL server I am trying to do a port from Oracle (where this is possible) but cannot find the mechanism to do so in SQL Server. Eg if Script1.sql is BEGIN PRINT (‘Inside Script1’) //Invoke Script2.sql – how do I do this END where Script2.sql is BEGIN PRINT (‘Inside Scr ...Show All
Visual Studio Express Editions partitial template specialization for template-class methodes
Hi there, I have a problem with partitial template specialization for template-class methodes. I would like to have two specialized methods for a template class with more than one template parameter. I tried it like this: template < typename T_Type , typename T_Precision > class ClassName { void method (); }; template < typename T_Type > void ClassName < T_Type , double & ...Show All
Visual Studio Remove Template security warning dialog
We have created templates for classes used in our product integrated in Visual Studio 2005. Currently we place them in the My Documents location. When the user selects "Add New Item..." and the template, a scary dialog appears, Microsoft Visual Studio - Security Warning The following template is attempting to open one or more documents in a manner that could pose a security risk. ..... This is horrible! The template has no custom wizard ...Show All
Visual Studio 2008 (Pre-release) What's the keyboard shortcut for zooming a flow document?
Not a dev question I know, but would be handy to know. Ctrl + scroll works as it does in IE, but like IE I can't find a keyboard only command, ctrl +page up/down would make sense. ...Show All
Visual Studio 2008 (Pre-release) DependencyProerty at run-time
Hi, Is it possible to add DependencyProperty dinamicaly at run-time thanks in advance, miljac Maybe you are talking about something like this: public static readonly DependencyProperty MyStringProperty = DependencyProperty.Register("MyString", typeof( MyString ), typeof(string), new UIPropertyMetadata(new MyString ())); [BindableAttribute(BindableSupport.Yes, Bindin ...Show All
Visual Studio Team System Error when creating new Team Project
I've worked through several resources onlnine to fix other errors in the project creation process and have just about got the New Team Project option working from Visula Studio, however I'm running into an error I can't find a solution for. In creating a project named Foo2, the creation process gets through the Currituck Module, handles some CSS and WorkItemType definitions and then throws an exception saying: ---begin Exception entry--- Time: ...Show All
Smart Device Development WIFI signal strength detection
Good day, Is there any way in which I can see what the signal strength is by using my vb smart device application I have found examples for normal VB.NET application but nothing for smart devices. My problem is that when I try and synchronise my SQL Server CE database on my mobile device and my SQL Server 2000 on the server over WIFI and there is no convereage it takes for ever, about 25 seconds, before realising it can do nothing and in stead ...Show All
