VB 2010 Module's - Put All Graphic Things In?

Jun 10, 2011

im making a game in vb 2010. but im new to 2010 so i dont know how it works (because i used 6.0 before).I have a form, where the graphics should be drawn on. "frmMainGame".I have a module where I want to put all Graphic things in.so I have in my module Graphics.vb [code].....

now I have a button what calls the sub "Call DrawPlayerCoordinates()".but now it gives an error because it don't know where to draw the string. So how do the code above know it should draw it on "frmMainGame" and not in a module what isn't possible?

View 5 Replies


ADVERTISEMENT

Making Different Things Happen Depending On If Things Have Been Set?

Jun 17, 2012

If NewEntryName.Text = "" And OpenFileDialog1.FileName = Nothing Then MsgBox("Please choose a name for your game.", vbExclamation) MsgBox("Please find your game.", vbExclamation) Else Button1.Text = NewEntryName.Text

[code].....

View 1 Replies

VS 2010 Funniest Things Create In Visual Basic 2010?

Nov 6, 2011

Dont be afraid to spam the thread with things you can create.The more the better!

View 2 Replies

[VS 2010] Call A Module Into Another Module?

Apr 27, 2012

I have a VB.Net interface that communicates with an Access 2k3 Database using this module:

Module MOD_ENGINE
'Declare Database connections controls
Dim con As New OleDb.OleDbConnection
Dim dbProvider, dbSource As String

[code]....

I want to call EngineConnect procedure from MOD_ENGINE module into popCboBox module so I can ignate the engine!

View 3 Replies

Interface And Graphics :: XNA Graphic With A Graphic?

Jan 14, 2010

I'm trying to make a mini map for a 2d space shooter of mine; I've for the math down (I think) for when an item should appear on the mini map, but the problem is the graphic. As it stands, the graphic spills over the edge of the mini map graphic and disappears only when it's fully outside. I need it to crop the image, or at least not show it off the mini map graphic.I thought of using the sourcerect rectangle of the spritebatch.draw, but it seems to me that would only work for the right and bottom section, as I can adjust the size of the rectangle. I haven't tried this yet, but I will soon. Can the location of the source rectangle be changed in relation to the graphic that it is a part of being drawn so that I can use that to crop the left and top sides?

View 5 Replies

VS 2010 Graphic Equaliser Display?

Aug 15, 2011

I have started to create a player using VB.NET. Ive completed the import music functions and creating playlists and importing the playlists But now im wondering how would i go about creating a Graphics Equalizer to display the songs playing I dont mean a Equaliser with controls and such but more a visual display of the song playing much like the visualisations within Windows Media Player.

Also if i wanted to display a visualisation behind some controls , What would i use to achieve this ?? I think a picturebox if it accepts the type of file a Visualisation would be. My final goal is create a fully custom player which has a visualisation and shows track details in a custom environment.

View 3 Replies

VS 2010 Restore Defaults Of The Way Things Are Displayed?

Jul 19, 2011

VS 2010 is rather annoying in that its sub windows always seem to be moving about and I have to put them back where they belong. It seems that I've completely lost one window now however- its the one that should go below solution explorer/to the right of the error reporter where all the information for the highlighted entry is displayed. How do I get this back/restore defaults of the way things are displayed?

View 2 Replies

VS 2010 Timer Among Other Things Not Working Correctly

May 17, 2012

Ok so on my project it seems the timer is not working correctly, the interval is set to 5000 (which is 5 seconds... right?) so every 5 seconds it would display a MsgBox telling me the current date/time and then a time in a list.

[Code]...

View 4 Replies

VS 2010 Make An Application That Downloads Things Off The Internet?

Feb 20, 2012

I want to make a vb application that downloads stuff off of the internet such as pictures, etc. Does anyone know how I can do this? P.S. If anyone knows how I can implement a progress bar into this .

View 3 Replies

VS 2010 Save Things Made In Checked Item Box?

Jun 28, 2010

Ok. So, how do i save things. Ive made a Checked Item Box. But i can't get any of the things to Save that i have Checked?

View 9 Replies

VS 2010 - Duplicate Control - Datagridview With Code In It Plus Buttons That Do Various Things To It

Feb 9, 2012

