vb.net 2010 Windows Pro 7 ## Create a Video Library with an Embedded Windows Media Player ## I have close to 400 video clips in my home movie library. In order to quickly locate any given video I have added certain words into the file names. Even so, locating specific files is clumsy from the Explorer window and playing a clip requires starting an external application and flipping back and forth between Explorer and the media player. That's why I decided to embed the media player directly in the application. Given a choice, I would have preferred to embed [vlc …

Member Avatar
Member Avatar
+1 forum 8

Yes, you've been told it's dead, gone and to move off this old beast of a system from 1998 but here you are, tasked with fixing an old legacy app so let me share that I've been there and how I got around some of the issues. These are: 1. Install issues on Windows 10. 2. A workaround to code that seemed fine but failed. 3. What may never work again. # Installing VB6 # Installing Visual Studio 6.0 from 1998 is a challenge. Be sure to have your media ready and if need be, print out the instructions so …

Member Avatar
Member Avatar
+1 forum 3

Hi guys! i think this is usefull, a lot of the users have problems with .Net Framework installation, Error code: HRESULT 0xc8000222 Do these to solve: a: Click Start > Run. b: Type cmd and press Enter. Please run the following command in the opened window. net stop WuAuServ c: Click Start > Run Type %windir% and press Enter. d: In the opened folder, rename the folder SoftwareDistribution to SDold. e: Click Start> Run type cmd and press Enter. Please run the following command in the opened window.. net start WuAuServ Hope this information helps.

Member Avatar
+0 forum 0

What has Schrodinger got to do with the complex and paradoxical concept of quantum computing? The answer is that both Erwin and his hypothetical cat relate directly to this subatomic world. In fact, Schrodinger is often referred to as the father of quantum mechanics. ## Erwin who? ## [Erwin Schrodinger](https://en.wikipedia.org/wiki/Erwin_Schr%C3%B6dinger) was an Austrian theoretical physicist, awarded a Nobel Prize way back in 1933 for his work with Paul Adrien Maurice Dirac regarding the discovery of 'new productive forms of atomic theory.' Two years later, Schrodinger proposed an experiment whereby a hypothetical cat and a radioactive sample are sealed within a …

Member Avatar
Member Avatar
+4 forum 3

Last night, a friend mentioned to me that one day he was trying to fetch a random 5 rows from a MySQL database. He researched online, and was eventually presented with a working solution in which he would generate five random numbers. Then, he would query the database for items whose ID number matched the numbers. If an item didn't exist (because it had been deleted, etc.) then he would randomly generate a different number and fetch again. He would continuously do this in a loop until he had five unique rows fetched from the database. I was caught off …

Member Avatar
Member Avatar
+4 forum 5

Have you ever wanted to develop a math parser and evaluator? Are you in such a quandary or just have curiosity or interest in the matter? If so, you may download the complete source version 8.3.48 or later, but be warned there is almost no comment; or instead, follow versions v8.4.x which will be more digest and, of course, all the source code for each new v8.4.x will be there, if you wish, to download. Currently, v8.4.0 does simple arithmetic but contains the main classes and algorithms that hold all the rest. Version 8.4.0 has been developed entirely under MS …

Member Avatar
Member Avatar
+0 forum 22

**Introduction** Today we are going to go over the very basics of web design and getting it right. I see a lot of web developers who say they are programmers but not designers (although sometimes I wonder even this.) However, this shouldn't mean you can't get the very basics of design right. UX is a field of its own and it is carefully thought out, designs following a visual hierarchy, typography that is consisent. This all helps to keep users visiting your site and what's more coming back. So pay attention kids, class is in progress! **Typography** OK this is …

Member Avatar
Member Avatar
+5 forum 7

Making sites is nice and fun but what if you don't want everybody too see something like an admin panel or maybe a special button. Well this tutorial helps you understand how to add a password to a php site in a simple manner. There are two techniques you can use. One is to use a database which allows you to have a group of users who may access the site. Another technique is to have pre defined variables that check if the values match the value of the variable. In this tutorial you will get to know the basics …

Member Avatar
Member Avatar
+5 forum 6

