Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

vb²ÎÊý´«µÝºó±£Áô... - VB / »ù´¡Àà

Àý£ºÊäÈëtext1.text=127.0.0.1 


public a as string 

Private Sub Command1_Click()
a = Text1.Text
end sub

Private Sub Form_Load()
Set cn = New ADODB.Connection
cn.Open "provider=sqloledb; data source=" & Trim(a) & ";initial catalog=student;user id=sa;password=sa;"
end sub

Äܲ»ÄÜÿ´Î´ò¿ªÈí¼þ¶¼ÈÃtext1.text¶¼±£ÁôÉÏÒ»´ÎÊäÈëµÄipµØÖ·~²»ÓÃÿ´Î´ò¿ªÈí¼þ¾ÍÏÈÊäÈëip~

VB code:

Option Explicit

Private Sub Form_Load()
Me.Text1.Text = VBA.GetSetting("myapp", "mysection", "mykey", "127.0.0.1")
End Sub

Private Sub Form_Unload(Cancel As Integer)
VBA.SaveSetting "myapp", "mysection", "mykey", Me.Text1.Text
End Sub



ÒýÓÃ
Äܲ»ÄÜÿ´Î´ò¿ªÈí¼þ¶¼ÈÃtext1.text¶¼±£ÁôÉÏÒ»´ÎÊäÈëµÄipµØÖ·~²»ÓÃÿ´Î´ò¿ªÈí¼þ¾ÍÏÈÊäÈëip~

ÄÜ£¬°ÑÉÏÒ»´Îtext1.textµÄÄÚÈݱ£´æµ½iniÎļþ»òtxtÎļþ»òÊý¾Ý¿â£¬Ï´ÎÆô¶¯Ê±µ÷ÓÃÎļþÀïµÄÄÚÈÝ£¬Ã»ÓÐÌØÊâÒªÇóµÄ»°£¬½¨ÒéÄã±£´æµ½txtÎļþ£¬ÒòΪÕâÊÇ×îºÃ²Ù×÷µÄÒ»ÖÖ¡£

Õâ¸öÊǶÁдiniÎļþµÄhttp://zhidao.baidu.com/question/27124950.html

lyserver µÄ×ö·¨Êǽ«ÅäÖñ£´æµÄ×¢²á±íÀïÁË


л´ó¼Ò лר¼Ò£¡Òì³£¸Ðл£¡


Ïà¹ØÎÊ´ð£º

vb - VB / »ù´¡Àà

xmlDoc1.loadXML(h)×ÜÊÇ·µ»Øfalse£¬ÎªÊ²Ã´£¿Ð»Ð»°ïæ»Ø´ðÒ»ÏÂ
hÊÇʲôÄØ¡£¡£¡£¡£¡£¡£¡£¡£¡£

hÊÇxml¸ñʽµÄ×Ö·û´®

ÄãÊÇÏë´ò¿ª¡£XML¸ñʽµÄÎļþ°É£¿

ÎÒÊÇ°Ñh·ÅÔÚxmlDoc1ÀÓÃxmlDoc1.loadXML(h)£¬È»ºóÈ¡xmlDo ......

vb²Ù×÷excel - VB / »ù´¡Àà

ÎÊÌ⣺
ÏÖÔÚAccessÊý¾Ý¿âÖÐÓÐÁ½ÕűíTableAºÍTableB
TableAÖÐÓмǼÈçÏÂ:
×Ö¶Î1(Name) ×Ö¶Î2(Num)
  A 3
  A 4
  B 6
  ... ......

vbÉú³ÉEXE - VB / »ù´¡Àà

form1ÖÐÓÐtext1-8£¬ ºÍcommand1 
text8ÖÐΪ³ÌÐò´úÂ루Éú³É´°ÌåΪform2£¨ÒÑ×öºÃ£©£©
µ¥»÷command1ºó½«text2ÖеĴúÂëÉú³ÉEXEµ½d:\ ²¢ÇÒtext1-7·Ö±ð¶ÔÓ¦
²úÆ·Ãû ¹«Ë¾Ãû ºÏ·¨°æȨ ºÏ·¨É̱ê ÎļþÃèÊö ×¢ÊÍ ±êÌâ ......

VB µ÷ÓÃInet¿Ø¼þÏÂÔسö´í - VB / ÍøÂç±à³Ì

¸÷λ¸ßÊÖ£¬Ð¡µÜ×î½üÅöµ½Ò»¸öÎÊÌ⣺ԭÏÈдµÄ³ÌÐò´ó¸ÅµÄ˼·ÊÇ£ºÊ×ÏÈwebbrowser´ò¿ªÍøÖ·£¬ÍøÖ·ÏÔʾºó£¬µã»÷ÍøÖ·ÉϵÄijһ¸öÁ¬½Ó£¬µ±webbrowser¼ì²âµ½ÍøÖ·ÒѾ­Á¬½Óµ½ÏëÒªµÄµØַʱºò¾Í¿ªÊ¼ÏÂÔØÎļþ£¬µ±ÓÃIE6µÄʱºòÏÂÔ ......

vb WebBrowser СÎÊÌ⣬Çë½Ì - VB / »ù´¡Àà

vb WebBrowser СÎÊÌ⣬Çë½Ì£º
WebBrowserÀïµÄÍøÖ·Ìøתºó£¬ÔõôȡµÃÌøתºóµÄÒ³ÃæµÄURLµØÖ·

¶¥Ï¶¥ÏÂ

ÒýÓÃ
BeforeNavigate2
ºÃÏñûÓÐÕâ¸ö°É vb6.0

BeforeNavigate2
Õâ¸ö¿ÉÒÔÓУ¬ºÇºÇ¡£
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