Wondering if there is a way I can duplicate controls and have them work properly? basically, i have a datagridview with code in it plus buttons that do various things to it etc etc. ideally, i'd like to be able to have two of these datagridviews on show. So, user presses button, second datagridview shows. Note that I don't want them to both display the same data - they should both be independetly editable..

View 3 Replies

VS 2010 Online Fill Forms Select Things And Repeat?

Aug 13, 2010

What it will do:It will go to the penndot website.Fill in those two forms with what the user inputed in the textboxes. Click login Then tick either reschedule, unless there isn't a reschedule then it would tick schedule Click Continue Tick the right DMV(Not going to post this because of my location If there's an error at the top It won't do anything.If there are available choices.Then it would send an email to the email in the email textboxSo.. after writing all this out...

View 2 Replies

VS 2010 : Make A Form With Multiple Buttons Opening Different Things Than Having A Form That Has Lots Group Boxes For Each Tab?

Jul 25, 2011

Is there a better way to make a form with multiple buttons opening different things than having a form that has lots group boxes for each tab. So in the begining each box will be invisible and when you click the button the corresponding group box will become visible. Is there any other way?It will be like a background image and it'll have buttons that will mask it with invisible buttons. when the button is clicked it will open the corresponding group box.

View 5 Replies

Make Dll Module In VB 2010?

Mar 8, 2011

How can i make and use dll module in vb2010

View 5 Replies

Use VB 6's Module In VB Studio 2010?

Jul 22, 2011

I am working on developing control machine under Visual basic 6.Then we are going to setup new machine but it needs a new copy of VB6.I have a number of modules created by VB6.

1. Can I still order a new copy for Visual Basic 6 from MSDN or other place? VB6 might be already obsolete, so if I have to order newer version, such as Visual Studio 2010.

2.Am I still able to develop programs in VS2010 by using my previous VB6 module?

View 5 Replies

VS 2010 - Bitarrays And An I/O Module

Jan 17, 2011

A new program I'm working on is testing my VB knowledge, which I admit is not all that vast. I'm running a timer that checks an 8 channel I/O USB module every 200 milliseconds. When checked it returns a decimal value that must be converted to an 8 bit string, which I then convert to an array for analysis. After analysis I might make a change and return a different value. Something like this:

[code]...

I'd like to use the bitarray class like this to keep things a little more compact:

[code]...

I'm not overly familiar with the bitarray and am concerned about using "New" so frequently. Is there another more efficient way to work with the bitarray class that doesn't require creating a new instance each time?

View 7 Replies

VS 2010 - Add A Label To A Form (from A Sub In A Module)?

Aug 18, 2011

I'm trying to write a sub that when sent a form (if its needed) will create a label on that form. This is because all of the forms will have the same title label. My problem is that, basically, I have no idea how to do this. I also can't get labels to create when the code is written into the form itself; I tried:

[Code]....

View 3 Replies

VS 2010 Create An Overloaded Method In A Module

Feb 14, 2012

I'm trying to create an overloaded method in a module, but if I type Public Overloads Function GetData(ByVal sql As String) As String it tells me "Inappropriate use of 'Overloads' keyword in a module". Are overloaded methods not allowed in modules?

View 3 Replies

VS 2010 Get Direction On Module Submit Form?

Jul 15, 2011

I'm ready to implement a server browser for my FPS.but instead of having a .exe running on the remote machine to handle the server list, i'd like to use simple HTML and server side scripting.what i need is some kind of a tutorial that can be used to show me how in my dedicated server program to (for example)

[URL]

and the client program to

[URL](and read the .txt file into string/data) i can handle the server browser side, but i need some help on the .exe of the dedicated server and the .exe of the client submitting/retrieving data from a http site from within their modules.

View 1 Replies

Declare A Connectionstring In A Module And Call That Module

Aug 16, 2010

how we can declare a connectionstring in a module and call that module

View 1 Replies

1 Serialport 3 Forms - Currently Attempting To Use A Module In Vb 2010 Express?

Feb 26, 2012

I 'm a beginner and have a project that I'm using to turn lights on and off. I need to use separate forms for display on remote monitors. My problem is each form needs the same serial port open to work and the port won't open unless it's closed in the previous form. Using a module works for opening and closing the port, but only for one round. If I try to revisit a form I already accessed it doesn't work.

