Trying to get cmd.exe to run a batch file.
I am trying to develop a solution for winpe deployment to allow for a simple deployment method of a preconfigured image. No my issue is trying to call the cmd to run a batch file that contains the...
View ArticleHow do I display a error message if login fail for windows form
I have a form with username, password and login button. I have three tables called doctor, nurse and admin. I want to display error message if login is unsuccessful when button is clicked. If login is...
View ArticleRows cannot be programmatically added to the DataGridView's rows collection...
I am attempting to insert data to a data table(on customerForm) via another form(addcustForm). When I debug and open addcustForm, then enter data to the textboxes on addcustForm, then click save, I get...
View Articleproblem accessing properties from an app built by visual studio 2012 pro
the app target is .net 3.5 System.Configuration.ConfigurationErrorsException was unhandled Message=An error occurred creating the configuration section handler for...
View ArticleUsing BindingNavigator to update MS SQL DB
Hi!I am not sure if this is the correct forum for the query: or whether it should be presented in MS SQL 2012 forum. Please guide me.I am now creating forms for master maintenance (Add/Modify/Delete...
View ArticleIm trying to working with Task and create splashScreen but it's not owrking...
In the top of form1 i did:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using...
View ArticleReferenced Assembly System.Net.Http in VS2010
I am trying to reference the System.Net.Http.dll into VS 2010I made a setup and while running the application I am getting "Unable to Load referenced assembly for Executing"I did some google it can be...
View ArticleDispose Form Object
Hi How to dispose form object in vb.net windows application and form object holding memory. How to release the memory in windows application. i have tried "Using -- End Using","With ---End With",...
View ArticleHow To Programmatically Trigger a UserControl Enter Event
I want to programmatically trigger a UserControl Enter event. I thought that executing UC.Select() would do that, but it's not working in the following situation.I have 2 forms open, each of which has...
View ArticleWindows Form
Hi,I have implemented Jquery & Ajax in Asp.Net, i know these designed for web technologies.But is there anyway of implementing them in Windows form Application? or is there any Substitute for...
View ArticleHow do i find the exact center of a pixel coordinates of x and y after i...
In the paint event i draw some points from a list type PointF:foreach (PointF pt in extendedPoints) { e.FillEllipse(Brushes.Red, (pt.X - distance) * (float)currentFactor, pt.Y * (float)currentFactor,...
View ArticleHow do I show unchecked items of a checked list box in another checked list box
Hi I have two checked list box i.e. checkedlistbox1 and checkedlistbox2i have 10 items in checkedlistbox1. Now i select few item in checkedlistbox1. The unselected items should be displayed in...
View Articlewhy MDI child forms are slow?
hi friends, MDI children forms with 3-4 tabs (even empty 3-4 tabs) shows a visual lag / slowness when I drag that child form around within the parent form. I use windows forms. is there way to stop...
View ArticleDisappearing Controls
I've been working on a project for my work and randomly, without me changing anything, i'll have some windows controls just randomly disappear from my Design View. I've had a PictureBox disappear, and...
View ArticleRandom number generator for visual basic express 2010
I would like to generate a random number in visual basic 2010 express. I want to enter maximum and minimum number in the program. I just want one random number with each run. Please tell me what form...
View ArticleHow to make programmatically created radiobutton enable by a button click.
public Form1() { InitializeComponent(); var drvs = System.IO.DriveInfo.GetDrives(); int hdcount = 0; List<string> drivenames = new List<string>(); foreach (var drv in drvs) { if...
View ArticleTableLayoutPanel doesn't show vertical scrollbar even when AutoScroll is set...
I have TableLayoutPanel set on a Panel and I have AutoScroll set to True for both these.The TableLayoutPanel is made of only 1 row and 1 column at design time. At run time I am adding a chart to new...
View ArticleCrash in DragDrop implementation , failure in ntdll.dll module
My WinForm application worked fine in Xp. When we run the application in Windows 8.1 it crashes. I see similar issues reported by others, for...
View ArticleRemove child forms icon from MDI menustrip
Hello, I have MDI container form with a menustrip and when any children are displayed in it the child forms icon displays in the menu strip along with the min, max, and close buttons. What I want is...
View ArticleSelecting drop down box value programmatically
HiI am using a html element to get a drop down element , I want to select a particular value programmatically, how can I do that?document.getElementById("DrpDwn").setAttribute("value","some value");...
View Article