|
Hi all,
I'm using C# and I'd like to check to see if a checkbox on the main form is checked and if so run some code, the problem is I'm in a class file (file with no form, is class file correct?). What is the easiest way to do this?
Thanks Jamie
Started by Jamie on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
How would ask for the Name property of a Person... .
There's no difference between UI programming and non-UI programming in this respect .
You need a reference to the form, and the form has to expose the checkbox (or a property which consults the checkbox) .
|
|
Situation: condition check in C++ or C# with many criteria:
if (condition1 && condition2 && condition3) { // Do something }
I've always believed the sequence in which these checks are performed is not guaranteed. So it is not necessarily first condition...
Started by User on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Some languages evaluate everything in the condition before branching....
// perfectly legal and quite a standard way to express in C++/C# if( x != null && x.Count > 0 ) .. .
The order is predictable.
Short Answer is left to right with short-circuit evaluation.
|
|
Hi, I am building a cross platform product and one of the requirements is across windows(win32,AMD64 and IA61). The product as is relatively simple CLI but we have a separate build team who checks out the code from CVS and build in separate build environments...
Answer Snippets (Read the full thread at stackoverflow):
Another thing that I would check on your.
And when configuration changes, you have this problem.
|
Ask your Facebook Friends
|
Hi!
I'm writing a Database Editor / Bill of Materials Maker (2 separate .exe) for work, and I have this crazy issue. Here's how the flow works in the apps: Open Database, Search Database, Check Items Needed, Send to BOM Maker, Save as .xls.
So far, I ...
Started by Alex McCulloch on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You've forgotten to update something somewhere when....
It looks like the major problem is that you're getting your index range from your database results, but your ListView doesn't accurately reflect the database results you're using for your index range .
|
|
It looks quite easy to find such a tool for Java ( Checkstyle , JCSC ), but I can't seem to find one for C/C++. I am not looking for a lint-like static code analyzer, I only would like to check against coding standards like variable naming, capitalization...
Started by Drealmer on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
We have taken a more flexible approach....
There is also.
There's a list.
I have used a tool in my work its LDRA tool suite
It is used for testing the c/c++ code but it also can check against coding standards such as MISRA etc.
Promising.
|
|
Hi i like to know how to check in codebehind if a website is offline or online?
thank you
Started by snarebold on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Here you will find the list of all HTTP
You can use Pingdom.com and its API... .
Check for the HTTP-Status codes in the Response.
I use this Offline setting, to show friendly maintenance message created .
check that setting programmatically.
|
|
I've been asked to maintain a large C++ codebase full of memory leaks. While poking around, I found out that we have a lot of buffer overflows that lead to the leaks (how it got this bad, I don't ever want to know).
I've decided to removing the buffer...
Started by MrValdez on
, 15 posts
by 15 people.
Answer Snippets (Read the full thread at stackoverflow):
PURIFY
Also Purify....
Sorry.
Check on electric-fence , it is design just for buffer overflow ! It does CE, check out Entrek's code snitch
Another tool to consider if the code makes it into the field Memcheck works.
Snapshots as best you can).
|
|
I am new to using tree views and I want to be able to make sure the tree view can only have one child node checked and if someone tries to check more then one it stops the check event and deselects all parent and child nodes. How would I go about doing...
Started by Nathan on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
To me that implies you have a treeview capable.
TreeView : correct ?
When you say in your question :
if someone tries to check more then one it stops the check event and deselects all parent and child nodes.
|
|
Int temp = 0x5E; // in binary 0b1011110.
Is there such a way to check if bit 3 in temp is 1 or 0 without bit shifting and masking.
Just want to know if there is some built in function for this, or am I forced to write one myself.
Started by Zka on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
In C, if you want to hide bit manipulation, you can write ....
Check if bit N (starting from 0) is set:
temp & (1 << N)
There is no builtin function for this.
You can use a Bitset - http://www.cppreference.com/wiki/stl/bitset/start.
|
|
I'm writing cross platform C++ code (Windows, Mac). Is there a way to check how much memory is in use by the current process? A very contrived snippet to illustrate:
unsigned long m0 = GetMemoryInUse(); char *p = new char[ random_number ]; unsigned long...
Started by pbhogan on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Check out mallinfo()..
|