VS 2010 Possible To Use A DLL Inside Of Another DLL?

Jan 18, 2011

Is it possible to use a DLL inside of another DLL?

View 2 Replies


ADVERTISEMENT

VB 2010 Put A Dll Inside Program And Use It?

Dec 19, 2011

I was just wondering if it is possible to put a dll file into the resources and use it as a import on that same program? So that I wouldn't need all my users to have both the dll and the .exe. since they would be combined into one.

View 20 Replies

VS 2010 Using .bat Code Inside .net?

Jan 17, 2011

How to make this 1 Button : when its pressed to run this

@echo off
:end
GameServer.exe 127.0.0.1 55970 127.0.0.1 55960 55901
echo .

[code]....

But to has .ini file that they can change this things (thats are in red)When they change it, then when its pressed the button to open the file with the perifrences that are added in the ini any ideas ?

View 7 Replies

VS 2010 - How To Use RegEx Inside String

Feb 3, 2011

I have this
Dim regex As Regex = New Regex("[0-9]")
If myString = "Hello[" + regex + "]" Then
How do I use a regex inside this string?

View 5 Replies

VS 2010 Dimming Inside A Loop?

Apr 23, 2012

For my own basic understanding ... what is the difference between these two snippets?

Dim y As Integer
For x As Integer = 1 To 100
y = x

[code].....

View 3 Replies

VS 2010 Docking Inside Tabcontrol

Apr 11, 2011

I have a Tabcontrol, and when the program loads it adds a tab. Inside this tab goes a panel (url, back, etc buttons to be added to it) and a webbrowser control.Problem is the panel docks to the top and when you fill the webrowser control the webbrowser goes behind the panel and not under it so the top is cut off.[code]Or anyone know how to remove the tabcontrol from the tabpages so theres a gap in-between to input this panel.

View 4 Replies

VS 2010 Form Inside A Method

Jan 13, 2011

I would like a method that opens a form which has a textbox. The user then types into the text ox and click the button "OK". The method then performs an action on the userinput before returning the manipulated value to the program.

View 1 Replies

Getting Caret Position Inside Any Application In VB 2010

Sep 4, 2011

I'm making a Singlish-English Word Prosessor.When user typing in a active window's TextBox those letters were automatically converted to the Sinhala language.I did that hard part with sendKeys() Function.But Now I want to set my application windows's location at Active Window's Blinking cursor(Caret) position.So It will easy to user with English-Sinhala Translation thing.

View 1 Replies

Populating A ListView Inside A Tab Control In VB 2010?

May 14, 2011

I have a tab control in my form and inside it I put a listview. What I wanted to do is populate the listview everytime I clicked on each tab. But I don't know how to do it.

Here is the bit of my code

Public Class Form2
Private Sub PopulateRecords()
Dim TSR As New ADODB.Recordset
Dim STRSQL As String = ""

[code]....

View 2 Replies

VS 2010 Make A Timer, Inside Of A Class?

Dec 3, 2010

I am trying to make a timer, inside of a class, tick, by calling it from a backgroundworker. It never ticks (the Tick event is never raised), but the Timer shows as Enabled (with Interval set to 1).

Here is the simplified

Class1.vb
vb.net
Public Class Class1

[Code]....

If I move the code inside the Thread1_DoWork procedure into the Button1_Click procedure, the code works fine (by bypassing the backgroundworker). But, when it is called inside of the backgroundworker, it doesn't work at all.

View 3 Replies

VS 2010 Positioning PictureBoxes Inside TabPages?

Aug 16, 2011

I have a series of tabs, each containing a series programatically generated PictureBoxes that are all 480x360. The TabControl is anchored to all 4 edges of the form, so it always takes up the whole area.

I would like the PictureBoxes to behave similarly to how images behave when floated in HTML/CSS. So if I have 5 pictures and the window is only ~900 wide then I will have 3 rows, 2 in the first 2 and 1 in the last. But if the window is then expanded to ~1500 then I get 2 rows - 3 on the first and 2 on the last.

What is the simplest way to achieve this? Is there a built in way?I am planning on repositioning the pictures when SizeChanged fires on the TabControl, or when the selected tab changes.