Public Sub sp1(byval SerialPort1)If Form2.SerialPort1.IsOpen = TrueThen Form1.SerialPort1.Close() If Form3.SerialPort1.IsOpen = TrueThen Form3.SerialPort1.Close() Form1.SerialPort1.Open() end sub
Public Sub sp2(byval SerialPort1) If Form1.SerialPort1.IsOpen = TrueThen Form1.SerialPort1.Close() If Form3.SerialPort1.IsOpen = TrueThen Form3.SerialPort1.Close() Form2.SerialPort1.Open() EndSub
Public Sub sp3(byval SerialPort1) If Form1.SerialPort1.IsOpen = TrueThen Form1.SerialPort1.Close() If Form2.SerialPort1.IsOpen = TrueThen Form3.SerialPort1.Close() Form2.SerialPort1.Open() EndSub
end Module

View 2 Replies

VS 2010 Like To Make A Module For Common Multithreading Functions?

Feb 24, 2012

I've got 4 projects all running very similar multi-threading HTTPListener stuff.I wanted to make these functions common - in some module - but I'm having a hard time getting the AddressOf the "callback" passed in.This was the code in one of the 4 projects

Private Sub StartRequests(ByVal prefixes() As String)
If Not System.Net.HttpListener.IsSupported Then
DisplayInfo( _

[code].....

View 1 Replies

VS 2010 - Calculate The Y Intercept First But Unable To Call Function From Module?

Mar 13, 2011

I have to calculate y = a + Bx or y = mx + b in non engineering form. Anyways I have to calculate the y intercept first and am having trouble calling the function from a module. Here is the module and the second window will be the code from my main form

[code]...

View 8 Replies

VS 2010 - Module Edit Form Objects (Labels / Textboxes)

Dec 1, 2010

So I have my main form (Form1) and I have a module called globalMod. On start up, Form1 loads, and globalMod contains functions and global variables (using Friend). I need to be able to have a function inside of globalMod edit a label/text box/etc in Form1. I tired Form1.object.Text = "content" and it doesn't do anything, even if I update / refresh the form.

View 1 Replies

VS 2010 Multi Threading Access To Module Level SEQUENTIAL Counter?

Feb 22, 2012

I've got this code

Public Class Form1
Dim m_listener As HttpListener = Nothing
Dim m_asyncCount As Integer = 0

[code].....

View 8 Replies

VS 2010 Module With Multiple Classes Shows As A Windows Form In Solution Explorer

Mar 29, 2012

I am having this strange thing happen where I have a Module that contains multiple classes in my project. In the Solution Explorer, the module shows up as a Windows Form and if I double click on it to open it, it tries to open the Form Designer. What could be causing VS to think that it is a Windows Form instead of a module?

[Code]...

View 3 Replies

Declaring A Graphic In VB?

Apr 13, 2010

We have a great book written for Visual Basic 2005 that we type code that is prepared in advance. We are using Visual Basic Express 2008 and normally this works really great; type the code run the program and it works, however I am running into a snag.

The textbook shows the following code: IN THE(General) (Declarations)AREA we are told to type the following:

' Create a Graphic object to use with the game's bitmap
Dim myGraphicObject As Graphics = Me.CreateGraphics
' Create an empty Bitmap Object

[Code].....

is there a difference between VB 2005 and VB 2008 that would be causing the errors? or am I missing something subtle maybe mistyped?

View 3 Replies

How To Use Graphic Methods

Jan 28, 2010

I would like to know how to use the graphic methods:

-DrawString
-DrawLine
-FillRectangle

I am meant to use these in a method called Drawgraph in order to draw a grid and bar chart. How can I go about this? What parameters do I need to send? What variables do I need to declare?

View 1 Replies

.net : Changing Certain Things To URL?

Aug 4, 2011

Like the browser url is

[URL]

how can i change when button press it will change the url: [URL]to : [URL]it will change M. to WWW.

View 2 Replies

Compare Things From Xml?

May 18, 2010

I'm trying to compare values from a single xml file.

Here is my xml file set up

<?xml version="1.0" encoding="utf-8"?>
<Updater>
<version>

[Code].....

View 11 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved