آموزش مصور ويژوال بيسيك visual basic در مجيد آنلاين

وضعیت
موضوع بسته شده است.

saalek110

Well-Known Member
آخرین ویرایش:

western

Member
میدونم که اکثر دوستان این قبیل دستورات رو بلدند اما گفتم شاید مفید باشه

این دستور خیلی جالبه و به جای یک If - then -else کار میکنه - امتحان کنید

یه command رو فرمتون بزارید و height اونو برابر 495 قرار بدید بعد تو رویداد click - دکمه تون (command) اینو بنویسید

کد:
Command1.Height = IIf(Command1.Height = 495, 700, 495)


البته این یه مثال برای روشن شدن کاربرد این دستور بود

موفق باشید - محمد
 

saalek110

Well-Known Member
منبع:
http://www.prdev.com/search/aisearch.asp?id=198

توابع ریاضی در ویژوال بیسیک



برای نوشتن برنامه‌های مهندسی، محاسباتی، گرافیکی و آماری نیاز دارید تا از برخی توابع ریاضی استفاده نمائید. ویژوال بیسیک 6 دارای مجموعه‌ای از توابع است که برای انجام محاسبات عددی پیش بینی شده اند. در این مقاله ابتدا با این توابع آشنا شده و سپس چگونگی ایجاد سایر توابع ریاضی را که در میان این مجموعه وجود ندارند خواهید دید. در پایان نیز با توابع ریاضی موجود در دات نت آشنا می‌شوید.

تابع Abs (قدرمطلق) :
مقدار بدون مثبت یک عدد را برمی‌گرداند.

تابع Atn (آرک تانژانت) :
خروجی این تابع عددی از نوع double است که برابر زاویه‌ای است که تانژانت آن عدد ورودی تابع است.

تابع Cos (کسینوس) :
خروجی این تابع عددی از نوع double است که برابر کسینوس زاویه ورودی است.

تابع Exp (توان نمانی) :
خروجی این تابع عددی از نوع double است که برابر e به توان ورودی تابع است.

تابع Int (تابع کف یا تابع جزء صحیح) :
نزدیکترین عدد صحیح مساوی یا کوچکتر نسبت به عدد ورودی را برمی‌گرداند.

تابع Log (لگاریتم) :
خروجی این تابع عددی از نوع double است که برابر لگاریم طبیعی عدد ورودی است (لگاریتم بر مبنای عدد e یا همان Ln).

تابع Round (گرد کردن) :
خروجی این تابع عددی از نوع double است که برابر نزدیکترین عدد صحیح به مقدار عدد ورودی است.

تابع Sgn (علامت) :
خروجی این تابع عددی از نوع صحیح است که نشان دهنده علامت عدد ورودی است.

تابع Sin (سینوس) :
خروجی این تابع عددی از نوع double است که برابر سینوس زاویه ورودی است.

تابع Sqr (جذر) :
خروجی این تابع عددی از نوع double است که برابر ریشه دوم یا جذر عدد ورودی است.

تابع Tan (تانژانت) :
خروجی این تابع عددی از نوع double است که برابر با تانژانت زاویه ورودی (برحسب رادیان) می‌باشد.

نکته: برای محاسبه توان nام یک عدد (n می توان صحیح یا اعشاری باشد) از اپراتور ^ استفاده نمائید. برای مثال:

2 ^ 5 = 32
9 ^ 0.5 = 3
4.2 ^ 3.7 = 202.31

کد:
ایجاد سایر توابع ریاضی که در ویژوال بیسیک 6 وجود ندارند :

جدول زیر چگونگی محاسبه سایر توابع ریاضی که در ویژوال بیسیک 6 وجود ندارند را نشان می‌دهد: 
تابع	
فرمول 

سکانت 	
Sec(X) = 1 / Cos(X) 

کسکانت 	
Cosec(X) = 1 / Sin(X) 

کتانژانت 	
Cotan(X) = 1 / Tan(X) 

آرک سینوس 	
Arcsin(X) = Atn(X / Sqr(1-X * X )) 

