Quantcast
Channel: Visual C# forum
Browsing all 31927 articles
Browse latest View live

How to overwrite the hard drive and disk

To erase magnetic media, I want to overwrite hard drive and disk many times with alternation patterns in order to expose it to a magnetic field.

View Article


WebBrowser and swf textbox and button

How can I select flash textbox, past text, and click button in C# WebBrowser?TextBox and Button: s7.postimg.org/oh2w84js7/button.jpgForm where button is:<form name="working" action="object_do.php"...

View Article


Conn.Open() Not Working

Here is my code: static SqlConnection conn = new SqlConnection(ConfigurationSettings.AppSettings["Ill.Properties.Settings.IllConnectionString"].ToString()); SqlDataAdapter adapter = new...

View Article

C#: ALT+F4

Hi,Can anyone help me how can I not allow the Windows Application to not close when ALT+F4 is pressed?Thanks,MukuroRokudo

View Article

Image may be NSFW.
Clik here to view.

Read Multipal rows from table and display on labels please see detail

 Picture On Above Image I want to Display the Record on Labels  and records are I have tried every thing but I failed  I just want to display record like thislabel1.text = "Chicken Boneless...

View Article


How to handle null value

Hi all,I had an intention to query one table and insert some value into another table. There is no problem in querying the table with value. But if the value is null, it throws a invalidcastexception -...

View Article

Listview code help

I have tried rearranging this code a couple times, and either it completely doesn't work, or it displays weird on the list view.So what I wan't to know is instead of this code displaying on the list...

View Article

C#: TextBox Validation = hh:mm AM|PM

Hi,I need help in validating my textbox in Windows Application: Windows Form using C#.startTimeTextBox and endTimeTextBox should only accept values hh:mm AM|PM (e.g. 09:00 AM or 9:00 AM) and to check...

View Article


Not able to read node from text file using C# code

Hi,I am trying to read a node from text file using C# code.For example:<AccountNickName>E2E Testing</AccountNickName>I want to retrieve E2E Testing from text file(This is not a XML...

View Article


Debug Error

I am using C# to open files, and it will run through the code issue free, but every so often I get this error:The remote procedure call failed.  (Exception from HRESULT: 0x800706BE)Any idea's what...

View Article

Textbox unreachable code

I want to do:        private void textBox3_Click(object sender, EventArgs e)        {            if (true)            {                this.textBox3.Clear();            }            else            {...

View Article

Problem after project publication in C#

I published the project with visual Studio. And then when i was installing it starts asking to install sql server. And then it fails to install it. i have the following warnings during...

View Article

I want to know diffrerent between assigning value for property and assigning...

Hi Guyz,I want to know diffrerent between assigning value for property and assigning value for property variable... Below i am given the Code for my scenario.       private int _extentWidth;...

View Article


static key word

In http://msdn.microsoft.com/en-us/library/98f28cdx(v=vs.100).aspx, the static key word is described as:"Use the static modifier to declare a static member, which belongs to the type itself rather than...

View Article

Namespace used as Type error

It works for my other similar coding and I've checked that its the same thing but not sure why got this error. Hope can get some help here. Thanks!Here's what I've done : using System; using...

View Article


Keep updating the graph by values from database in winform C# using...

Hi i am trying to keep updating the graph by values from database in winform C# using Background Worker. Here's my code: using System;using System.Collections.Generic;using System.ComponentModel;using...

View Article

C# Function to Check if File Is Open

I was wanting to have a Function that I can use at multiple places in my project to check if a file is open.  Something like:if (File.Open() == true) { return true; } else { return false; } but that...

View Article


Parallel Programming

I'm developing a program that connects to a tool that has 3-4 applications in it. My goal is to loop through each application, get records and update in database. Using Parallel programming make it's...

View Article

parameter overloading

I am having a fallowing code.public void Function(MyClass obj){   obj.Get();}I am having 3 different clas MyClass , YourClass, HisClass of same type. I want to use this function for all class. When the...

View Article

Plugin installation?

Hey there, so I made a plugin, and now I want to be able to install it on other peoples machines easily.I got it working on somebody's machine but I had to copy the .Addin and DLL file and then go into...

View Article
Browsing all 31927 articles
Browse latest View live


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