Hello everyone, I decided to post this code snippet in my blog because I could not find it anywhere else! This is something super simple, yet not obvious because everyone skirts around the actual problem. Let me break this down and get started for you.
You have TONS of windows generated from your project, yet you give the user the option to rename the forms. How do you select and bring a user-created form to the top so they don’t have to dig through everything?
Dim frm As Form = My.Application.OpenForms.Item(cmbTimers.SelectedIndex + 1)
frm.TopMost = True
frm.TopMost = False
Let me explain a little on how to implement this code. First, we have to create a new variable to store the form we are looking for. In my code example, I am searching for the name of a timer (renamed by the user) using a combo box. I populate the combo box and keep it updated when the user changes the name of their form, so this makes searching easier. You can use list boxes, arrays, etc. to store the form names for later use.
My.Application.OpenForms.Item(INDEX) gives us the chance to search the forms created in a specific order. So, every time a form is created, make sure you are storing the name somewhere in the list that you have. frm.TopMost = True makes the form come to the front, and frm.TopMost = False makes sure the form does not ALWAYS stay on top.
But, Josh, why would you post this on the internet? It seems so useless and easy! My answer to that is, I had to create this because I could NOT find this anywhere else on the internet after hours of searching. I had to search the documentation, and NO ONE, I repeat, NO ONE wants to do that. Enjoy!
Why do I want to become a game designer?
Playing video games became a rarity for me growing up in a strict household. I could play video games once a day for one hour. You may think I was a deprived child without video games, and I was very deprived! Limited game time never stopped me from becoming creative. While in the 5th grade, I finished all of my work early in art class so I could work on a board game I created called, The Plague. When I finished the board game, eight people from the class joined me on my adventure to test the game. Everyone who played loved the game, and everyone who did not play, wished they had! My drive to become a video game designer comes from my strong passion of creation and design. Growing up without video games always at hand made me want to create my own games out of anything and everything!
|Good ‘ole me!|
My concerns as an upcoming and aspiring game designer lie within the current world of entertainment as a whole. I keep thinking to myself about how video games are at a stand-still with their design, and the whole idea that the art of games are dying scares me. So, I take a step back and realize that is what the gaming companies want us to think as players. They release the same game over and over until they squeeze enough money from people to fund their next big hit. No longer am I a fool to the trap as I come through college courses; I learn more each day about life and find new ways to apply the art of gaming to life. Possibilities are limitless when you look outside the box.
Speaking of standing outside the box to think about new possible games, I took the initiative to stand myself apart from most students my age. Do you remember that board game I created back in 5th grade? Well, the board game was only the beginning of my adventures in game creation. From there, I went on to learning various game creation tools and developed the computer skills to create digital games on the computer. Each day I learn something new that I can apply to my career path, and I strive to learn the different aspects of video game creation through creating my own video games. Although most of my titles never make it past the creation stage, I still learn from each project and gain wisdom on what to do and what not to do while creating video games.
Aside from all of the experience and fun I have in creating video games, I still have a difficult time getting passed the stress it creates while trying to complete a video game. I do not like making excuses to why I do not finish my games but a lot of the reason comes from lack of time. When you are a 1-man team creating a video game, you need to think of all the assets you need to create, and most people are NOT all artists, programmers, and designers at the same time. Fortunately, I have skills from each pillar. At times, these skills are dangerous because I can get my ideas out. Other times, I can only get the idea out and never create a working product. I look forward to breaking into the industry and following my dreams day-by-day as a game designer all the way to owning my own educational and casual video game company!
I found an old story I wrote back in 2008! I thought I would share it with anyone who would like to read it.
Shifter: The Beginning
It was a medieval time of peace where man and creature could live in harmony together where there was no war, and times were evolving with the knowledge of mankind. This was a great time to be living in 2052; everything around the civilians was forests, and large, beautiful mountains. Animals roamed freely without the worry of humans trying to kill them. All animals were able to talk to the humans; they have developed the tongue of the human, and had the ability to move their mouths to form words of the English language. Everything was perfect until one man named, Heath, at the age of 27, decided test his abilities in engineering. Heath decided that he would invent a machine that could send humans back to the past, just so he could see what the past was really like.
What was all the talk about society and cultural stuff? Well, let me share with you what I have been working on this past week.
The Budin Culture
by Joshua Long
Chapter 1: Beliefs
Chapter 2: Religion
Chapter 3: Social Structure
Chapter 4: Leadership
Chapter 5: Military Structure
Chapter 6: Political Views
Chapter 7: Production
Chapter 8: Consumption
Chapter 9: Money and Markets
Chapter 10: Holidays