|
|
Hello, Guest! Welcome to Symbianize forums.
Most of our features and services are available only to our members. So we encourage you to login or join us by registering a new account. Registration is free, fast, and simple. You only need to provide a valid email address so we can minimize spammers. As a Symbianize member you'll have the following privileges:
- Gain access to private forums and restricted features
- Reply and create new topics or polls
- Download free applications, games, themes, graphics, tones, videos, etc.
- Ask question or support related to mobile phone, computer, game console, and multimedia
- Private messaging (PM) with fellow members
- Communicate instantly or real-time with currently online members via Shout Box
All that and more, so what are you waiting for, join us now! Ito ang website na ginawa ng pinoy para sa pinoy!
| |
| Programming Discussions related to C++, HTML, PHP, ASP, ColdFusion, JavaScript, Perl, Phyton, Ruby, WML, SQL, XML, and other programming languages. |
 |
|

5th Aug 2012 Sun, 00:53
|
 |
Forum Advisor
|
|
Join Date: Aug 2011
Location: Sa tabi mo.
Posts: 794
Reputation:
|
|
[HELP]Saving background image on exit
Mga ka Symb, patulong naman, ung previous thread ko na baguhin yung path ng resources ay ok na, nagbabago na ung background image niya. Ang problema naman ngayon, kapag nirerestart ko ung application, bumabalik po sa default ung background image. Patulong naman po kung anu idadagdag ko sa code. Ngayong sabado na kasi namin ipapasa to.
Thanks in Advance po mga master.
PREVIOUS PROBLEM:
Mga ka Symb, panu po ba baguhin ang directory niya na hindi siya magkakaproblema pag nirun ko sya sa ibang computer. Ilalagay kasi namin to cd. Yung hindi na po siya gagamit ng C:\Users\RJ\Desktop para hindi siya magconflict.
Ito po ang code ko.
Quote:
Private Sub cmdApply_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdApply.Click
If cmbBackground.Text = "Default" Then
frmMain.BackgroundImage = System.Drawing.Bitmap.FromFile("C:\Users\RJ\Deskto p\Midterm Project\Icons\background1_blue.jpg")
ElseIf cmbBackground.Text = "Alien Telescope" Then
frmMain.BackgroundImage = System.Drawing.Bitmap.FromFile("C:\Users\RJ\Deskto p\Midterm Project\Backgrounds\alien telescope.jpg")
|
End If
SOLUTION:
Quote:
If cmbBackground.Text = "Default" Then
frmMain.BackgroundImage = My.Resources.background1_blue.jpg
ElseIf cmbBackground.Text = "Alien Telescope" Then
frmMain.BackgroundImage =
My.Resources.alien_telescope
End If
|
Last edited by rijolo012593; 8th Aug 2012 Wed at 18:07..
Reason: new
|

5th Aug 2012 Sun, 09:22
|
 |
Forum Advisor
|
|
Join Date: Oct 2007
Location: Sa eskenita
Posts: 816
Reputation:
|
|
Re: [HELP]Displaying data from SQL to VB.net textbox
ganito kasi ginagawa ko sa c#
gamitin mo nalang ang DataSet mo kesa DataTable
Code:
sqlda.Fill(sqlds, "tblLogin")
at illop mo gamit ang foreach para mafill ang textbox
Code:
foreach(DataRow item in DataSet.Tables["mytable"].Rows)
{
txtGmailEmail.Text += item["GmailEmail_CoulumnName"].ToString();
txtGmailPass.Text += item["GmailPass_CoulumnName"].ToString();
}
ayusin mo nalang dahil pang c# ang code. parehas lang sila ng concept
Last edited by sephiroth111; 5th Aug 2012 Sun at 09:33..
|

5th Aug 2012 Sun, 11:12
|
 |
Forum Advisor
|
|
Join Date: Aug 2011
Location: Sa tabi mo.
Posts: 794
Reputation:
|
|
Re: [HELP]Displaying data from SQL to VB.net textbox
Quote:
Originally Posted by sephiroth111
ganito kasi ginagawa ko sa c#
gamitin mo nalang ang DataSet mo kesa DataTable
Code:
sqlda.Fill(sqlds, "tblLogin")
at illop mo gamit ang foreach para mafill ang textbox
Code:
foreach(DataRow item in DataSet.Tables["mytable"].Rows)
{
txtGmailEmail.Text += item["GmailEmail_CoulumnName"].ToString();
txtGmailPass.Text += item["GmailPass_CoulumnName"].ToString();
}
ayusin mo nalang dahil pang c# ang code. parehas lang sila ng concept
|
Sir, ayaw pa din po ee, error po ako sa line na to.
Quote:
|
foreach(DataRow item in DataSet.Tables["mytable"].Rows)
|
|

5th Aug 2012 Sun, 11:42
|
 |
Forum Advisor
|
|
Join Date: Aug 2011
Location: Sa tabi mo.
Posts: 794
Reputation:
|
|
Re: [HELP]Displaying data from SQL to VB.net textbox
up ko lang po.
|

5th Aug 2012 Sun, 12:24
|
 |
Forum Consultant
|
|
Join Date: Jul 2009
Location: Baguio City
Posts: 1,479
Reputation:
|
|
Re: [HELP]Displaying data from SQL to VB.net textbox
Quote:
Originally Posted by rijolo012593
Mga sir, panu po ba idisplay sa textbox ang mga data ko sa sql
Ito po ang code ko. Pero error po siya
|
ang balak mo ba eh ung may pagination?
or specific lng na data?
select all kasi ung query mo
|

5th Aug 2012 Sun, 12:44
|
 |
Forum Advisor
|
|
Join Date: Aug 2011
Location: Sa tabi mo.
Posts: 794
Reputation:
|
|
Re: [HELP]Displaying data from SQL to VB.net textbox
Quote:
Originally Posted by polens
ang balak mo ba eh ung may pagination?
or specific lng na data?
select all kasi ung query mo
|
specific lang po na data sir polens..
bale ito po ung mga column sa database ko:
ID, Username, Password, GmailEmail, GmailPassword
tapos ang gusto ko lang po ipasa sa textbox ko is yung GmailEmail = txtGmailEmail.text at GmailPassword = txtGmailEmail.text
anu po kaya ang kulang sa code ko dun sa taas?
|

5th Aug 2012 Sun, 17:32
|
 |
Forum Advisor
|
|
Join Date: Aug 2011
Location: Sa tabi mo.
Posts: 794
Reputation:
|
|
Re: [HELP]Displaying data from SQL to VB.net textbox
up ko lang po.
|

6th Aug 2012 Mon, 15:52
|
 |
Forum Advisor
|
|
Join Date: Aug 2011
Location: Sa tabi mo.
Posts: 794
Reputation:
|
|
Re: [HELP]Changing path or directory on VB.net
up ko lang po.
|

6th Aug 2012 Mon, 16:21
|
 |
Forum Consultant
|
|
Join Date: Jul 2009
Location: Baguio City
Posts: 1,479
Reputation:
|
|
Re: [HELP]Changing path or directory on VB.net
dapat nilagay mo sa resource folder ng project mo ung mga image...
|

6th Aug 2012 Mon, 18:32
|
 |
Forum Advisor
|
|
Join Date: Aug 2011
Location: Sa tabi mo.
Posts: 794
Reputation:
|
|
Re: [HELP]Changing path or directory on VB.net
Quote:
Originally Posted by polens
dapat nilagay mo sa resource folder ng project mo ung mga image...
|
sir, polens, pag nilagay ko sa resource folder, anu na po ang mggng path ko nun?
|
 |
|
All times are GMT +8. The time now is 19:51.
|