dbhartiya's Q&A profile
Visual Studio 2008 (Pre-release) Console host with TCP binding: SecurityNegotiationException
Hi All, I am using the February CTP, have a service with a netTcpbinding which I am hosting in a console app. Very basic config file, just the Address-Binding-Contract listed, nothing fancy going on with identity and security. Also the proxy is straightforward and copied from the Contract, no security stuff in there. All works fine, but when someone tries to contact the service from another machine I am getting the SecurityNegotiatio ...Show All
Windows Forms Compacting Access Database
Hi, I have an application that uses an access database on the client side, I am trying to compact the database but always get errors. My Code is : Try objJRO = New JRO.JetEngine   ...Show All
Windows Forms Persisting design time property changes
Greets, I am trying to write a System.ComponentModel.Component that screens potential child controls at run time for various factors. Particularly, I'd like to force the name of the given child control to a value that I determine at the time ...Show All
SQL Server Web Site Admin Tool problem in VS2005
All, When I create a new project and try to use the WSAT security tab, I get the following : There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store. The following message may help in diagnosing the proble ...Show All
Visual Basic How do I use generics?
Public Function RectangularVolumn ( Of T As Structure )( ByVal width As T , ByVal length As T , ByVal height As T ) As T Return width * length * height End Function What do i need to do to make this work for any numeric type Considering that it is a mathematical sum, I would go with cgraus on this one. Double is your most open-ended alternative. ...Show All
Smart Device Development VS 2005 Pro, Mobile Project, VS can't make device connection.
Debugging to Emulator works. Every time I try to debug to USB Windows Mobile 2003 SE PDA, I receive the error "The configuration data for this product is corrupt. Contact your support personnel." It does the same thing when using the menu item Tools | Connect to Device. I have tried both Active Sync 4.0 and 4.1. Both do the same thing. ActiveSync 4.0 and 4.1 both work with the PDA, it's just that VS 2005 can't make a connection to the devi ...Show All
Visual Studio Express Editions Using color dialog on form
Was VB6, now starting with Express. How do I place a color dialog on a form, or where do I look for the 'how-to' information When I try to add a dialog it is displayed 'under' the form being designed, but next step (or prior step) is not obvious. Help does not seem to answer this type of question. Colordialog works, although have now noticed the test for OK is not correct. Problem not immediately affecting example as effective ...Show All
Visual Studio 2008 (Pre-release) Determining Text Size
Is there a way to determine the size of a text string in WPF I'd like to take a given string, and have WPF calculate the size needed to render that string using a given font, style, etc. Thanks. Bruce Bukovics Author of .NET 2.0 Interoperability Recipes http://www.apress.com/book/bookDisplay.html bID=10116 My solution: public static float MeasureString( string text, Font fontInfo) { B ...Show All
Windows Forms Calendar Control 11.0 and adding control to a date?
Hi, i try to use Calendar Control 11.0 in COM components. What i try to do is to add a linklabel in a date(for example, at 11.10.2004, i want to write 'final exam') . any idea Thank you for your help;) ...Show All
Visual Studio Tools for Office Save each page of a word merge as pdf file
I have a mail merge that I need to save each page as a pdf file, i need to save it based on a merge field something like Dear << this >>. I have to do ASAP please any and all help appreciated. M~ This is a common request- many people use the PDF Distiller and print to it. I recommend you look at 3rd party resources to this effect. A quick Web query returned plenty of results: http://search.msn.com/results.aspx ...Show All
Windows Forms Getting parameter info from a Delegate type
I'd like to declare define some delegate types and then use those for making up corresponding MethodBuilders but I don't see any good way to get the necessary information from the type. Please note that I'm talking about the delegate's *type* ...Show All
Windows Forms Allow Click Once Deployment only for registered Users
I want to deploy a application by Click Once Deployment. But only users I give a password should be able to install the software. So I thought about protecting the URL with IIS access rights. But how will then work updating the software. I guess the user will have to type in his password every time the application checks for new updates Has anybody already experiences with such a scenario and can explain his experiences ...Show All
Windows Forms Again Winform Datagrid: Individual row height and Vertical Scrollbar
Hi, We are using Windows.Forms.DataGrid control in our application. Let me explain what i have done so far so it will easy to understand the problem: We have used DataGridIconColumnStyle for one icon column and second is DataGridTextBoxColumn for some other purpose In second column i am showing Comboboxes when user clicks on it directly. Now when user clicks on first column's icon, we are showing a big panel in second column in the same row wher ...Show All
.NET Development Installable ISAM error
i am trying to import excel data into my program and i recieve an error saying "could not find installable ISAM". cananyone help thx Aswell as the above mentioned error certain data wont load into the datagrids. I think its because the data might be too complex for the grid if so how can i solve this or is there another problem thx ...Show All
Windows Forms How to handle DateTime Variable and NULL Value
I have the following code. The MemberJoinDate Column on the SQL Server Database allows NULL. How do I set the MemberJoinDate DateTime Variable in my Form to NULL if the user does not enter a value in the txtBoxAMMemberJoinDate At the moment I get an error of "Cannot Convert dbnull to datetime" string strMemberJoinDate = this .txtBoxAMMemberJoinDate.Text; DateTime MemberJoinDate = System.DBNull.Value; if (strMemberJoinDate != "") { Mem ...Show All
