Member Avatar
I have windows form with usercontrol to display image. I am trying to reset the autoscroll position to the top of the image if the user had scrolled down to see bottom part of the image. So at index change it should display top part of the next image that …
by mpdph09 in Software Development ()
Member Avatar
Hi, I am working with Winform Grid .As per my requirement , i need to use two control in single grid cell. please suggest how i can achive it. Thanks in advance.
by virendra_sharma -1 in Software Development ()
Member Avatar
I want to show my custom control(eg: `monthcalendar`) as a drop-down (popup) window. One option is to use `ToolStripDropDown` and `ToolStripControlHost` as the second example in [msdn sample](https://msdn.microsoft.com/en-us/library/system.windows.forms.toolstripdropdown(v=vs.110).aspx). Is it recommended to use ToolStripDropDown for controls other than the ToolStrip items ?
by bhaskerlee -1 in Software Development ()
Member Avatar
I have a listview component with the following simple items: Name Size Fixed Lens ------------------------------- camera1 35mm Yes camera2 16mm No I'm using C# and want to edit various items but the following code give me value '2' is not valid for index: listView1.SelectedItems[0].SubItems[2].Text = "Test"; What am I doing …
by rfresh in Software Development ()
Member Avatar
Function Key(F1,F2...) Press open Window Form Instead of Using Menu Button
by senzeye in Software Development ()
Member Avatar
I'm trying to change the form icon on an app I'm creating but I've forgotten how. Does anyone remember how to create a winform icon from an image file (i.e.- jpeg, bmp, etc)?
by TekknoDraykko in Software Development ()
Member Avatar
Just to give a little more info; I'm making a simple inventory program. From the main inventory page, a user can click the "Add Item" button, where they will be taken to another form, where they can fill out the item's info. Three fields are required (Category, Item, Quantity). Based …
by Spark_2 in Software Development ()
Member Avatar
I have a Windows Forms application (not WPF) in which from the main form (UI thread) I am creating a separate thread to perform a long period of test execution. The idea is that the user starts the testing by clicking a button on the main form; when the user …
by CSharpUser in Software Development ()
Member Avatar
Here is the URL to a thread i started recently for help and looking for guidance from here as well. http://stackoverflow.com/questions/26504979/how-to-get-the-auto-extension-of-entered-link-to-downloader Regards IQBAL
by javed.iqbal.3979 in Software Development ()
Member Avatar
This worked for a txt/zip file download but if i want to save/download video/audio file.How to move ? //Two textboxes used here, //1.to take URL //2.to get saving location on drive private void downloadbtn_Click(object sender, EventArgs e) { WebClient myWebClient = new WebClient(); string path; path = this.savePath.Text; Uri tmp …
by javed.iqbal.3979 in Software Development ()
Member Avatar
The following programme is not giving me desired output: string remoteUri = "http://www.contoso.com/library/homepage/images/"; string fileName = "ms-banner.gif", myStringWebResource = null; string path = System.Windows.Forms.Application.StartupPath; // Create a new WebClient instance. WebClient myWebClient = new WebClient(); // Concatenate the domain with the Web resource filename. myStringWebResource = remoteUri + fileName; Console.WriteLine("Downloading …
by javed.iqbal.3979 in Software Development ()
Member Avatar
I have the following code for simple downloading a file using WebClient: using System; using System.Net; using System.IO; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace DownloadManager { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void downloadbtn_Click(object …
by javed.iqbal.3979 in Software Development ()
Member Avatar
I need to bind a property to a ToolStripMenuItem. I've searched around and found it imposible, the best workaround seems to be creating a BindableToolStripMenuItem class and implement it yourself. So I've taken some reasonabyl well established code from the internet: public partial class BindableToolStripMenuItem : ToolStripMenuItem,IBindableComponent { private BindingContext …
by hanvyj 7 in Software Development ()
Member Avatar
Hello, I'm currently working with a program that using the reportviewer in VS 2012. I have been looking online since yesterday, trying to find any kind of tutorial on how to switch between reports. I have this so far, but it doesn't work. I have another snippet I've been trying …
by kiail in Software Development ()
Member Avatar
Hi,,,In my C# windows form, blinking and flickering occurs when i'm running the application.The form blinking occurs more times in Win 7 than Win XP.The form blinks when im opening the application and also when another form opens by button click. Can anyone tell me how to avoid that blinking …
by rahulzephyr in Software Development ()
Member Avatar
How to save, delete and insert current cell value of datagridview from xml file in C#.net winforms. i am entering the data in current cell of datagridview, that data is comming from xml file. now how should i save this current cell data.
by yogesh_10 in Software Development ()
Member Avatar
I am developing a winform application. I have menu like Edit -> Copy and Edit -> Paste. Instead of using Clipboard class to do copying and pasting can I use Operating System's ability to Copy and Paste text, image, link, etc...
by MARKAND911 -1 in Software Development ()
Member Avatar
How do I detect left mouse button down and up events on the 'Close' option of the system menu that appears when the mouse is clicked on the top left corner of a form?
by priyamtheone in Software Development ()
Member Avatar
I've got some winforms partial classes marked `[Obsolete]`. Unlike when applying this to methods, I get no warning after building. Is this because it's set on a partial class? I can't set it in the designer too, because that code can/will be regenerated. Anything I can do about it with …
by pritaeas 1,895 in Software Development ()
Member Avatar
How can I insert splitted texts to my ms access database? I can't seem to find the logic in it. :( Please help me. Here are my codes: This is where i split the texts that are inputted in textBox1, textBox2, and textBox3 string items = textBox2.Text; string[] splittedText1 = …
by chenpaii in Software Development ()
Member Avatar
I've got this error: **Additional information: Data type mismatch in criteria expression.** I don't know why.. I want to use split text in a textbox and insert the splitted texts to ms access. Here is my code: string[] splittedText1 = textBox2.Text.Split(' '); string[] splittedText2 = textBox1.Text.Split(' '); string[] splittedText3 = …
by chenpaii in Software Development ()
Member Avatar
hi.. I am working with an desktop application and i want to encrypt dlls after deployment.. Can anyone plz help me???
by bhagyap in Software Development ()
Member Avatar
Hello there,,,,,,, In my project there is one window form and on that form I have one linkLabel control..... Now my question is that I want to add one web page into my project ......so that when I click on the LinkLabel it must open that web page .....so how …
by Gaurav_14 in Software Development ()
Member Avatar
Hi i have a problem in binding DateTimePicker value from one form named SearchDoctor to existing form named Doctor. Here is the code of my Doctor form and it works: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Data.Sql; …
by vishal anand.s in Software Development ()
Member Avatar
I am trying to bind data to my DataGridView. (However, this is the easy explanation.) Background on what I am trying to accomplish: I have a rather large program here. This part of the code uses a DataGridView to display the data I have read and parsed (from another program …
by radium61 in Software Development ()
Member Avatar
I am building a winform Application. I have to create buttons dynamically based on data fetched from database. I followed following steps Created UserControl On UserControl_Load event I fetched data from database. I populated the UserControl with buttons based on number of rows i get from the database. The above …
by MARKAND911 -1 in Software Development ()
Member Avatar
I have developed a windows application. My development environment is win7, office2007, C#, VS2010, Winforms. My application stores data in MS Access. Is there any way with which i can create a connection string based on Oledb driver version present in PC?
by MARKAND911 -1 in Software Development ()
Member Avatar
Is it possible to implement theme of Microsoft Office in my windows application. I mean when anyone changes theme of Microsoft Office it should also make change the theme of my windows application. If its possible, let me know how to do that?
by MARKAND911 -1 in Software Development ()
Member Avatar
I've tried the methods from http://stackoverflow.com/questions/11498308/getting-values-from-two-or-more-forms-c-sharp http://stackoverflow.com/questions/3552169/sharing-a-variable-between-two-winforms http://stackoverflow.com/questions/10675872/get-value-from-parentform?rq=1 and http://stackoverflow.com/questions/14504210/passing-username-to-form-but-username-returns-null-c-sharp?rq=1 But i couldnt get mine to work as i will get some random argument error. [the two forms](http://i.imgur.com/gTwo3dZ.png) From the picture , i just want the username on Login form to be put into label1 on User form. But also …
by mohd.nasrul.iwan.fajaruddin in Software Development ()
Member Avatar
I have multiple listviews on a form (WinForms). List items can be dragged to other listviews. Is there a way to cancel a single item within the dragged items list? The target listview determines whether or not a single item can be dropped there. I'd prefer a solution that will …
by pritaeas 1,895 in Software Development ()