View 3 Replies

Compile VB 2010 Application With Access2007 Database Inside?

Oct 15, 2011

I am trying to compile my program, and each time i do the access database is outside the executable. I was wondering if it is possible to compile it and the database will be within the executable, or better still how do i make it an installer kind of application that sends all the files to the programes folder on the computer.

View 3 Replies

Showing Items From A Txt File Inside A Combobox In Vb 2010?

Jul 22, 2011

I am having a bit of trouble showing content in my comboBox as i type.The idea is to: As the user is typing into a combo box, say the user types the letter L. would like for all the words in the dictionary.txt beggining withto be shown in the combo box.

View 7 Replies

VS 2010 - Any Event For Clicking Control Not Inside Particular Panel?

Apr 29, 2012

If I have a panel with a handful of controls in it, and I want to create a click event for anytime that the user clicks on any controls that are NOT inside that particular panel, how would I do it? In other words, if there was an event called "ClickSomethingElse", that would be perfect. Any way to accomplish something like this? I realize that I could create individual click events for each of the controls outside of the panel, but there are a LOT of controls outside of the panel, so I was just wondering if there is a more efficient way to do this.

View 5 Replies

VS 2010 : Resize Form Inside SplitContainer.Panel?

Mar 4, 2012

I have a project with 2 Forms. Form1 with 2 SplitContainers and the code below to show the Form2 inside SplitContainer2.Panel2. Form2 with no borders and orange color.

Public Class Form1
Declare Auto Function SetParent Lib "user32" (ByVal hWndChild As IntPtr, ByVal nWndPArent As IntPtr) As Integer
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

[code]....

I want to resize Form2 when change Form1 size by mouse.I use frm.Size = SplitContainer2.Panel2.Size but look in pictures what happen:This is Form1 without Form2 inside Panel2 This is the application in first run. Form2 showed in Panel2 with orange color.The size is OK (frm.Size = SplitContainer2.Panel2.Size)Now i have change the size of Form1 with mouse click (or move form corner).Look the Form2 in Panel2. Didn't change size. Stay in first run size.How to change the size of Form2 when i change the size of Form1?

View 3 Replies

VS 2010 Calculate Average Of Double Inside An Array?

Aug 18, 2011

I'm working with an API, for this I'm using this particular call: [URL]

If i use this, I will get all the .price values:

For i = 0 To .bets.Length - 1
With .bets(i)
Print(.price)
End With
Next

Can I calc the average .price value? I will need to sum all the values as well.

View 8 Replies

VS 2010 Call Property From Inside Residing Class?

Oct 25, 2011

just because you can do something, it doesn't mean it's good programming practice. To that end, I have a question about calling a public property from inside the class in which the said property resides. It seems that I can call it, similar to a sub, using me.property, but is this good programming practice?

View 3 Replies

VS 2010 For Loop Inside Backgroundworker Gives Thread Error?

Jul 5, 2011

I have a backgroundworker that is downloading data from different webpages and process them to a datagridview.I get the Cross-thread operation not valid error on the first For loop.

Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
dim i as integer
tot = (numPostnrTo.Value - numPostnrFrom.Value) / 10

[code]....

View 12 Replies

VS 2010 Put Music/sounds Inside Program And Play Them?

Sep 20, 2010

I am wanting to simply insert a sound/music file into my program, and perhaps make a button function to make it play?

View 5 Replies

VS 2010 Save Controls And Image Inside Picturebox?

Feb 13, 2012

drawing shapes on a picture box then saving them.

My current situation: I have a scrollable picturebox (achieved using panel + picturebox). On top of the image inside the picturebox I've added labels on different locations(the labels are added on run-time using PictureBox1.Controls.Add etc). I want to save the contents as well as the image inside the picturebox.

View 13 Replies

VB 2010 - Opening And Closing Child Forms Inside MDI Parent?

Oct 29, 2011

It is my goal to write a program to run a retail store. I am an intermediate Access developer, so I have a good grasp of the basics.However, I find that developing in VB 2010 is quite different.I will have forms for:

Company Information
Employee Information
Supplier Information
Customer Information
Invoices & Purchase Orders

All I really need to know at this point is the code to open and close each form.

View 4 Replies

VS 2010 : Create A Program With The CMD (command Prompt) Window Inside Of It?

Jan 30, 2011

Basically, I am looking to create a program with the CMD (command prompt) window inside of it.Along with a drop-down list, containing a few pre-made codes.For example;Is the easiest way to kinda accurately show what i'm attempting.Cross-thread operation not valid: Control 'txtResults' accessed from a thread other than the thread it was created on.

View 2 Replies

VS 2010 Control To Make A Calendar Grid Like (Photo Inside)?

Jun 28, 2010

i'm working on a calendar and i'm stuck on how to make the grid (where the user put the events )i want to make my calendar look like this!

View 4 Replies

VS 2010 Font Size - Aligning Label Inside Panel

Oct 22, 2010

I have a form on with I have a label inside a panel, with a button I can open a fontdialog and change the font of the label (inside the panel). The font (name and size) I also display in 2 textboxes. This works as far. But I also want to display in a different label (so not the same as the label inside the panel) which fontstyle is selected (at this point when I select bold, the number 1 is displayed in the label, but I want to the word Bold displayed. Also I found out that when I make the fontsize smaller, the label inside the panel isn't align in the middle of the panel.

View 1 Replies

VS 2010 Get A List Of Distinct Names Inside The Data Table?

Feb 8, 2011

I need to get a list of distinct names inside the data table and the sum of values for each one. I know some basic stuff about linq, but i don't know how to put the distinct and the sums together.

The SQL Query:

SQL
SELECT DISTINCT username,
[Sum1] = SUM(day1),
[Sum2] = SUM(day2)

[Code].....

View 1 Replies

VS 2010 Setting A File To Upload Inside The WebBrowser Component

May 12, 2011

im using a loop to enter text into text boxes using the following:

Private Sub FillTextbox(ByVal sElement As String, ByVal sString As String)
Dim z As Integer = 0
While Not SiteIsLoaded

[Code].....

But i have a file property, the website has the following code

<input type="file" size="30" name="torrent" id="torrent"/>

How can i use a loop similar to above to insert the filename

View 2 Replies

VS 2010 Unable To Access DataSet Inside SerialPort.DataRecieved?

Jan 23, 2011

I have created my own object, wich contains a SerialPort. I have a sub in my object wich handles the .DataRecieved-event. I'm trying to access my DataSet from that sub, but for some reason I'm unable to do that. It keeps telling me that my tables contains 0 rows, but I'm 100% sure that they contains several rows.

View 10 Replies

Get Text Inside Double Quotation Marks Which Are Inside A Textbox?

Sep 5, 2010

So, I have a textbox with the following text.

Code:
TITLE"Hello there"
blah blah blah etc...

I want my program to find the TITLE text, and then put the text in the double quotations in a variable.

View 9 Replies

Handle Value Change Of Control Inside UserControl Inside FlowLayoutPanel?

Apr 30, 2012

I am making an invoicing application. I have a label (lblCost) inside of a UserControl (InvoiceEntry) inside of a FlowLayoutPanel (pnlEntries). InvoiceEntry represents a line item on the invoice, and pnlEntries is the "body" of the invoice. pnlEntries can hold several InvoiceEntry controls.

I am attempting to sum all of the lblCost values from each InvoiceEntry control to make a subtotal, and I want that subtotal to change automatically if costs are changed (e.g., a change in quantities being ordered). Is there a way to handle when the lblCost.Text property of any of the InvoiceEntry controls contained within pnlEntries changes?

InvoiceAdd.vb:

' Instantiate objects of the various database interaction classes.
Private mCustomer As New Customers
Private mItem As New Items

[code]....

View 1 Replies

Visual Studio 2010 - Replace Variables Inside Txt File Programmatically From .net?

Jul 10, 2011

I need to read some information from a txt file and put all that info to a textbox (this is ready and done)but the textfile have some variables like %userName% that i need to replace programatically in vb.net?example of text file:hello %userName% , this is an automated report of the uses of your account. this is what the txt file have in it, when i read it to vb.net and put that info into a textbox is done right, but the question is how to replace the %userNams% for some text in another textbox and replaced when i press a button?

View 1 Replies







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