blah blah blah is here! blah blah » Close

0
votes
1 answers

restore an xml file

AK01
15

Hi! I would like to know if it's possible to have an xml file as part of an app's resources? the thing is when my app starts it checks if certain file exists. And if not - then create that file at the specific location. So I want this fil ...

0
votes
1 answers

Checking a filesize limit?

I want to make sure when a user selects a file, that it does not exceed 10 meg. I have: int _maxFileSize = 10240; OpenFileDialog dlg = new OpenFileDialog(); if ((bool)dlg.ShowDialog()) { if (dlg.File.Length > _maxFileSi ...

0
votes
1 answers

Please help me with checkboxes. Ive been stuck on this for four hours.

Hi guys I'm trying to make a autofilling web browser on c# and their is a checkbox I need to check. The web id of it is cb_rules_agree and I cant work out how to automatically click the textbox when i load the web browser through c#. I ...

0
votes
2 answers

check if richtextbox1.text start with

hello i want to check if richtextbox1.text start with "http://www.debugging.com" or not how can i do that

1
votes
2 answers

Check for existing entries and throw a message

I'm trying to compile some code that will check if a date from a datetimepicker and text from a textbox match exisisting entries in a datagridview if so throw a message window. Example: on my form i have dateTimePicker1 and resIndexTe ...

1
votes
8 answers

Check for existence of file, incremental filename till loop of 65535

I want to do something like this: (1) Check for existence of file with certain extension ".txt" in a directory D:\test (2) If a file does not exist, create a initial one, write something to it, and name it test_1.txt (2) If a ...

0
votes
1 answers

Check network status

Guys, is it possible to check if a network connection has been established then if so perform a function? Something like below (which doesn't work) but i want to check if the local network exists not the internet. [code][DllImport(" ...

Feedback