.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Apply Application.EnableVisualStyles to only One WinForm of the Vb .net 2005 application

Posted By:      Posted Date: October 19, 2010    Points: 0   Category :Windows Application



We have Windows Application developed in Vb .Net 2005 with customized UI.

Now we have requirement in one of the Winform where we need to use Application.EnableVisualStyles() for displaying an grouped ListView Control.

Is it possible to apply Application.EnableVisualStyles() to only one Winform?

Please guide me



Sudhir C N

View Complete Post

More Related Resource Links

Remotely access winform application through admin panel

I am going to develop following application but not sure how to do this   Application will run different instances for various clients on different servers.     Each instance will run on different criteria stored in database managed by an admin.     Would like to be able to run this from the admin section.     Maybe using a server command line component and pipin the output into a web based admin? -- Whatever you think is best.     This application will run basically 24-7   Any best solution, idea etc

Auto saving the Winform application

hi,   I am developing a huge win form application, which has lot of win forms, user controls and wizards. For user it will take some time to fill-in all the fields and complete the wizard. I wanted to implement auto saving the application for every 3-4 minutes, this should be done in the background without disturbing the user activity (or thread)..   can anyone help me to implement this? Please share your ideas.   thanks

Restart a Wpf Application from a WinForm

I have a problem with a solution that I'm trying to develope. This is my scenario: I have a VB6 application and I would call from this application some WPF windows. I've used the Interop Form Library to define a WinForm like a bridge from VB6 to WPF. The Interop WinForm exposes the methods to start and shutdown the wpf application. To do that, in the WPF Application I've defined an helper like this: Public Class StartApplicationHelper Public Shared Property IsReady As Boolean = False Public Shared Event NotifyEvent As ValueEnterEventHandler Public Shared Sub Start() If System.Windows.Application.Current Is Nothing Then Try Dim myApp As Application = New Application myApp.ShutdownMode = ShutdownMode.OnExplicitShutdown myApp.InitializeComponent() IsReady= True Catch ex As Exception MessageBox.Show(ex.Message) End Try End If End Sub Public Shared Sub Shutdown() If System.Windows.Application.Current IsNot Nothing Then System.Windows.Application.Current.Shutdown() IsReady = False End If End Sub Public Shared Sub DispatchEvent(ByVal eve As String) If IsReady Then EventDispatcherService.DispatchEvent(eve, New EventDispatcherDataChildWin(String.Empty, Nothing, Nothing, False)) End Sub Public Shared Sub DispatchResult(ByVal

WCF Membership Authentication and Winform Client Application Services

I am needing more validation of what I am doing versus solving a problem. I have a winforms application that uses Client Application Services to validate a user against a customer membership provider all over SSL.  This works fine.  My winforms application validates correctly. The winforms application uses WCF to call services that are installed on the same IIS server that is providing the membership services for the Client Application Services.  The WCF services use wsHTTP binding, transport security, username credentials, and validate against the same membership provider as the Client Application Services. It appears that although the service and Client Application Services are at the same URL, they do not share credentials between them.  Ideally, once I log into Client Application Services, any calls to a WCF service at that location would be automatically authenticated.  However, this is not true.  I have to pass the username and password into the credentials for the WCF service.  This works as expected where the username and password are validated prior to allowing a service call.  On subsequent services calls, it does not validate again since it has established the secure channel. So, does this sound like the best approach?  Is there a way to pass credentials from the Client Application Services to WCF automatically?  I

missing asp.net web application in VS 2005 - only see asp.net web site

hi all, i am new to web developement...  i just want to follow a tutorial that guide through how to create a asp webpage i have VS2005 and microsoft .net framework 3.5 installed  but when i click on NEW Website in VS2005, i cannot find teh new ASP.Net Web Application like in this articale is showing http://msdn.microsoft.com/en-us/library/aa730880(VS.80).aspx but i can only see  ASP.Net Web Site + ASP.Net Web Services + Personal Web Site Starter Kit + Empty Website + ASP.Net Crystal Report Web Site   PS. when i intalled Vs2005, I choosed Full Install. so, please let me know if i am missing something. or, does a ASP.Net Web Application and ASP.Net Web Site will bring you the same thing. however, one thing i notice is that after i create new ASP.Net Web Site, i can't find the Property and or Refference NODE in the Website project-node anywhere. (figure 2 in the above link will give you a better picture of what i am trying to explain)  

Pagination and Data buffering in Windows Application using C# 2005


.NET Windows application using C# interacts with Oracle DB for retrieving and saving data

With huge volume of data, the performance is slow and the memory usage is high, the application displays the entire data in the screen. Response time is high due to database call and client side data processing

Proposed Solution
Using pagination (from Oracle DB) to display partial data in the screen, response time of the application will be faster; however, it will make DB calls for each page. We are looking at a solution to get the 1st page data from DB and start the application, after which there will be a background job to get the rest of the data from DB to a local XML DB. So, in case of next page, the data will be loaded from XML instead of making a DB call.

Is this design possible?
Is synchronization possible between local XML DB and the Oracle DB?

Error while Rendering Reports(Reporting Services 2005) in .Net 1.1 web Application on IIS 6.0


