i've taken a couple courses in C Programming and all of the assignments were pretty basic. I've been looking into some of the awesome things that people have been doing with the Raspberry Pi and noticed that some of them are using the C language to control robotic arms and LEDs. I skim the code for some of these projects and notice they are using header files and code that i have never seen, nor are they in the books that i have. for example:
I have researched quite extensively, experimented, and still cannot seem to change the properties of a control on an active winform from a user control.
So I have a user control which populates each dynamically added tab page in a tab control.
I have a textbox in the user control which I would like to type in, capture the text_change event, and change the text of the label in the winform.
How do I bind a DATE column in a DataGridView Control to a DatePicker control (using C#)? I already have the DataGridView control bound to a database stored procedure which takes a DATE value as a parameter and selects joining table based on the results.
is there a way to tell WPF that I'm going to do a lengthy update on a control (TextBlock), and that it shouldn't redraw it until I tell it I'm done? I'm adding a large number of items to the Inlines property, and it has to redraw the entire control every time I add an item, which takes a very long time - about 1 second for every 100 items. I know some other frameworks allow freezing of certain controls, but I haven't been able to find anything in the documentation or on google. I've tried collapsing the TextBlock, and then making it visible again after the update, but it did not improve the performance at all.
is there any way to have the program control go some two paths at once? For example: if my program has two functions, one that does some simple calculation that requires nothing from outside it to set the variables and another that displays text for the user to read then enter something. Is there any way to have both run at the same time?
simpleFnc() {int a = 1; int b = 2 ; int c = a+b ;
[code]....
There is no connection of simplefnc to anywhere else in the program so is there any way to get it to run at the same time the other function is running?
I want the function to display all accounts deposit list to work properly, what i mean is that the table coming has its contents here and there . I want to align them properly. program in comment.
how I could use a Image control where I can upload an image to a folder(done that) and then take that image right after uploading it (in the same line of code) view it on the image control...
I have been trying to make a custom control(list box with more features). I know how to setup custom properties, but how do I make it so that the property can be edited in a separate window ?
I think I figured out how to show the form itself, and I don't know how to make the [...] button like :
There's not much Custom Control tutorials out there, and that's really the problem here.
i used a tab control to open form when user clicks on button of required form.. now the problem is that if form open once it can b again open using its button... how can i stop this re open problem?
Code: /*Currency Conv Control Module*/ #include <stdio.h> #include "currencyconv.h" /* defines constants, declares functions */ int main(void) {
float us_dollars; float currency; int user_input;
[Code] ....
This is $$ converter program I created that is split up over 3 files. It takes the users input in US Dollars and converts it to the currency selected. When executing the program I am encountering a small problem. It actually isn't converting anything and returns 0.00 dollars.
I would like for it to convert the amount entered into the currency selected. I would also like to add in the print statement the type of currency the user has selected.
I would like to make a program for final project, which can let me send any file to my computer at home, and i can access any files in my computer when i am not at home.sending and getting file will be with socket programming.
i would like to reach all folders in computer, not only the folder, where client program exist. how can i access other folders at remote computer by using my program?
I am having trouble understanding what I need to do to halt the flow of a program until a video file finishes playing. So far I have accomplished getting the video to play, but the program continues while the video is playing rendering the content of the program on top of the video making it not seen.
My goal is to make the video play, then once it has finished the rest of the program should run.
So far I have this in the start up area of my code:
//Initialize components for DirectShow to stream a video at start-up CoInitialize(NULL); //creates filter graph manager
[Code].....
After this code runs once, the program proceeds immediately into the loop where my update and render functions for the program runs. Preferably, I want to stop just the render function while allowing the update to continue to check if the user presses a key to skip the video. What do I need to add to the code to do this?
I'd like to make a control panel for different social media to control multiple account and have proxy support. I think i need to learn multithreading and socket programming right ?
I'm getting this strange problem with the webBrowser control that google can't find an answer for. When I click a button I get redirected to a page with just the letters 'e4' makes no sense to me?? is this a site problem or something to do with the webBrowser control?
The idea is that when you click on one of the labels (Western or Eastern) you access the tabs relevant to that region.
So, If i click on the "Western" label and then the "Sales" tab, the program loads the WesternSales usercontrol into the Sales tab. Likewise, if I click on the Eastern label and then the Sales Tab, the program loads the EasternSales usercontrol into the Sales tab, etc.
I want to eliminate the need for multiple data adapters. How can I load data from our database into each of the respective usercontrols using one data adapter?
So I am upgrading the system from 3.5 .NET to 4.5.1 and fixing any bug that I could find. Long story short, I run into an issue that basically tell me it couldn't find the images in the resource file. I figured out a work around, but first I have to set the picture box or background Image in design time to none. I ran into this Properties Windows while changing the value of picturebox for my user control saying: Property value is not valid. Object reference not set to an instance of an object. This usercontrol is taken from another user control from a different project. Basically, we are reusing it.
I have been working on my own custom web browser. If i insert a web browser in my tab control and name it i can easily just go webbrowser1.Navigate() in my button click to use the webbrowser methods.
I made a method CreateTab and it automatically adds a web browser to my tab along with a default web page. My problem is selecting this webbrowser in other button clicks so i can call Home, Back, forward, etc.
Here is me method for creating a tab.
private void CreateTabItem() { //create a new tab TabItem item = new TabItem(); item.Header = "Fitness" + i ; WebBrowser browser = new WebBrowser(); //browser.Name = "Website";
private void tableLayoutPanel_Content_ControlAdded(object sender, ControlEventArgs e) { int column = tableLayoutPanel1.GetPositionFromControl(e.Control).Column; int row = tableLayoutPanel1.GetPositionFromControl(e.Control).Row; if(row == 1 && column == 1) // Later i want to check it like this }
The problem is, that the column and row are always 0, but why?