Answer Questions
Tone Southerland Tips on Window Attributes (size, location, etc.)
So I have a program for my job that allows the user to open any number of individual windows that each display a customizable amount of data, type of data, etc. But that part's unimportant, the important thing is, unlimited windows are openable. The window attributes themselves are stored in a list of open windows. What I'd like to implement is the ability to choose some preset layouts. I know how I can programmatically create new windows, but my issue is arranging them. What do y'all suggest as the best way to do this, handling different screen resolutions and stuff like that A percentage of the user's screen width perhaps And do y'all have any methods to suggest using besides the normal setCoord, setWidth and setHeight ...Show All
Michael_75 COM and vb.net IPC
i am trying to get a VB6 application to interact with a VB.NET application. how can i get the VB6 progrm to open and interact (call subs and functions) with the VB.NET program. i would prefer not to use a DLL for the VB.Net program as it is used as a stand-alone application as well, and it is a HUGE pain to maintain both dll and exe versions of the same exact program (not to mention installing both on a users computer). i would love to have some way to communicate with the VB.Net program similar to how Excel or Word is used in VB6: set objVar = createObject("Excel.Application") but instead have: set netVar = createObject("my.net.exe") does anyone know how to do this thanks ...Show All
robinjam How do I set the row number of a DataGridView?
psuedo code... set DataGridView1.row = i 'where i = 0 to DataGridView1.Rowcount Me .DataGridViewAnalog.CurrentCell = Me .DataGridViewAnalog(COL_NUMBER, ROW_NUMBER) I guess I can't just set the row.... DataGridView.CurrentRow is Read Only... meant to be used to retrieve the current row, but not set it.... Thank you Giber ! Hi Hazz, Me.DataGridViewAnalog.Rows(rownumber).Cells(ColumnNumber or "ColumnName").Selected = True ...Show All
Jak0101 IIS 7.0
Hi, Could you please explain How to create virtual directories dynamically in Vista (IIS 7.0). Thanks, Kumaresh. Here is a post I found that seems to work: You need to add a reference into your app for System.DirectoryServices Then use: Private Sub CreateVirtualDir(ByVal WebSite As String, ByVal AppName As String, ByVal Path As String) Dim IISSchema As New System.DirectoryServices.DirectoryEntry("IIS://" & WebSite & "/Schema/AppIsolated") Dim CanCreate As Boolean = Not IISSchema.Properties("Syntax").Value.ToString.ToUpper() = "BOOLEAN" IISSchema.Dispose() If CanCreate Then Dim PathCreated As Boolean Try Dim IISAdmin As New System.Directo ...Show All
ku19832001 Call a vb exe in asp
Can some one help me with calling a vb program within a asp Hi, Do you know javascript You can use the same in asp as well... hi, Use ShellExecute command of the Shell ActiveXObject (in javascript) var oShell = new ActiveXObject( "Shell.Application" ); oShell.ShellExecute("Notepad.exe", "", "" , "open" , "1" ); regards, Perumal.R DSRC Pvt. Ltd, Chennai. Thanx for that .It was really useful to me...... . Well Mr.Perumal what you posted was with jsp right.can u help me out with asp ...Show All
NinetyNine search with at least 2 criteria
I'm starting with Visual Basic 2005 express edition and i've got difficulty with searching the database with at least 2 criteria. I'm learning basing on Northwind database and all works perfect so far there is only 1 criterium. Below is my code for the search button: Private Sub btnFind_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFind.Click Dim filteredView As Data.DataView = New Data.DataView(NORTHWNDDataSet.Customers) filteredView.RowFilter = "CompanyName Like '%" + TextBox1.Text + "%'" And "City Like '%" + TextBox2.Text + "%'" Dim rowsFound As Int32 = filteredView.Count Select Case rowsFound Case ...Show All
KevinBurton My.Resources is being weird.
This is what I do. Click the Resources tab of My Project and add a new text file. The text file is called velocity. The text file contains the text "Common Velocity". When I use My.Resources.velocity, the tooltip for velocity says the following: Friend ReadOnly Property velocity() as String Looks up a localized string similar to . As if it thinks the file is empty. I have another textfile with only one line and it is interpreted perfectly. It is weird. I have tried making the file numerous times and even renaming it. Any idea what the problem could be. I am using vb8. I couldn't reproduce this. I wouldn't worry about it, this is just Intellisense getting confused, it has got a bunch of problems. Note the description: ...Show All
William Wallace Building A Screen Saver
Hello, I am trying to build a screen saver for our Marketing department at work. It is based around one single Flash control on the form. Problem: The Flash control doesn't support a MouseMove event, to exit the screen saver when someone moves the mouse. I've tried a few things, like sitting a text box on top of the control, and putting Flash into a user control - no such luck. What happens though is that if the mouse pointer is already hovering over where the form appears (I.E. outside the flash control) when one runs it, it immediately exits, when the mouse hasn't actually moved! Also, I want to hide the mouse pointer when the form runs. Does anyone know how to do these things Regards ...Show All
haber2 Unable to add SqlDataAdapter to project
I am running the following: Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Enterprise I have a simple web page that I want to put a SqlDataAdapter on. It is not on my Toolbox, nor will it allow me to add it to the source. I had to check the option in Choose Items, the toolbox blinks, but it doesn't show the tool. How do I get that tool into my program Bill Public Sub LoadData() Dim ds As New DataSet Using Adapter As New SqlClient.SqlDataAdapter Adapter.SelectCommand.CommandText = "SELECT * F ...Show All
Pavan Contractor RaiseEvent Statement not notifiying event handlers when called from within New Sub
Hello - The following issue involves code from MSDN which does not work properly. I have tried the code in VS 2005 SP1 and VS 2003. Here is the msdn link. http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbls7/html/vblrfVBSpec8_6_1.asp The problem is that the Constructed Event Handler does not fire when RaiseEvent Constructed is called from the Raiser Class's Sub New (See Following Code): Imports System Class Raiser Public Event Constructed(ByVal Count As Integer) Public Sub New() Static CreationCount As Integer = 0 CreationCount += 1 RaiseEvent Constructed(CreationCount) End Sub End Class Module Test Private WithEvents x As Raiser Private Sub Constructed(ByVal Count As Integer) Handles x.Co ...Show All
Frederik Vanderhaegen Math Questions. Just do this instead, it's easier....
This is my code I'm working with. I'm trying to use the sum from the lhGal to show in lhGal2.Text. Dim FirstNum, SecondNum, ThirdNum, FourthNum As Double 'Intial Fuel Add FirstNum = lhPounds.Text SecondNum = lhDensity.Text ThirdNum = lhGal.Text FourthNum = lhPounds2.Text lhGal.Text = FirstNum / SecondNum - 0.4 'Additional Fuel Added to bring to 1200 lhGal2.Text= FourthNum / SecondNum - lhGal You should also use Option Strict ON (type as the first line in your class file) This will force you to make explicit conversions...and will help avoid conversion errors! lhGal2.Text = Cstr((FourthNum / SecondNum) - Cdbl(lhGal.Text)) This still does not consider ...Show All
monchhib Maskedtextbox
hello. A question please. how can I give the focus to a maskedtextBox Thanks. I place 2 controls on a form. A textbox (tabindex=0) and a maskedtextbox (tabindex=1). In the load event of the form I only wrote maskedtext.box.focus. I don't know why it doesn't work. Thanks, but It doesn't work. Use its .Focus() method, like this: MaskedTextBox1.Focus() Try placing that code in the Shown event. Tony Then there's probably something in your code that is stealing the focus - which control ends up being focused when you try MaskedTextBox1.Focus() And if the control i ...Show All
robinjam Form Size
hi, In windows application using VB.net how to dynamically increase/decrease control size when form size is increased/decreased. Thanks in advance -- Naren That would depend upon what you actually wanted to achieve. As you asked a very simple question then the could be yes . Anchor will allow you to determine which controls are anchored to the form. It may be that you only want some to be anchored. Plus different controls will anchor to different sides of the form. ie. Controls at the top anchor to the top of the form and controls at the bottom may anchor to the bottom. You may also want to set a minimum size for the form. Check out the Anchor property. ...Show All
Andreas Georgsson event launches a form but the form doesnt open completely
I am trying to send data to a new form and the open the form. I have tried visible = true and the show() method but both seem to have trouble opening the form completely. The form semi appears but never finishes. i am very new to programming but i can make it open a msgbox no problem and clicking on a button also works.. PLEASE take a look Public Class PopUpStart Inherits System.Windows.Forms.Form Public WithEvents MyOB As EccoDotNet.OrderBook Public Mybuysell As String Public MyContract As String Public MyFQty As Integer Public MyOQty As Integer Public MyPrice As Integer Private Sub bPopUpStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bPopUpStart.Click MyOB = New EccoDotNet.OrderBook ...Show All
JayDiscount Where does .NET 2005 store the current Configuration setting?
I need to know where the IDE stores a solutions current configuration setting, i.e. Debug or Release. It appears to be a solution wide setting, but I could not find anything in the .sln file. A little push in the right direction would be greatly appreciated. Thanks, Josh The currently active configuration is stored in the user (.suo) file. Best regards, Johan Stenberg Hi, There is a My Project folder within your solution. Open this up and click on the Compile tab, this has Configurations in there. You can also click on Build on the menu and Configuration manager. Hope this helps. ...Show All