I developed an ASP.net 1.1 web application that is written in VS2203 and I am using Reporting Services 2005 to render some reports in PDF Format. My problem was it is working fine in local (XP) and Production environment (Windows 2003 Server).fromo long back the solution was not working for my integration Server which has windows 2003 Server (1.1) and we installed the 2.0,3.5 frameworks. It is throwing an Object refernce error while render the report. Is there any permisions or  something missing.

I have wasted so much time in a finding a solution and I appreciate any help in that.

Specifying Where A Service Reference Points In A WinForm Application


I need the actual service reference to the wcf object to be dynamic.  How can I switch between servers (server1, server2) with the same exact signatures and data contracts?


Right now I have to right click and add service reference.  I want to know how I can change the service reference to point to server 1 or server 2 at runtime

How to upload files to remote machine using FTP or other method in VB.Net 2005 (Windows Application)



I have to create an application to upload and download files using FTP.
Are there any classes, methods in VB.Net 2005(Windows Application) to do this?

I have created a small GUI for this.

It contains 4 text boxes - Path of Local file to be uploaded, IP address of remote machine, User name and password of remote machine At last there is one Transfer button when I click on this transfer button that file should get copied to the remote machine.


I tried this using FTPWebRequest class by reading example in msdn.

But to connect to remote machine it requires URI format of FTP and I only have IP address of that remote machine. I think there is no web server on that remote machine.

Should I need to install web server on that remote machine.

Or is there any other method to do upload files to remote machine ?


print from a winform application


hey all

i'm desperatlly trying to create some kind of form that contains data that will be filled from the main form of the application that will be printable. i would also like that the user will not be able to see the form.

any suggestions about how to approach this subject?

many thanks.

SQL Server 2005 random login failures for windows forms application


One of our VS .NET 2008 windows forms applications runs from multiple client machines. The application randomly has login failures from random machines and from random places in the code. The login works almost every time but about once every fifteen minutes an error shows up in SQL Server error logs from a random user. We are running a clustered SQL Server 2005 system and the database is in 2005 (90) mode.

The following error appears in the SQL Server error logs:

Login failed for 'App_Login'. [CLIENT: XXX.XXX.X.XXX] Error: 18456, Severity: 14, State: 16.

The following error is what the client sees:

Web part created in VS 2005 crashing the whole web application



I created a web part using C# and VS 2005. The web part contains a button, and in the onclick event of the button, I am trying to send e-mail. This is the functionality, I am trying.

I builded the application, added the dll into the web application bin folder, registered the dll in the GAC and added the dll name as safecontrol in the web.config.

In the Page, I am able to add the web part. I am able to see the button. When i clicked on the button, the whole application is getting errored out and am getting Service Unavailable error.

Even after re-starting the IIS, I am getting the Service Unavailable error. In the eventvwr I found the below 2 error:

1) Category: Web part - Error: RuntimeFilter: Failed to load all runtime filter configurations or the runtime filter component. Exception has been thrown by the target of an invocation.

2) Category: Email - Cannot connect to SMTP host

How to rectify this?

Also, when i cliked on the button, I was getting prompt for entering the username and password 3 times. I entered all the time.(My username has full control on the site). This at times led to Page cannot be displayed error.

Thank you

.NET 3.5(2.0) winform control in MFC 7.1 application


Hi all,

I have a WinForm control in .NET 3.5 (can also be compiled with .NET 2.0), created in VS2008, now I'm tasked to embed this control in a legacy MFC 7.1 app (in VS2003). Requirement is to embed the control, not necessary to merge two projects.

Due to dependency on a licenced library, the MFC app can not be upgraded to new VS version.

I'm new to MFC and only have limited experience programming WinForm app. Is this possible at all? If yes, any sample I can follow?

Thanks in advance!

Best Regards,

WinForm application connectivity


I have programmed a WinForm application (.NET 3.5, C#) which runs on multiple client and connect to MS SQL 2005 server. When client application starts, it loads settings to cache. When some global setting has changed, every application have to reload its own. Settings are stored in SQL.

Could you, please, advice some .NET functionality for that?

Thank you!


Web Application Deployment with Visual Studio 2010 and SQL Server 2005?



Is it possible to do a web application deployment(create package/publish sql & package/publish web) with Visual Studio 2010 and SQL Server 2005?

I'm trying my  hand at this new feature - I have an application created in VS2010 and the backend is SQL Server 2005

I read on msdn that the pre-requisites for the database part of the web application deployment is SQL Server Express 2008 or later versions for the tutorial they posted...Is that mandatory for any deployments??

Thanks for your help! Smile


How to make my vs.net 2005 built application run on 64bit windows server?

I have a problem with my application, i can't make it run in a 64 bit windows server 2003. My App use to communicate to a finger print scanner device which listens to device events and automatically transfers device logs to a database.

This app use to run smoothly in a 32bit windows (my development env is xp sp2 using vs.net 2005 and .net 2.0 framework). But when i tried to install it on a 64 environment everything went wrong. The app returns a CLSID exception in which it can't find the specified reference.

I have already encountered and fixed this exception in a 32bit windows environment but it really freaks me out seeing my app stucked in a 64bit environment.

Any ideas on how I can fix my problem is greatly appreciated!
Thank you in advance..

Converting web application from 2005 to 2008 with crystal reports



I have a web application developed in Visual studio 2005. I need to convert it to Visual Studio 2008.  The problem is that the application is using crystal reports. When I'm trying to run a page with CrystalReportViewer I am getting the following error:

Could not load file or assembly 'System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

How do I solve this problem?


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend