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

Post New Web Links

winform got crazy ! (C#)

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :Windows Application

I wrote :

this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.OutsetDouble; 

(I want the buttons  to appear in a table in the form  )

When I ran it , it got crazy ! (repeating and jumping )

When I removed this line , It came back to normal


Is it a bug ?


good morning sunshine

View Complete Post

More Related Resource Links

Want to Create Table Dynamically With text Control in WinForm Csharp

Hello To All... from Many Days i m tryng to create a simple table using csharp in WinForm.Which will include textbox in each cell according the Passed No of Col & Row. but not getting the proper result. Actually i want to trace each cell data and want to save each cell data to data base : eg. in cell 11(1col & 1row) i m having Combobox which having some item list and when the user select the list item the data will save to the database. Regards, Praveen    What is the Key of Life ... Its Sharing Your Thought & Knowledge ...

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

C# winform.controls for novice

i wanna separate my content as wpf's expander in win-form. tree's node as detail-view separate the tab with a little px in tab-control; round the coner

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

VisualtTotals and group "others" drive me crazy!

Hi all, My problem can be modeled in ADVwork as follow: I’m trying to create a query that for each category member show the Top 2 Products members and member ‘other’ that sum the rest.   As far as I know Visualtotals is the function to be used but all my tests doesn’t works! Here below there is the code that for each category display ‘All’  value and Top 2 items.  I have to substitute ‘All’ value with ‘All Other’ (Visualtotals should do exactly this) Note: In my example Product and Category are dimension attributes not related in a hierarchy Again, in my various test with Visualtotals I found that if TopN is greater than the numbers of attribute members (es top 999) then  my ‘Other’ return ‘All’ instead of null! select {[Measures].[Sales Amount] } on columns, generate  (  [Product].[Category].[Category].members  ,  {topcount([Product].[Category].currentmember *[Product].[Product].members, 3, [Measures].[Order Count])   }  ) on rows from [Adventure Works]

Change alignment of winform title bar to center

Hi, How can I chaneg titlebar text alignment to center in winform (C#.Net). Regards, Shweta  

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

Empty WinForm frezzes on show?

Hi! I have a static WindowController where I can do the following : Open LoginForm Open MainForm Open MidiFormInMainForm When application starts it will Open LoginForm with WindowsController. This is done by instanciate the form, binding it to a SuccessfulLogin event and then run Show(). Everything works grate so far. When hitting the login button(in LoginForm) a separate Thread will be created with ThreadPool.QueueUserWorkItem. ThreadPool.QueueUserWorkItem(new WaitCallback(LoginUser)); This Thread will validate the form(with begin invoke), send the login information and if success then trigger the SuccessfulLogin event and finaly close the login(all this from within the LoginForm). When the WindowsController get the SuccessfulLogin event it will run this simple code :   Form form = new Form(); form.Show();   This will open a empty form but it will frezze, it is not even possible to move the window? If we change the code to form.ShowDialog() then it will show properly but we do not want it to be a dialog. I supose that this could have something to do with the threading and maby also that the WindowController is static. Pleas advice. BestRegards  

Blogs going crazy

Hi everyone! I have gotten some weird problems with some of the blogs on our site. It all started with that someone could copy paste text from word to a blog entry, it came up "pasting" as it always does but then nothing happend. We solved this problem with a wordpad document where we pasted all the text from the word document then reseted all fonts and so on.. then pasting worked again. 1 day later even a funnier problem accoured: Blog entries that where saved lossed its body so only title are shown when you look at them, and if you click one of those blog entries that has that error only the title are shown and all controls that are supposed to be there are gone. Another error that showed itself at the same time as these other are that some wntries arent shown in the deault.aspx view... they are there because u can se them att manage post, they are approved and they are published...they just dont show up at default.spx view...   Someone have an idea what all these error comes form? We have a couple of hundreds of blogentries in the site and these error just start to pop up here and there, all work at it supposed to to about 95% of the time..   Really need help because me myself are totally clueless what the error can be

TextMode="Password" makes my textboxes go crazy...

Hi!I'm making a simple form to insert new users to my app, and this form has several textboxes for name, email, username, password, etc.No problem here, everything looks and works fine, until i set the password textbox property TextMode="Password". When i do this, every time i run the page the username and password textboxes get yellow and they have the logged on user's username and password :-/Even if i remove the username textbox from the form it will fill another textbox with the same thing :(Can anyone tell me whats wrong?

Access a SharePoint list from a WinForm

I have created a winform. The winform runs on the server that is in the SharePoint Farm. It is throwing an exception when I try to connect to the list. Any ideas? Is there some special consideratoin I need to have when connecting with a winform? The winform just has a button that when pressed I want to give the created date a new value, which is part of the name of the file in the list.



using (SPSite site = new SPSite(http://inet533/sites/aamc/refctr/))

VS2010 driving me crazy


Here is the thing: my old Windows XP development with VS2010 machine broke. I then decided to use Windows 7 (64-bit) in combination with VS2010.

Issue 1:

The project did not build. I completely recreated the project (took me 4 hours to find out, then another 4 hours to recreate the file with all the references), but then it builds again.

Issue 2:

The first time we completely build the solution, it all works fine. However, on the next change, we get a "Could not load assembly" issue. When we view the information of the assembly via .NET reflector, we see that the app version is:

"MyApp, Version=3.2.3924.24037, Culture=neutral, PublicKeyToken=1aaf4ff5851673aa"

But, binding errors shows us that it is trying to load:

"MyApp, Version=3.2.3924.24036, Culture=neutral, PublicKeyToken=1aaf4ff5851673aa"

Notice the difference in version (ends with 37, but requests 36).

What are we doing wrong, and how can we fix this ASAP? We already lost 2 valuable days troubleshooting these issues.

Geert van Horrik - CatenaLogic
Visit my blog: http://blog.catenalogic.com

Looking for a way

How to "fork" console when my winForm is in a pipe?


Hi All,

I have a winform app, which can read from stdin. That is fine basically, but it hangs the belonging console when I start it in a pipeline. In other words, if I start it like "dir|mynotepad", I can reach the data in my app, but the console where I started the app is waiting till I close my form.

I'd like to get my prompt back, once I read all the data from stdin. I have tried to create new thread/process, but they cannot survive the main thread. I tryed it in c#, .net3.5 on winXP.

Could anyone give me some advise please?

Any help would be really appreciated. Thanks,

User can not run a winForm with the ReportView Control


hi there:

   I've developed a simple WinForm application and drag a ReviewViewer control to that form in order to pull a report from the report server. It runs perfect on my machine. However, after I compiled the apps and distributed to user's machine, she can not run it. Below is the error message


"Coudl not laod file or assembly 'Microsoft.ReportViewer.WinForms, Version =, Culture= Neural, PUblicKeyToken = bxxxxxxxx' or one of its dependencies. The system can not find the files specified.


 Any ideas?





--Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

WinForm inside a WPF window


Is it possible to open a Window Form inside the WPF Form and how ? So that the WPF window really host all the Form (System.Windows.Forms.Form) .

.Net 4.0 Winform Control hosted in IE


We have an application that utilizes winform controls hosted in IE8+. In .Net 3.5 and before this worked great. We migrated our application to 4.0 and the exact same code will not function in IE. It compiles just fine and runs outside of IE. If I set our target framework back to 3.5 we have no problems. When we set it to 4.0 it just doesn't work.

I will say that we are gathering information from the system regarding printers.



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