Quantcast
Channel: Windows Forms General forum
Browsing all 12583 articles
Browse latest View live

Change the width of the scrollbar on a datagridview

Hello all,I am trying to modify the width of the vertical scrollbar on my datagridview by using the following code :Dim fi As Reflection.FieldInfo = myDataGridView.GetType.GetField("vertScrollBar",...

View Article


Pass Parameters to an Array in Powershell

I want to create a script to accept as input, the names of multiple directories [1...n]and then save them to an array.ex.  directories.ps1 sql ksh txtie run the script passing in the names of the...

View Article


Webbrowser.FileDownload - just download the file without a 'save' prompt

I am creating a utility that automaticly go to a hosting provider and creates backups of the client databases.  The hosting provider sends the backups via HTTP, which causes the webbrowser control to...

View Article

Autocomplete combobox match any part of string not only beginning string.

I have a combobox, and it contains items: 123 abc, 12 ab, abc 123, def, ghm 123I want when i write "123" into combobox, then droppeddown list show: 123 abc...

View Article

How to Set a TabItem's Border Programmatically

Hi,   I'm dynamically creating TabItems in C# and adding them to my TabControl with great success.  However, I don't how to set the tab item's border.  When I specify a BorderThickness of 3 it doesn't...

View Article


Update textbox on button click event from dynamically loaded user control

 Hi,From a dynamically loaded user control, I need to update a textbox in a child form, can anyone share code example to accomplishing this? I would prefer example using events.Thanks,

View Article

how can i hide progress bar of scanner which is showing by WIA in c#? below...

using System; using System.Collections.Generic; using System.IO; using System.Drawing; namespace WIATest {    class WIAScanner    {        const string wiaFormatBMP =...

View Article

Showing files and directories of a treeView in different panels

Hello,I am building a Windows application. The form I use has 2 splitcontainers.SplitContainer1.Panel1 handles treeView1, SplitContainer1.Panel2 handles SplitContainer2.Panel1 and...

View Article


Which version of coding is easiest to learn.

I am completely new to coding. I created a lot of spreadsheets and id like to take it to the next level. Which Program should i get? I'd like to create my own money managing software.

View Article


How to allow right click for a file --> properties to show windows properties...

I have code that returns files in a folder.Can you please tell me How to allow right click for a file --> properties to show windows properties box?IE:- user should be able to rightclick on file via...

View Article

I want to show a message at a specific computer time

hi i want to the show's a message at a certin time of computer's clock as 10:4 PM-------------------ex . i want the program to show message at 10:04 PM that show's "Microsoft" and so on* i search too...

View Article

Are WinForms gonna Die?

Well I was just googling and Found out a lot of queries regarding Microsoft abandoning WinForms and moving to WPF and HTML5/CSS/JS as alternatives.So is this true , i mean i am shocked to see that , is...

View Article

Reading very large files into List

I'm trying to read a large txt file using a C# form application using Visual Studio 2008.  This particular file I'm trying to read is about 14Gb but could be as big as 25Gb with about 900,000,000...

View Article


Broken winRM wsman on a Windows 2008 R2 Domain controller

We have this setup of two domain controllers in the domain, and we are collecting the logs from using event forwarding to a third server, both were working just fine, but for some reason logs is not...

View Article

Image may be NSFW.
Clik here to view.

change the headertext angle datagridview

Dear all, Is it possible to achieve something in the picture for datagridview headertext? or any others control can achieve this result?

View Article


Unhandled exceptions in System.Windows.Forms.Label.WndProc

Hello,Last few days we started to seeing unhandled exceptions in our app, all stack traces contained frame System.Windows.Forms.Label.WndProc. The stack traces we saw were:System.ArgumentException:...

View Article

Changing currency from $ to Custom Currency symbol and Parsing- VB.NET winforms

Hello guys!I found a code on MSDN to format currency using CultureInfo i.e Public Class Form1 Sub New() ' This call is required by the designer. InitializeComponent() ' Add any initialization after the...

View Article


Image may be NSFW.
Clik here to view.

Resizing Controls to Fit Form Resize

I know there are several questions about this, but I can't seem to apply it to my case. Here's a picture of my form:When the form is re-sized (width made smaller), I want the highlighted controls to...

View Article

Visual Basic - Update progress bar on MDI container from Sub on MDI parent

Hello friends,I have a VB project with MDI container and MDI parent.On MDI container I have one progressbar I need to update the progress bar during execution of sql query run in a SUB (MDI parent)In...

View Article

Image may be NSFW.
Clik here to view.

Getting .net framework error

Hello all We have build a desktop software which run in different OS. But some time we gets .Net framework error in our client machine at the start time. This error has come at the 2nd time. 1st time...

View Article
Browsing all 12583 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>