Michael Ressler's Q&A profile
Visual Studio Express Editions How to make a search box in an application
Hi. I have a database that has a table named "Main", this table has 4 elements "ID, Blue Number, Year, Description" . What i need is how can i make a form that has only a search box to search using any given blue number, and once the blue number is entered into the text box the program will search the database for all other elemnts to that blue number. Anyone can help plz Hi DMan1, thanks for replying. Well, i still got some error. After modifing the code as below : Dim MyCommand As New OleDb.OleDbCommand Dim MyParam As New OleDb.OleDbParameter Dim MyConnection As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\mems.m ...Show All
SQL Server How to make a dropdownlist empty
I have a listbox that lists countries....and if you choose a country, another listbox show cities in that country (fetched from a sql database)....And if you then chose a city in the second listbox, a dropdownlist will show restaurants in the city....(also fetched from a sql-database)... Ok...I hope you understand...now to the problem....: If you first chose a country, a city and a restaurant but then want to chose another country in the first listbox, the dropdownlist for the restaurants is still there filled with restaurants for the first country...I dont know how to "remove" the restaurants so that the dropdownlist is blank if someone switch country.... I think I need to do something in countryListbox_Select ...Show All
SQL Server PInvokeStackImbalance when exporting report to PDF with chinese chars
Is there a way around this This is a blocking issue for me. The generated pdf contains ' ' instead of the chinese chars. I use Reporting Services in local mode. Thanks for your help. Charles Here's the call stack: PInvokeStackImbalance was detected Message: A call to PInvoke function 'Microsoft.ReportViewer.Common!Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionPDF+WindowsGDIWrapper::GetGlyphIndicesW' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. [Managed to Native Transition] > Microsoft.ReportViewer.Common.dll!Microsoft.Repor ...Show All
Windows Forms My issues with ClickOnce
Hi All, I'm having the following issues when creating a ClickOnce install. Is this something very common Can someone please let me know if these are known issues Once you publish your application using ClickOnce , it seems that there isn’t any way of updating the configuration settings (e.g. URL to the web service). These are the setttings in file: applicationName.exe.config.deploy Once you publish your application to a particular server, it seems that there isn’t any way of updating the server name on which the application is published. So, if from VS2005 I publish it to ServerOne but in the QA dept, they would like the application to be published on ServerTwo . So that when the client machines want to install my appli ...Show All
Visual Studio 2008 (Pre-release) Client state after FaultException
Hi, I have the following situation: After the client gets a FaultException using a HTTP binding the clients state remains Opened. After the client gets a FaultException using a TCP binding the clients state changes to Faulted, and it is rendered useless! Why is the behavior different depending on the protocol of the binding Can I avoid this problem when I'm using TCP or do I have to recreate the client Sincerely Herbjorn joe zhou - MSFT wrote: you can cast the proxy to IClientChannel which inherit from ICommunicationObject and has a state property you can use to check its state. Ah, thanks a lot! Sam ...Show All
Visual C# Creating a Generic class with constraints and also Inherits from a base
Is it it possible to have a generic class inherit from a base I can't find an example of the syntax, so I don't know if it's possible or not. I want to do something that looks like this: public class MyClass<TInterface, TView> where TView : TInterface : BaseClass {} So the class declaration should create a generic class with two generics where TView is of type TInterface, but then the generic class MyClass should inherit from BaseClass. Thanks for any help. Trevor_B This test is compiled: class Class1 { }; class Class2<T> : Class1 where T : class { }; ...Show All
SQL Server How to hide parameters information from URL
I am using sql 2K reporting services: Please does any one has an idea how to hide the parameters information from URL completely. I am calling the reports via aspx page, using a URL and in the url placing all the parameters., is it possible to hide just the parameters information. i don't want to allow users to change the parameters directly from IE. or is it possible to encrypt them. Please help, i have been struggling for this and don't get no clues at all how to go forward with this. Thank you vfery much. I have a similar problem but in Url of Response.Redirect() function of VB.net, ex: Response.Redirect("./ViewOvertimeSheet.aspx EmpID=" & e.Item.Cells(12) ...Show All
Visual Studio How to pass Report parameter in ReportViewer Control
Hello Friends, I am using VS2005. how to pass the Report parameter in the reportviewer control I am using ther Remote mode for the report. till now i know that i can set the parameter is using the bellow method. This SetParamters method only accept the parameter like Microsoft.Reporting.WinForms.ReportParameter type. this .reportViewer1.ServerReport.SetParameters(). But can't findout how to pass that parameter in the method. please help me. Nilay I can't seem to get that to work in VB. Still gives the error 'Paramater cannot be Null'. Any ideas on making that work in VB ...Show All
.NET Development Interop layer throws System Exception (cast) when accessing unmanaged COM code
I would appreciate help/comments on the following... I am trying to access a COM component written in Fujitsu NetCOBOL from C#. I have spent many hours (days...) reading the docs, trying various combinations, and looking at the samples but my attempts are failing miserably. The COM .dll is called "AVSCOMSVR" and the embedded TypeLib has been picked up and converted to an Interop Assembly by VS 2005. Here's a picture of the generated interfaces and Classes: http://homepages.ihug.co.nz/~dashwood/dashwood/AVSProject2.jpg I find this a little puzzling... VS2005 seems to have duplicated the interfaces, some above the Class entry and some subordinate to it, but that may be OK and just reflect my limited understandin ...Show All
Visual Basic ActiveX component can't create object
I have an ActiveX dll written in VB6. When using the dll in a VB.Net Windows application, it works fine. When using it in an Web application I get the above error; e.g.: Dim myObject As Ns.Object = New Ns.Object() Dim result as String = myObject.Test() '--ActiveX component can't create object I have tried (based on Google and other searches): Giving anyone and everyone Full Control in the directory with the ActiveX dll Updating the IIS configuration to all operations in the virtual directory Creating a .Net dll to wrap the ActiveX dll and installing the dll and interops into the GAC. I have seen this question posted elsewhere but I haven't seen a solution posted. Any thots pjp ...Show All
Windows Forms Adding a control to another application
I am trying to integrate a custom control that I created into another application. The application that I am trying to integrate into has 3 frames in the main wondow. I am able to get a handle to the frame using the "FindWindowEx" method. Is it possible to add a custom control to the frame of the external application I checked with the spy++ utility and the handle is made properly to the correct frame in the window. I would appreciate any example even if it is adding a textbox to a window of any external application. Thanks in advance!!! afaik, you cannot add controls to foreign windows - that would be like, say, placing a texbox in the center of regedit ... If this second applicatio ...Show All
Visual Studio how to install Visual Studio 2005
I was able to install the .net framework 2.0 for my 32bit system, but am now having trouble, or don't know how to, install Visual Studio 2005 well, where did you get the Visual Studio from if its on a CD, usually you just put in the CD and away it should go. If you downloaded the express editions (stripped, lightweight version of a language specific version of Visual Studio 2005), the instructions are here on how to extract and install the ISO/IMG image: http://msdn.microsoft.com/vstudio/express/support/install/ ...Show All
SQL Server backup job quits without any errors
Hi I have a job which is executed via SQL agent -it attempts to backup each database.. The only problem is that it terminates about 1/2 through (not always at the same spot) - there are about 80 databases on the server No errors are logged.. Where do I look next The commands executed are as follows: -------------------------------------------------- DECLARE @DB_Name varchar(32) DECLARE @Backup_Path varchar(255) DECLARE @Backup_Name varchar(255) DECLARE DB_Cursor CURSOR FOR SELECT NAME FROM sysdatabases OPEN DB_Cursor FETCH NEXT FROM DB_Cursor INTO @DB_Name WHILE @@FETCH_STATUS = 0 BEGIN IF @DB_Name <> 'tempdb' AND @DB_Name <> 'model' BEGIN print '--------------------------------<< ' + ...Show All
Visual Studio Bug? Assigning shortcut key fails
When navigating code by words (Ctrl+Right or Ctrl+Left) I much prefer the Emacs version of word boundaries, which skips over punctuation. Using Tools > Options > Environment > Keyboard I can apply the entire Emacs keyboard mapping scheme and get this style of word navigation along with everything else. But I want to use the default Visual Studio keyboard mapping scheme and just change the binding of the Ctrl+Right key (in Text Editor scope) to be Edit.EmacsWordNext. When I do this however and hit Ctrl+Right, the cursor doesn't move at all. Same behavior in Visual Studio 2005 with or without SP1. Any suggestions Thanks, -Rick Hello Rick, Sorry to inform you, but if your k ...Show All
Smart Device Development What is the minimum and maximum size of an application to be deployed on Windows Mobile 5.0 devices?
Dear Friends, I am new to Windows Mobile 5.0 development. I have got some queries, may be your answers with technical details are helpful 1) What is the minimum and maximum size of an application to be deployed on Windows Mobile 5.0 devices 2) What technology is best to develop these applications 3) Can I develop a windows mobile 5.0 application using MFC 4) How to deploy simple C++ applications on Windows Mobile 5.0 5) Can programs written using QT libraries be ported to Windows Mobile 5.0 Best Regards, Manoj Phone: 91-93145-16157 1. From few hundred bytes to maximum storage space available. 2. Depends on your skill set and project requirements. 3. Yes. 4. Hit F5 in VS 2005. 5. I don't kno ...Show All
