Yeni Pencere Açmak
-
VB de nasıl yeni pencere açarım ?
MEsela hakkında"ya basacaklar yeni pencere açılacak.resim falan koycam...
ben mesaj kutusu koyuyodum.ama yani o da çok basit görünüyor.en iyisi yeni pencere.nasıl yapabilirim ? VB 6 kullanıyorum.Farketmez ama... -
1 tane form ekliyosun project penceresinden sağ tuşa bas add new form de ekle
sonra ilk form1 deki bi butona falanmı tıklayınca açılmasını istiyosun ne istiyosan oraya
form2.show
yaz, mesela butonun click olayına. -
delphide .showmodal war. onu kullanınca yeni açılan pencereden altaki pencereye geçemiyosun. ama vb de kullanılırmı bilmem
-
Martyn harikasın!Sağol...
Sen de sağol m3rt ama VBde olcakti benimki...
Sağol... -
Önce File > New > Form Yap. Karsına 1 form daha gelecek. Sonra 1. forma 1 buton koy ve şu komutları ekle..
Sub Command1_Click()
form1.hide
form2.show
__________________________________________
Command1_Click = command1 e tıklayınca;
form1.hide = form1 i kapat,
form2.show = form2 yi aç.. -
Hide yerine bunu kullan
#############################################
The SetParent function changes the parent window of the specified child window.
HWND SetParent(
HWND hWndChild, // handle of window whose parent is changing
HWND hWndNewParent // handle of new parent window
);
Parameters
hWndChild
Identifies the child window.
hWndNewParent
Identifies the new parent window. If this parameter is NULL, the desktop window becomes the new parent window.
Return Values
If the function succeeds, the return value is the handle of the previous parent window.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
Remarks
An application can use the SetParent function to set the parent window of a pop-up, overlapped, or child window. The new parent window and the child window must belong to the same application.
If the window identified by the hWndChild parameter is visible, Windows performs the appropriate redrawing and repainting.
#############################################
Toplam Hit: 2411 Toplam Mesaj: 6