آرک کسینوس 	
Arccos(X) = Atn(-X / Sqr(1-X * X)) + 2 * Atn(1) 

آرک سکانت 	
Arcsec(X) = Atn(X / Sqr(X * X - 1)) + Sgn((X) -1) * (2 * Atn(1)) 

آرک کسکانت 	
Arccosec(X) = Atn(X / Sqr(X * X - 1)) + (Sgn(X) - 1) * (2 * Atn(1)) 

آرک کتانژانت 	
Arccotan(X) = Atn(X) + 2 * Atn(1) 

سیونس هیپربولیک 	
HSin(X) = (Exp(X) - Exp(-X)) / 2 

کسینوس هیپربولیک 	
HCos(X) = (Exp(X) + Exp(-X)) / 2 

تانژانت هیپربولیک 	
HTan(X) = (Exp(X) - Exp(-X)) / (Exp(X) + Exp(-X)) 

سکانت هیپربولیک 	
HSec(X) = 2 / (Exp(X) + Exp(-X)) 

کسکانت هیپربولیک 	
HCosec(X) = 2 / (Exp(X) - Exp(-X)) 

کتانژانت هیپربولیک 	
HCotan(X) = (Exp(X) + Exp(-X)) / (Exp(X) - Exp(-X)) 

آرک سینوس هیپربولیک 	
HArcsin(X) = Log(X + Sqr(X * X + 1)) 

آرک کسینوس هیپربولیک 	
HArccos(X) = Log(X + Sqr(X * X - 1)) 

آرک تانژانت هیپربولیک 	
HArctan(X) = Log((1 + X) / (1 - X)) / 2 

آرک سکانت هیپربولیک 	
HArcsec(X) = Log((Sqr(1-X * X) + 1) / X) 

آرک کسکانت هیپربولیک 	
HArccosec(X) = Log((Sgn(X) * Sqr(X * X + 1) +1) / X) 

آرک کتانژانت هیپربولیک 	
HArccotan(X) = Log((X + 1) / (X - 1)) / 2 

لگاریتم بر مبنای N 	
LogN(X) = Log(X) / Log(N)

برای استفاده از اعداد پی و e در برنامه‌های خود، ثوابت زیر را تعریف نمائید:

Const Pi = 3.14159265358979
Const e = 2.71828182845904

همچنین عدد پی را می‌توان به صورت زیر تعریف کرد:

Pi = 4 * Atn(1)

تبدیل رادیان به درجه

چون اکثر توابع مثلثاتی بر حسب رادیان کار می کنند گاهی اوقات نیاز داریم تا زوایا را از در جه به رادیان و بالعکس تبدیل کنیم. برای تبدیل یک زاویه بر حسب رادیان به درجه، آنرا در 180 ضرب کرده و سپس بر عدد پی تقسیم می‌کنیم:

Degree(x) = x * 180 / Pi

برای تبدیل یک زاویه بر حسب درجه به رادیان، آنرا در عدد پی ضرب کرده و سپس بر 180 تقسیم می‌کنیم:

Rad(x) = x * Pi / 180
 
آخرین ویرایش:

saalek110

Well-Known Member
من یک پروژه نوشتم چند روز پیش که 3 فرم داشت . با show شدن هر یک ( مثلا form2.show ) قبلی hide میشد. (مثلا form1.hide )
بعد پیش خودم گفتم اگر برنامه من در فرم 2 یا 3 باشد خوب فرم یا فرم های قبلی وجود دارند و اگر کاربر ضربدر گوشه فرم را بزند فرم های دیگه هنوز وجود دارند. هر چند که مخفی هستند. پس فکر کردم که باید با زدن ضربدر گوشه فرم از رویدادی استفاده کنم تا بقیه هم بسته شود.
من دیروز روی یک پروژه کار می کردم که 3 فرم داشت و با روشن شدن یکی قبلی
hide
میشد.مثلا:
form1.hide
بعد فکر کردم اگر مثلا فرم 2 را کسی ببنده یعنی ضربدر بالای فرم را بزنه بقیه فرم ها به شکل مخفی هنوز بازند.
یک سرچ کردم و کد زیر را پیدا کردم که با بسته شدن یک فرم بقیه فرم ها را هم می بندد فکر کنم.
خواستم ببینم این کار درسته. اگر مناسبه بزنم در آموزش ویژوال بیسیک.
کد:
Private Sub Form_Unload(Cancel As Integer)
Dim f As Form
For Each f In Forms
     Unload f
     Next
          End
End Sub

سلام
خوب هستيد
سالك جان شما وقتي دستور end رو بديد خود به خود تمام خافظه الوكيت شدو و ماشين مجازي از حافظه دي الكيت ميشه
در نتيجه اختياج به ان لود كردن همه فروم ها نيست

امبدوارم كمك كنه

سلام. و با تشکر فراوان. اگر میشه بیشتر توضیح بدهید.
یعنی این طور بنویسیم:
کد:
Private Sub Form_Unload(Cancel As Integer)

          End
End Sub

سلام
خوب هستيد
بله همين كد كاملا جواب مبده

به اميد ديدار

پس نتیجه این شد:
کد:
Private Sub Form_Unload(Cancel As Integer)

End

End Sub
 

saalek110

Well-Known Member
http://ps-ware.net/index.php?option=com_content&task=view&id=80&Itemid=47


آموزش گرافیک سه بعدي داخل ویژوال بیسیک با
OpenGl

یک pdf فارسی یک مگائی است. کمی از آن را خواندم . در قسمت کامپاننت ها ((وی بی اپن جی ال)) را فعال می کنید و ..... باید جالب باشه.


توضیحات سایت:
گر می‌خواهید گیم های سه بعدی و یا گرافیک سه بعدی رو داخل ویژوال بیسیک پیاده سازی کنید. OpenGL یکی از بهترین گزینه ها هستش. تو این کتاب آموزشی شیوه کار با OpenGL داخل ویژوال بیسیک 6 توضیح داده شده.برای ساخت محیطهای شبیه ساز سه بعدی و یا بازیهای سه بعدی در ویژوال بیسیک OpenGL سریعترین رابط نرم افزاری است که به شما به راحتی این قابلیت را می‌دهد. در این کتاب الکترونیکی شیوه کار با OpenGL آمده است.
 
آخرین ویرایش:

saalek110

Well-Known Member
در این پست کتابهایی را برای دانلود معرفی می کنم. بعضی از آنها را از هاردم در رپیدشیر آپلود می کنم و بعد چند ماه دیلت میشه. به این خاطر در cd خاصی اینها را رایت می کنم و اگر دیدید فایل دیلت شده با پیام خصوصی بگید تا دوباره آپلود کنم.

http://rapidshare.com/files/40617637/Programming_Distributed_Applications_with_COM_and_VB.rar.html

این کتاب از هر موضوعی 4 صفحه گفته ببینید .
چند صفحه اول کتاب را هم نقل می کنم.
کد:
Foreword

A guy walks into a bar and sees two well-dressed women in their mid-fifties talking to one another just within earshot. He hears one of the women saying, "What's your IQ? Mine is 155!" The other woman replies, "Really, mine is 149! How did you interpret the impact of Nelson's micro-economic theory on the development of post-Soviet Union Eastern Europe?" At this point, two men in athletic wear enter the bar in midconversation, catching the ear of our observer. The first man says, "I just had my IQ tested. I am a solid 115!" to which the second replies, "Excellent! My IQ was 108 last time I was tested. Say, who do you like for this Sunday's Giants/Dodgers game?" Not being a sports fanatic, the attention of our eavesdropper turns to two men in their late twenties sitting in a corner booth. He overhears the first man confess, "My IQ test results just came in. I only scored 63." Trying to console his friend, the second man replies, "Don't feel bad, my IQ is only 59. By the way, which is better: C++ or Visual Basic?"

VB is dead. Finally.

OK, so VB the tool is still alive. But VB as a derogatory label, a culture, an all-encompassing worldview, is dead as a doornail.

For me, the beginning of the end was the first edition of the book you are now reading. Prior to that point, VB was considered an absolute toy amongst most of my colleagues. Worse, VB users were considered to be the people not competent enough to get jobs in documentation, testing, or marketing. VB was often viewed as society's "safety net" that provided "workfare" for those who could not make it on their own as software developers.

And then came Ted's first book.

When developers asked me about good MTS programming books, I constantly found myself recommending Ted's book. At first, I apologized for the VB-related content in the book. "Just pencil in the semicolons if you need them," I would exclaim. However, I eventually grew tired of playing the role of "VB apologist" and decided to rethink my views. At that point, I came to the following realization:

We all are VB programmers in one way or another.

VB programmers are (correctly) portrayed as being blind to a set of issues many consider to be critical. If this is the litmus test for being a VB programmer, then Dim me As VBProgrammer. I care deeply about component integration, yet I am blind to T-SQL optimizations in SQL Server 7.0. My office mate just wrote a 400-page treatise on NT security, yet he couldn't tell you the difference between an unparsed general entity and an internal parameter entity if his life depended on it. In the information-overload world we live in as software developers, selective ignorance is the only way to survive.

Ted (unlike many writers, including myself) has embraced the selective ignorance chromosome that is present in all developers, not just those who have embraced the development tool that dares not speak its name. The first edition of this book demonstrated Ted's mastery of focusing the attention of the reader on the concepts that are important. Unlike the 800-page behemoths so common in this field, Ted's book was a digestible morsel of information that made the able developer more able to solve the problems at hand. This second edition brings Ted's story up to date with the current state of the practice in COM development and will be a valuable addition to the component software canon.

Don Box
Redondo Beach, California







Acknowledgments
First and foremost, I must acknowledge DevelopMentor. For any of you who are unfamiliar with this company, DevelopMentor focuses on training and education for developers building distributed systems. DevelopMentor is made up of the brightest and most enthusiastic group of computer scientists I have ever encountered—a peer group of the highest level of technical integrity. I consider myself extremely fortunate to have been part of this community for the last six years of my life. Many of the ideas, analogies, and recommendations in this book derive from a shared viewpoint and common base of knowledge that have grown out of the DevelopMentor community.

Many thanks to Mike Abercrombie, Lorrie Trussell, and everyone else who works at DevelopMentor. I am grateful for all your hard work building this rich and nourishing environment, which has given me so many opportunities. DevelopMentor has allowed me to exchange ideas with some of the industry's top researchers and to pursue my passion for cutting-edge technology.

I'd like to give a very special thanks to Don Box. I am especially indebted to Don for his guidance and advice on so many aspects of my career. His vision has been incredibly valuable in structuring the story this book tells. If it weren't for the questionable choices Don makes time after time when buying a laptop computer, I would consider him the smartest man in the software industry today.

I'd like to thank those subject experts who reviewed chapters and provided valuable feedback and constructive criticism. You have made this book considerably better and more accurate. I had lots of support from the different product groups within Microsoft. Thanks to Robert Green from the Visual Studio team for reviewing the first five chapters. Thanks to George Reilly from the IIS teams for reviewing the chapter on IIS and ASP. Thanks to Dick Dievendorff from the MSMQ team for reviewing my messaging chapter. A special thanks to Joe Long from the COM+ team for taking the time to answer countless questions I had when writing the chapters on the internals of COM+.

There were also many people at DevelopMentor who conducted valuable chapter reviews. Thanks to Bob Beauchemin and Jason Masterman for contributing their expertise in the areas of transaction processing and COM+ distributed services. Thanks to Tim Ewald for making excellent recommendations about architectural design issues and explaining how things work way down under. Thanks to Doug Tenure for giving me feedback on some of the earlier chapters on COM. Thanks to Keith Brown, Steve Rodgers, and Dan Sinclair for thoroughly reviewing my security chapter. Thanks to Aaron Skonnard for reviewing several chapters and making excellent suggestions about how to motivate and explain software development based on IIS, ASP, and XML. Thanks to my buddy Brian Randell for his research and his passionate views on the subject of component versioning. Chapter 5 is an adapted version of an article I coauthored with Brian for Microsoft Systems Journal. Don't tell anyone (especially Brian), but I think a few of the paragraphs in this chapter might even have been written by him.

DevelopMentor is a great place to work because it's full of legendary characters. Mike Woodring has rewritten the Island Hopper samples using nothing but assembly language. Calvin Caldwell once paused between steps in the ATL COM AppWizard to go out back (on his ranch) and deliver a baby calf. During an intensive week-long course, Dr. Joe Hummel led a cab ride of eager students into Hollywood in the early morning hours to provide a realistic simulation of what it's like to transmit packets across the Internet. And then there's this guy, Fred Wesley, who thinks so hard and so deep that none of us really understands a word he says. The joke about Fred is that he spends so much time contemplating and debating the theory of thought that he never gets around to the practice of thinking.

I also need to thank all my other peers at DevelopMentor including Niels Berglund, Henk de Koning, Jon Flanders, Martin Gudgin, Stuart Halloway, Justin Hoagland, Simon Horrell, Kevin Jones, Paul Kirby, John Lam, Brian Meso, Jose Mojica, Gus Molina, Brad E. Needham, Fritz Onion, Simon Perkins, Brent Rector, Dave Schmitt, George Shepherd, David Smallberg, Dan Weston, and Jason Whittington. All of you have contributed in one way or another to my overall understanding of computer science and software development.

Last but surely not least, I must give recognition to Chris Sells, the evil genius of DevelopMentor. Chris, more than any other individual, is responsible for my career direction. He's the one who ultimately led me down the path to writing about Visual Basic and COM. It was Chris's overly adequate explanations of casting away const, template specialization, and functor objects that convinced me that I would never find happiness as a C ++ programmer.

I'd like to thank everyone I have worked with at Fawcette Technical Publications. Thanks to all the hardworking people who put the VBITs conferences together, including Tena Carter, Janet Nickels, Robert Scoble, Maryam Ghaemmaghami, Jennifer Brucker, and Diamond Jim Fawcette.

Thanks to Joshua Trupin and Joseph Flanigen for publishing my articles in MSDN Magazine, Microsoft Systems Journal, and MIND. I'd also like to thank the other people at these publications who helped me get my words into print, including Joanne Steinhart, Terry Dorsey, Etna Novik, Joan Levinson, and Michael Longacre.

I would like to thank Claudette Moore and Debbie McKenna at the Moore Literary Agency for their support and assistance. Thanks especially to Claire Horne for helping me create and shop the proposal for the first edition of this book.

I am especially appreciative of all the people at Microsoft Press for helping me put this book together. This includes my acquisitions editor, Ben Ryan, and a very talented editing and production team. Many thanks to Kathleen Atkins for doing an excellent job as lead editor and project manager. Thanks, too, to Sally Stickney for her contributions editing the manuscript. I was also very lucky to have Ina Chang as the manuscript editor and Steve Perry as the technical editor. I hope to work with all of them again in the future.

Finally, I would like to thank the attorneys who work for Microsoft. In retrospect, I am very grateful that you made me spell out "Visual Basic" at every possible occasion instead of allowing me to use the friendly two-letter abbreviation that we all use when referring to our beloved development tool. You have undoubtedly added at least 10 pages to this text and you have, therefore, increased the perceived value of my book to the casual observer looking through the shelves at her local bookstore.








Who Is This Book For?
I believe that a thorough knowledge of COM and COM+ is a prerequisite to building multitier applications with Windows 2000. From my perspective, there's no way you can build scalable applications without a solid understanding of the infrastructure that supports the applications. To that end, the purpose of this book is to explain the critical parts of COM+ and Windows 2000 that affect the way you design and write components for a distributed application.

This book is for intermediate and advanced Visual Basic programmers who want to develop for COM+ and Windows 2000. The book focuses on the architecture of the Windows platform. To this extent, it can also serve as a resource for ASP and C++ developers. Some readers might be new to COM. Other readers might already have experience with COM and Microsoft Transaction Server (MTS). My goal in this edition is to accommodate both kinds of readers.

Over the past five years, I've thought long and hard about how to craft a story that includes just the right amount of detail. Some technical details are critical. Other technical details are esoteric, and absorbing them would waste your mental bandwidth. I've tried to cover what's important and omit what's not. I wanted to cover a lot of territory while keeping the text as concise as possible. While I make a point of avoiding unnecessary complexity, I also reserve the right to dive into low-level details in places where I think it's appropriate.

Many Visual Basic programmers don't have the motivation or aptitude to learn about COM and COM+ at this level. Visual Basic can extend a modest amount of the platform's functionality to these programmers without their needing any knowledge of the underlying technology, but they won't be able to create large information systems with COM+, IIS, ASP, and MSMQ. This book is most definitely not for them.

For Readers Already Familiar with the First Edition
I've always hated buying the second edition of a technical book just to find out that it had a new cover and the same old text. One of my main goals with the second edition has been to create something that adds value for those who have read the first edition. Over 75 percent of the text for this book is newly written for the second edition.

I have restructured my coverage of the fundamentals of classic COM and placed them as early in the book as possible. Chapter 2, which covers interface-based programming, is the one chapter that's basically the same in both editions. I've condensed the fundamentals of COM that were spread across several chapters in the first edition into Chapter 3 of this edition. Chapter 4 and Chapter 5 describe using Visual Basic to create and version components. The material in these chapters has been enhanced from the first edition with new coverage of building custom type libraries with IDL and designing components for scripting clients. For programmers who are already comfortable with COM and MTS, Chapters 2 through 5 can serve as a quick review or as a reference.

Chapter 6 and Chapter 7 cover the architecture of the COM+ runtime environment. The aim is to teach you how to write configured components that take advantage of the runtime services and thread pooling offered by COM+. Chapter 8 on transactions introduces new material that compares local transactions to distributed transactions. Chapter 9 includes new and essential coverage of IIS and ASP. Chapter 10 on messaging has coverage of MSMQ similar to the first edition, but it also adds new material about the Queued Components Service and COM+ Events. Chapter 11 is a security chapter recently written from the ground up. (I hope it isn't as painful for you to read as it was for me to write.) Chapter 12 covers application design issues that affect scalability and performance.

What Experience Do You Need?
I assume that you have a background that includes object-oriented programming and creating applications that use classes. It doesn't matter whether you learned about classes using Visual Basic, C++, or Java. It's just important that you understand why you would design a class using encapsulation and that you understand the relationship between a class and an object.

It's helpful but not essential that you have some experience in computer science or a low-level language such as C. It would be impossible for me to tell you about COM without talking about things such as pointers, memory addresses, stack frames, and threads. If you don't have this background, please take the time to contemplate what's going on at a lower level. Occasionally your temples might begin to throb. But the time and effort you invest will be more than worthwhile.

Most readers of this book will have done some work in database programming. It's hard to imagine that an intermediate Visual Basic programmer could have gotten by without having worked on at least one database-oriented application. When I describe writing transactions for COM+ objects, I assume that you have a moderate comfort level with ActiveX Data Objects (ADO) and Structured Query Language (SQL). If you don't have this background, you should acquire it on your own. The ADO and SQL code presented in this book isn't overly complicated.

In the chapter on IIS and ASP, I assume you know the basics of using HTML and creating simple ASP pages. Given the background of most readers and the availability of quality reference material on ASP, I didn't see much point in covering those details.

What's Not in This Book
This book doesn't contain many step-by-step instructions. Therefore, this book won't appeal to those who just want to know what to do but don't care why. Throughout the book, I refer you to MSDN to get the details concerning such practices as using the administrative tools for COM+ or IIS. I don't think these are areas in which most programmers need assistance. My goal is to build your understanding of the theory behind the software.

I don't tell you much about how to automate COM+ or IIS administration through scripting or custom administrative applications. While both COM+ and IIS provide rich object models for automating administrative chores, I don't spend much time on it. I cover a little bit of these topics here and there, but I expect you to learn the details through the documentation in MSDN and the Platform SDK.

If you're looking for a book with a great big sample application that you can use as a starting point, this isn't the right book for you. Most of my code listings are short, between 5 and 10 lines. When I present a code listing, I always try to do it in as few lines as possible to focus your attention on a particular point. I omit extraneous things such as error handling. For this reason, my style doesn't lend itself to those who are looking to blindly copy-and-paste my samples into production code. When it comes to presenting code, my goal is to teach you to fish as opposed to simply giving you fish.

نمی دونم بگم دانلود بکنید یا نکنید. بسته به خودتون داره.
 

saalek110

Well-Known Member
هزار سورس ویژوال بیسیک
حجم 65 مگا. از امول گرفتم.
لینک دانلود:
http://rapidshare.com/files/40844932/1000s_of_Visual_Basic_Source_Code_examples.zip.html

a5.gif

انگار دو پوشه بزرگه و بقیه کوچکند. با توجه به عکس زیر:
http://saalek110.250free.com/gifs2/a4/a6.gif
هر کس هر پوشه را خواست با پیام خصوصی بگه تا آپلود کنم(لینکش را در همین پست می گذارم).

===========================
http://vcheck.emule-project.net/en/download.php?language=1033
این هم لینک دانلود امول.
نرم افزاری مثل یاهو مسنجره ولی برای دانلود از کامپیوتر همدیگر.
خوبیش اینه که هر وقت برنامه را می بندی بعدا که باز می کنی خودش ادامه کار را می گیرد.چیزهای نایاب و برنامه های کرک شده(بطور خلاصه هر چی بخوای(قدیمی یا جدید) ) را میشه سریع پیدا کرد.

===========================

یک تاپیک زدم به نام :
1000 سورس ویژوال بیسیک
برای بررسی این سورسها و سورسهای دیگر.

===========================
1000 سورس ویژوال بیسیک......
دو تااز پوشه ها سنگین بود که منها کردم و بقیه را با حجم 20 مگا دوباره آپلود کردم:
این دو پوشه عبارتند از :
VB6 and Media
VB6 and ASP

http://rapidshare.com/files/41375948/1000source_menhaye_2_posheh.rar.html
 
آخرین ویرایش:
سوال در مورد Vb

سلام دوستان
من ميخوام تو يه تکيت باکي وقتي رو کليد enter کليک ميکنيم يه کاري رو انجام بده
نميدونم تو رويداد key down چي باسد بنويسم يا key code کليد اينتر چيه؟
اگه کمکم کنين ممنون مي شم.
 

uu99

Member
کار با کلیپ بورد در ویژوال بیسیک

سلامآقا
لطف کنید به من بگویید در ویژوال بیسیک 6 چطوری میتونم برنامه ای بنویسم که وقتی روی یک دکمه کلیک میکنم یک متن خاص در کلیپبورد ویندوز قرار بگیره که بشه اونودر محیطی دیگر Paste کرد. با تشکر فراوان

867skz9.gif
 
آخرین ویرایش:

the_king

مدیرکل انجمن
وقتی شما یک دکمه به نام Command1 دارید و روی آن کلیک می کنید این رخداد اجرا میشه :
کد:
Private Sub Command1_Click()

End Sub

درسته؟ خب کافیه این دو سطر دستور را در آن اضافه کنید :
کد:
    Clipboard.Clear
    Clipboard.SetText "Hello"
در این مثالی که زدم سطر اول محتویات Clipboard را پاک می کنه، و سطر دوم عبارت "Hello" را ذخیره می کنه.
پاک کردن محتویات Clipboard قبل از نوشتن مجدد در آن یک عمل اضافی است ولی من اکیدا توصیه می کنم.

حالا فرض کنیم که شما یک TextBox هم به فرم خودتان اضافه کردید به نام Text1 و قرار است با کلیک کردن
روی دکمه، محتویات Text1 را به حافظه Clipboard کپی کند :
کد:
Private Sub Command1_Click()
    Clipboard.Clear
    Clipboard.SetText Text1.Text
End Sub
 

the_king

مدیرکل انجمن
مبدل تاریخ سه تقویم در ویژوال بیسیک 6

کلاس تبدیل تاریخ سه تقویم میلادی، هجری شمسی و هجری قمری
( توجه : تقویم قمری به دلایل تاثیرات جوی و منطقه ای و شرعی از دقت مناسبی برخوردار نیست).
متن های این برنامه در سیستم Unicode و بصورت Resource به پروژه پیوست خورده اند.

کلاس مبدل تاریخ به همراه یک برنامه که از کلاس استفاده می کند و فایل اجرایی exe برنامه ضمیمه این پست شده است.
 

پیوست ها

  • Preview.gif
    Preview.gif
    6.3 کیلوبایت · بازدیدها: 34
  • DateConvertor.zip
    22.8 کیلوبایت · بازدیدها: 182

i_lover3000

Member
از کار انداختن کلید های ctrl , alt و win در ویژوال بیسیک

سلام

کسی میدونه چطوری میشه کلید های ctrl , alt و win رو از روی صفحه کلید بی اثر کرد طوری که اصلاً کار نکنن
در وی بی 6

با تشکر ...
 

the_king

مدیرکل انجمن
توی تالار دانشگاه ما قبلا یکی از کاربران پرسیده بود که چطور اجازه خروج کاربر رو از پنجره برنامه رو بگیریم.
من برنامه کاملی برای اون کاربر نوشته بودم که البته شامل End Task و کلیک ماوس روی سایر فرم ها هم می شد.
و چون کلید های Alt+Tab و Alt+ESC و Alt+F4 و Ctrl+ESC و هر ترکیب دکمه لوگوی ویندوز هم شامل میشه
با موضوع سوال شما همخونی داره.

تابع LockKeyboard یک یا چندین ترکیب دکمه را غیر فعال می کند.
تابع LockMouse نشانگر ماوس را روی فرم مورد نظر قفل می کند.
تابع AntiTaskManager دو روتین را برای عدم امکان End Task بکار می گیرد.
تابع ShowForm یک فرم را در بالاترین سطح ممکن قرار می دهد تا زیر
هیچ فرم دیگری نرود.
تابع IsWindowActive چک می کند که آیا فرم مورد نظر هم اکنون فعال است یا نه.
تابع ActiveWindow فرم مورد نظر را فعال می کند.

فرم برنامه دو زبانه است (فارسی - انگلیسی)
هر کدام از محدودیت ها را می توانید به راحتی با برداشتن تیک سمت چپ عنوان ها غیر فعال کنید.
توابع برنامه هم چنین قابلیتی را ارائه می دهند که هر پارامتری را فعال یا غیر فعال کنند.

من عین اون برنامه رو برای شما پیوست می کنم، می توانید با ویرایش کردن آن، هر ترکیب کلیدی دیگه رو هم
اضافه کنید.
شما می توانید با توجه به سوالتان از تابع LockKeyboard به بهترین شکل ممکن استفاده کنید.
فقط فراموش نکنید که قبل از خروج از برنامه، بایستی تمام محدودیت های فعال شده را غیر فعال کنید، چون
دیگر پروسه ای که توابع در آن قرار داشتند از حافظه خارج شده است.
 

پیوست ها

  • LockForm.zip
    28.9 کیلوبایت · بازدیدها: 64

akbaro

Member
با سلام . من یک برنامه انبار داری با vb6 ساختم و میخواهم آنرا اجرایی کنم یعنی یک فایل istall براش درست کنم که کاربری که vb رو کامپیوترش نصب نیست بتونه اون رو اجرا کنه یعنی یه نرم افزار نصب شونده می خوام . اگه میشه بهم ایمیل بزنید
[email protected]
 
وضعیت
موضوع بسته شده است.

جدیدترین ارسال ها

بالا