Getting contents of TextBlock RRS feed

  • Question

  • I'm currently making a Random Generator App for Windows 8 in C++ and I'm confused how I can take the contents of the text blocks, but only when the "Generate" button is clicked/tapped.

    I'm VERY new to C++ and coding in general, so please understand that I'm learning as I'm doing this :).

    This is what I have so far in main.cpp:

    	int amountofNum = 45;
    	int startNum = 1;
    	int endNum = 12;
    int main() {
    	for(int x = 1; x < amountofNum; x++) {
    		cout << startNum+(rand()%endNum) << endl;

    I have three textblocks: MinNum, MaxNum, and Quanity

    Thank you!

    Friday, March 29, 2013 8:13 PM


All replies