Sometimes there are functions you want your program to perform in the background while you are busy doing other things. For example, if you are building a picture viewer application you may not want to wait until thumbnails are generated before getting on with the business of viewing the pictures. If you have ever used the [FastStone Image Viewer](http://www.faststone.org/FSViewerDetail.htm) you will have noticed the progress bar at the bottom of the screen when browsing to a new folder. That bar shows the progress of a background thread which is busy scanning the current folder. If you try to change the …

Member Avatar
Member Avatar
+3 forum 2

# MySQL Stored Routines: Another Useful Scenario # [In a past guide](http://blog.bobbyhensley.com/sql-procedures-functions-authentication-example/) I discussed MySQL stored routines within MySQL. Now I’m back with another guide on MySQL stored routines. And this time it’s a more concrete case; one that you may run into yourself in the future (or maybe you already have)! Let’s jump right on, shall we? ## The scenario… ## You’re implementing a comments system to your application. Users will be able to comment on articles you and your staff post. A concern arises: **explicit comments**. It’s something all web developers have to deal with: people being crude …

Member Avatar
Member Avatar
+2 forum 1

This is a continuation of our basic tutorial on MVC Framework. In this section, we will be creating the template files for both the TBS and the Smarty template engines. **The recap** In [part one](http://www.daniweb.com/web-development/php/tutorials/476695/part-one-php-mvc-framework-understanding-the-basics), we have created application controllers, models, and the one and only lone View class. Once again, please allow me to present few segments of those Classes here. **Main Controller** We will use this as our example. All of our application controllers have the method called index(). If we can recall from part one, we made the parent controller as an abstract class with an abstract …

Member Avatar
Member Avatar
+3 forum 9

Although objects collections have a place in the PHP world many years now , their use is now flourishing because more and more PHP programmers turn to OOP. This tutorial is a sequel of https://www.daniweb.com/programming/web-development/tutorials/500118/a-simple-data-layer-for-oop-php-applications (we will refer to it as “previous tutorial”) and https://www.daniweb.com/programming/web-development/tutorials/500118/a-simple-data-layer-for-oop-php-applications , in order to understand what we are doing I would strongly recommend to read those (and even better to make your own tests). Keeping objects of the same class in an array , in PHP isn't something new. We will do a brief explanation of what we will do using arrays , that most …

Member Avatar
Member Avatar
+2 forum 1

Hello, This tutorial is the next of “[A simple Data Layer for OOP PHP Applications](https://www.daniweb.com/programming/web-development/tutorials/500118/a-simple-data-layer-for-oop-php-applications)” so having read it and made your own tests is needed to understanding what we are doing. So far we have a Db object (child of PDO that standardize and simplifies its use) , a Db factory object (because our web app may need more than one DB object) and Data Workers (for working with data from DB) (there are in the tutorial mentioned above) . We are going to do it in such way that can be implemented without the use of any framework …

Member Avatar
Member Avatar
+4 forum 1

A simple Data Layer for OOP PHP Applications Hello, first of all to understand this tutorial would be best if you have some knowledges about OOP ( https://www.daniweb.com/programming/web-development/tutorials/437592/introduction-to-phps-object-orientation by priteas ) and DB usage (MySQL in this case) with PHP https://www.daniweb.com/programming/web-development/threads/499320/common-issues-with-mysql-and-php by diafol ). What we will try to achieve is a consistent usage of the DB (we will use MySQL but you can use what ever DB you like). We will not map query results in objects / lists of objects in this tutorial (there will be another one that will contain that) , but just retrieve the results …

Member Avatar
Member Avatar
+4 forum 1

## Contents ## Overview 1. Alternatives to Deprecated mysql_* Functions 2. SQL Injection: What to do with $_POST and $_GET variables 3. How to Insert Tablenames and Fieldnames Properly 4. What to do With Dynamic Values? 5. How to Use Aggregate Functions (COUNT, SUM, MIN etc) 6. How to Paginate and Create Page Number Links? 7. How do I Store Files: Filenames or BLOB? 8. Splitting the Big Table: Normalization 9. How to Get Data From More Than One Table 10. How to Store Menus and Submenus 11. Storing and Retrieving Authentication Data References and Further Reading _______________________________________________________________________________________________ ## Overview …

Member Avatar
Member Avatar
+6 forum 6

Note: In Python 2.7 use: `from __future__ import print_function` to use examples. In Python, by default, the key and value pairs in a dictionary are stored as hashes, therefore dictionaries do not retain the order in which values were added, and cannot be ordered. v_Dict ={} v_Dict["First"] = 99 v_Dict["Second"] = 45 v_Dict["Third"] = 234 print(v_Dict) ## {'Second': 45, 'Third': 234, 'First': 99} No order at all. To maintain an ordered dictionary one must use the collection module's "OrderedDict()." Normally one would declare a dictionary to be ordered like so: from collections import OrderedDict v_Dict = OrderedDict() v_Dict["First"] = 99 …

Member Avatar
Member Avatar
+1 forum 3

PHP is an object-oriented language, based (loosly) upon C++. It has classes, methods, member variables, and all that other good stuff. It runs on your web server, not in the client, but the HTML, JavaScript, and other stuff such as CSS blocks that it emits with its output commands are run on the client. The purpose of this tutorial is to explain why you don't want to mix your PHP and HTML, JavaScript, etc. One reason is if you do that, it becomes pretty much impossible to debug. Another is that is it inefficient. 1. Use classes and methods to …

Member Avatar
Member Avatar
+3 forum 14

User input/output is a key component in the programs you write, yet most online tutorials just provide a quick-and-dirty method of grabbing data. In other words, it works right up until the point the user does something unexpected. In this tutorial you will learn how to avoid the common mistakes by doing it properly. Take this typical method that tutorials use to teach user input: [code=cplusplus] int number; cin >> number; cout << "You typed the number " << number << ".\n";[/code] Now let's say you want the user to enter a string that contains a space in it. Since …

Member Avatar
Member Avatar
+11 forum 25

!USING PYTHON 3.1! Hello DaniWeb! Today I'm going to teach you a cool variable trick that I learned. So here's an example: [CODE] a, b, c = input('?x?x?: ').split('x') [/CODE] Now let's input something like: [CODE] >>> a, b, c = input('?x?x?: ').split('x') ?x?x?: 1x2x3 [/CODE] Now, variable 'a' is set to 1, variable 'b' is set to 2, variable 'c' is set to 3. I hope I explained that well enough. It can be used in various sections. NOTE: Because you used 3 variables, you [B]have[/B] to have three answers divided by the character you split with. If you …

Member Avatar
Member Avatar
+6 forum 11

Recently I've stumbled on a nice tool that I really quite like, so I thought I'd share it: Personally, I love the power behind PHP. I find it a very simple to use yet possesses the techniques seen in the more complex desktop applications such as Perl/Python/C/C++/C# etc. PHP has always been restricted to server-side web applications, and unlike the others, cannot run as a desktop application – until now. I would like to share an awesome tool I’ve been using recently… [PHP Nightrain](http://www.naetech.com/php-nightrain) is a cool bit of kit: it fully supports popular frameworks such as Laravel and CakePHP, …

Member Avatar
Member Avatar
+7 forum 5

This tutorial is intended for people who are looking for alternative to PHP template engines like smarty, twig, dwoo, TBS, and others. Not all developers are willing to take the extra efforts needed to learn the template engine syntax. Some are just left behind thinking that PHP is a template engine itself and there is no need for another template engine. Regardless of what you think about PHP, it has been proven that PHP can be written in procedural, OOP, CLI interface, and spaghetti style .In this particular tutorial, I will be demonstrating how to use PHP effectively as a …

Member Avatar
Member Avatar
+7 forum 3

# SEO URL Redirection Basics: TUTORIAL # First you can see/get/use some code here. <?php /** * Redirect the visitor to another URL using a proper status code. * * @param string $URL * @param int $StatusCode * @copyright Claude "CodeAngry" Adrian * @license http://www.wtfpl.net/ */ function RedirectURL($URL = null, $StatusCode = 302){ // Validate arguments if(empty($URL)){ $URL = $_SERVER['REQUEST_URI']; } if(!is_string($URL) or !strlen($URL = trim($URL))){ throw new \InvalidArgumentException('$URL must be a non-empty trimmed string.'); } if(empty($StatusCode)){ $StatusCode = 302; } if(!is_numeric($StatusCode) or (intval(($StatusCode = intval($StatusCode)) / 100) != 3)){ throw new \InvalidArgumentException('$StatusCode must be a 3## HTTP status.'); } …

Member Avatar
Member Avatar
+0 forum 2

[ATTACH=RIGHT]20145[/ATTACH][B]Building your first DYNAMIC Database application. This is Part One of a four part tutorial on how to install and use your database, Part Two will teach you how to build successful connections and Part Three will teach you how to build database interaction and management of your databases.[/B] There are tons of questions here on VB6 on how to connect to a database, how to add, delete, edit, search data within your database tables etc. This tutorial has been created to serve as a learning curve or to add more knowledge to your current code writing skills. This tutorial …

Member Avatar
Member Avatar
+1 forum 14

**Modifications Required for VB6 Applications to Work on Vista/7** Thanks to Hassan Basri in VBForums **Application Changes** - Remove SendKeys calls and replace them with API code. - Use the HKEY_CURRENT_USER in the registry for the settings of your application. - Do not write to HKEY_LOCAL_MACHINE. - If you are using ADO use 2.8 and above in your application. - If you are using XML use XML version 3.0 and above in your application - If you are using the PlaySound API, if your wave files are not PCM but mpeg layer-3 make sure your mpeg wave files are Stereo …

Member Avatar
Member Avatar
+2 forum 9

Wouldn't it be nice to have a sizable command button in VB6? Face it. In the hidden recesses of your mind you have always wanted to be able to resize that command button in VB6--after the program is running that is. It's just that VB6 has not provided you with a control you could just drop, double click, or paste onto your form that allows you that capability. Well, this tutorial should show you how to have your own sizable command button. You can resize it. And that's cool, But you'll have to do further modifications, if you want to …

Member Avatar
Member Avatar
+1 forum 1

Oh No, not another LockBits demo. Well hopefully this demo may also give you a little in site into actually playing with, and calculating some simple effects as well as understanding the advantages of LockBits as apposed to GetPixel and SetPixel. # A Useful Note. # It is important to note that using LockBits is only effective beyond a certain point. Bench tests show that if you manipulate below roughly 60 to 70 pixels in one go, you are in fact better off using GetPixel and SetPixel. Why? Well basically the time allowed for locking bits and unlocking bits, as …

Member Avatar
Member Avatar
+5 forum 4

I will be showing how to pass data between two forms in VB .NET. I will be using two forms, two classes which we will define, a delegate, an event, and an event handler. It is my first tutorial and is a bit long because I wanted to make it easy to follow. If you want to skip the explanation and just see the code, scroll down to "The short version:" Here is what I will be using: * A form named: MainFrm * A form named: ChildFrm * A class named: ScheduleInfo * A class named: ValueUpdatedEventsArgs An instance …

Member Avatar
Member Avatar
+4 forum 8

# Introduction # A recurring problem many newcomers face when tackling C++ is the compilation process, from sources to binaries. This tutorial will detail that process. It will be especially useful for people only familiar with higher-level languages (if any), but veterans of one or more native languages (C, Fortran, C++, D, etc.) might still learn a thing or two. And to that point, I would also mention that conceptually, most of this tutorial applies to any native, compiled language. For widest applicability, this tutorial will feature GNU tools (GCC) used in a Unix-like environment (POSIX). For Mac OSX, the …

Member Avatar
Member Avatar
+11 forum 2

# Performing Selective Includes in Entity Framework with the Fluent API # When we are using Entity Framework as our data access choice to work with SQL Server then there are some potential pitfalls. One of these pitfalls is doing selective includes. What do I mean by selective includes? To answer that let's first look at our class and database model. Lets suppose we have some customers and some invoices in our application. Our database schema and model classes could look like this: ![schema.png](/attachments/large/2/3ddde68520a7f7732b4b56cb8ef47c59.png "align-center") And we may have data like this: ![data.png](/attachments/large/2/1112ce0ee2ae9e0e575964c99e8e3e41.png "align-center") Now suppose we wanted to select …

Member Avatar
+1 forum 0

Yesterday i completed my exercises on loop , that's why today i've decided to create a tutorial on loop in c++. # Loop # loop allows us to repeat a statement or a group of statements. When we want to repeat a single statement then it is not necessary to put curly braces But if we want to repeat a group of statements then it must be enclosed with curly braces. And it is a good practise to enclosed your loop body with curly braces. c++ has three loop control structures while loop do-while loop for loop # while loop …

Member Avatar
Member Avatar
+7 forum 15

The End.