ParsX.com
پذیرش پروژه از دانشجویی ... تا سازمانی 09376225339
 
   ProfileProfile   Log in to check your private messagesLog in to check your private messages  |  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups Log inLog in   RegisterRegister 

در وی-بیTheme XP

 
Post new topic   Reply to topic    ParsX.com Forum Index -> ويژوال بيسيك .NET
View previous topic :: View next topic  
Author Message
vahid_ve
دوست آشناي سايت


Joined: 05 Feb 2006
Posts: 85

PostPosted: Mon Aug 07, 2006 7:18 pm    Post subject: در وی-بیTheme XP Reply with quote

چجوری میشه از Theme ویندوز در برنامه هامون استفاده کنیم؟

مثلا CommandButton ها مثل Button های XP باشن؟

البته در Visual Basic 6.0

??????????????????/
Question Question Question Question Question

Wink
Back to top
vahid
بي تو هرگز


Joined: 26 Nov 2004
Posts: 3067
Location: Tehran

PostPosted: Wed Aug 09, 2006 9:09 am    Post subject: Reply with quote

توي فرم (startup) پروژه دو خط زير رو مي نويسي (بالاي كدها)


Private Declare Function InitCommonControls Lib "Comctl32.dll" () As Long

Private Sub Form_Initialize()
    InitCommonControls
End Sub


بعد پروژت رو كامپايل مي كني و فايل Exe كه درست شد اسمش رو هر چي مي خواي مي زاري فرضا parsx.exe بعدش يه فايل مي سازي به نام parsx.exe.manifest كدهاي زير رو توش مي نويسي :

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="Computer.ParsX.com"
type="win32"
/>
<description></description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>

بعد فايل رو ذخيره مي كني و فايل Exe رو اجرا مي كني ...
Back to top
vahid_ve
دوست آشناي سايت


Joined: 05 Feb 2006
Posts: 85

PostPosted: Wed Aug 09, 2006 10:41 am    Post subject: Reply with quote

خیلی ممنون آقا وحید

Wink
Back to top
vahid_ve
دوست آشناي سايت


Joined: 05 Feb 2006
Posts: 85

PostPosted: Thu Aug 10, 2006 1:19 pm    Post subject: Reply with quote

پس چجوری میشه مثلا دکمه ی Close یا Maximize یا Minimize رو و یا قاب بالای پنجره رو با
عکس مورد نظر جایگزین کرد؟ Wink Wink
Back to top
vahid
بي تو هرگز


Joined: 26 Nov 2004
Posts: 3067
Location: Tehran

PostPosted: Thu Aug 10, 2006 6:10 pm    Post subject: Reply with quote

سه دكمه كنترلي بالا تحت theme سيستم عاملت هست ... اگه بخواي عوضشون كني بايد خودت دكمه بسازي و البته اونها رو مخفي كني ...
Back to top
vahid_ve
دوست آشناي سايت


Joined: 05 Feb 2006
Posts: 85

PostPosted: Thu Aug 10, 2006 8:19 pm    Post subject: Reply with quote

vahid wrote:
سه دكمه كنترلي بالا تحت theme سيستم عاملت هست ... اگه بخواي عوضشون كني بايد خودت دكمه بسازي و البته اونها رو مخفي كني ...



OK

Wink
Back to top
Display posts from previous:   
Post new topic   Reply to topic    ParsX.com Forum Index -> ويژوال بيسيك .NET All times are GMT + 3.5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum