Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 42

15 Posted Topics

Member Avatar for Adrian99420

Hi, I created a combobox and binded it with MS access table using following code: [code] this->oleDbDataAdapter1->SelectCommand->CommandText="SELECT DISTINCT Profile_Name FROM Profiles"; this->oleDbDataAdapter1->Fill(dataSet1,"Profiles"); DataTable^dt= dataSet1->Tables["Profiles"]; comboBox1->DataSource= dt; comboBox1->DisplayMember = "Profile_Name"; [/code] I got the correct profile name I needed in the combobox. I tried it using textbox, textBox1=comboBox1->SelectedItem->ToString(); However,it always return …

Member Avatar for dittukumar
0
181
Member Avatar for Adrian99420

Hi, I am developing a GUI using visual C++ 2005 express edition. I created a window forms (form1.h) with some buttons and codes. Next I added another new window forms (form2.h)with a single button. I wish to link the form2.h to form1.h with a single button click. I searched and …

Member Avatar for Naisan_Yazdani
0
107
Member Avatar for Adrian99420

Hi, I created a checklistbox and binded the display value from a MS-Access table. Next, I am trying get the checked item but I keep getting "System.Data.DataRowView" Here is what I did: [CODE] private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { this->oleDbDataAdapter1->SelectCommand->CommandText="SELECT DISTINCT Profile_Name FROM Profiles"; this->oleDbDataAdapter1->Fill(dataSet1,"Profiles"); DataTable^dt= dataSet1->Tables["Profiles"]; checkedListBox1->DataSource= dt; …

Member Avatar for mitrmkar
0
145
Member Avatar for Adrian99420

Hi, I wish to output a string from a textbox to another file, here is what I wrote: [code] FILE*myfile; myfile=fopen("D:\\Profiles\\DqGw47\\Desktop\\hello.txt","a"); fprintf(myfile,"%s\n",textbox1->text); fclose(myfile); [/code] In my hello.txt: Set wallpaper= My problem is how can I control where to fprintf my string. In this example, how can I output the textbox …

Member Avatar for Ancient Dragon
0
146
Member Avatar for Adrian99420

Hi, I created 3 combobox: comboBox1, comboBox2 and comboBox3. I wish to select the require combobox according to different case. I tried to use comboBo(i) but it return me error.For example, [code] for (int i=0; i=3;i++) { textBox1->Text=comboBox(i)->SelectedItem->ToString(); } [/code] The code return me error on selecting "comboBox(i)". I knew …

Member Avatar for Nick Evan
0
76
Member Avatar for Adrian99420

hi, I link up a combobox item with a MS access database by setting the data source and display member of combobox properties. However, I wish to filter some repeated item in the combobox, how can I do that? For example, my MS access table contain value as follow: profile …

Member Avatar for Ancient Dragon
0
137
Member Avatar for Adrian99420

Hi, I am trying to update a MS access table from my combobox selected item. Here is what I wrote: [code] String^sqlQuery= "UPDATE Profiles SET "+"Wallpaper='"+ comboBox1->SelectedItem->ToString()+"',Ringtone='"+comboBox2->SelectedItem->ToString()+"'"+"WHERE Profile_Name=MotoX"; this->oleDbDataAdapter1->SelectCommand->CommandText=sqlQuery; this->oleDbConnection1->Open(); this->oleDbDataAdapter1->UpdateCommand->Connection=oleDbConnection1; this->oleDbDataAdapter1->UpdateCommand->ExecuteNonQuery(); this->oleDbConnection1->Close(); [/code] However, I keep getting error of "Parameter ?_1 has no default value" I searched through many …

Member Avatar for Adrian99420
0
80
Member Avatar for Adrian99420

Hi, I created two window form (the two form call form1 and blank), when I click a button on the first form it will link to the second form. However, i face problem when I wish to change the second form text (name of the form) using the string I …

Member Avatar for mitrmkar
0
106
Member Avatar for Adrian99420

Hi, I created 2 window form using visual C++, I am trying to display the string typed by user in second window form's textbox. Here is what i wrote, but the code is not working: Form1.h private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { tabPage1->Text=Form2().textBox1->Text; }

Member Avatar for mitrmkar
0
99
Member Avatar for Adrian99420

Hi, I created a GUI which contain a few tabpage, I wish to add and name a new tabpage with a single button click. Therefore, I created two window form. With the "add new operator" button, I link to the second form which allow user to key in the name …

Member Avatar for Adrian99420
0
89
Member Avatar for Adrian99420

Hi, I am using VS C++ 2005 express edition. I developed a simple GUI with a single tabControl (contain tabpages with some combobox). I wish to add a button which able to add another tabpage which contain the same item as previous tabpages. For example. my previous tabpage contain 2 …

Member Avatar for Narue
0
105
Member Avatar for Adrian99420

Hi, I created a few window forms and I faced problem when try to link them up. I am able to link up two window form but the problem comes when I tried to link up more than 1 window forms. For example when I want to link up the …

Member Avatar for Nick Evan
0
88
Member Avatar for Adrian99420

Hi, I am using visual C++ 2005 express edition. I created a window form application with several combobox. The combobox contain few default items (pictures for example). Now I wish to create a file browser which allow user to choose picture from others directory and added it into the combobox. …

Member Avatar for mitrmkar
0
175
Member Avatar for Adrian99420

Hi, I am currently doing a project which need to read the IMSI number from simcard and change the default setting of MotorolaZ8 for different operator. For example, the phone will automatically change the wallpaper setting after it detected certain operator's simcard is inserted. I would like to know whether …

0
60
Member Avatar for Allen 0108

Hi, I am currently doing an C++ application which need to run a build file using command prompt. I tried to use the command: system("c:\desktop\helloworld"); system("bldmake bldfiles winscw"); However I can't run the two command in the same command prompt window. Anypro fren can give me suggestion or good solution? …

Member Avatar for Adrian99420
0
110

The End.