When my program runs it closes form1 after a few seconds. Depending on what happened during form1's lifespan I may want to open form2. Normally I would just make a new instance of form2 and use the show() method. But form2 is then a child of form1 and then also closes. Does any body have an idea on how to get this to work? thanks.
...
I have a Visual Basic .Net form (launches after the splash screen tests database connectivity) and it is not focusing above other existing windows on launch.
How do I get it to focus above all existing windows and Windows Explorer windows?
...
Hello,
I have 2 button in ASP.net, when i pressed button1 my div innerhtml changed to some value. and when I press the button2 my datagrid will display in the same div.
Please tell me how can i display the datagrid inside the div at runtime.
Thanks,
Manoj Singhal
...
I have a Tab Control on a Winform. I want to add another page but I want it to appear between the current page 1 and page 2, basically I want to insert it. How can I do this?
...
I've got an application (that is targetting .Net Framework 2.0) that is running on startup of the System, and I'm trying to get a NotifyIcon to display.
When my program starts up when a user either Runs it normally or is started as a child process after the system has already logged on everything is fine.
If my application starts up as...
Hello ;)
I've got the following problem:
I have a table with long/lat values and another table with a project-id and long/lat/radius (circle).
Now I need to find out which project matches the long/lat values from the first table.
Is there an easy way to do that?
I'm using VB.net and a SQL Server.
Thank you very much for your help.
...
I am going to create a web server control representing a treeview. So I want to use 2 images for + and - for expand/collapse. How can I build this into the control in a way that can be used as image source when rendered on the page?
Since this will be in a compiled web controls library, I don't want to rely on external images in the we...
I want to read a csv file into an access database , here is my code :
Private Sub load_csv()
Dim ConnectionString As String
ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;" & _
"Data Source=" & input_file & ";" & _
"Extended Properties=""Text;HDR=Yes"""
Dim TextConnection As New System.Data.OleDb.OleDbConnect...
Can somebody explain why is this xml
<?xml version="1.0" encoding="utf-8"?>
<items>
<item id="77" cityID="EE12345" cityDatum="15.2.2010. 11:28:35" />
</items>
when using query
Dim c = From items In st.Descendants _
Where items.@id IsNot Nothing _
Select New myStorage With {.id = items.@id, .cityID = items.@city...
Well i have a custom control called Dialog to slim it down to the problem
Here is my vb.net code:
Public Class Dialog
Inherits System.Windows.Controls.Control
#Region "DependencyProperties"
Public Shared ReadOnly OkCommandProperty As DependencyProperty = _
DependencyProperty.Register("OkCommand", _
...
hi
i want to read an excel file using ado.net(if thre is soem other simple way,tht too)
I want the code in VB.net
Thanks in advance
...
Class ComponentsContainer ' a component contains other components'
Inherits System.ComponentModel.Component
Private foo as New Component
Private bar as New Component
Protected Override Sub Finalize()
foo.Dispose() ' HERE ? '
bar.Dispose()
MyBase.Finalize()
End Sub
Protected Overrides Sub Dispose(disposing As...
I have an abstract class which requires a delegate to function. I pass the delegate into the constructor. Now that I have a non default constructor I need to call the abstract class's constructors from the concrete class which means that I need to use MyBase.New(...). I have included a quick example below.
Public MustInherit Class BaseC...
Hi,
I have a task and no idea how to tackle it!
Basically, I want to disable the CD drive on a PC so our users can't use them.
That's how I want to start anyway - ultimately I'd like an icon in the system tray that allows the CD drive(s) to be locked and unlocked providing you know a password.
I need somewhere to start though - does ...
I am trying to display the contents of a table from an Access 2007 Database inside a List-view Box.
I am using a Combo Box to select the user I wish to see the details about:
Private Sub Admin_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ReadUsers()
con.ConnectionString = ("Provider...
I'm working on a VB.NET program that will automatically backup my work to my FTP server. So far I am able to upload a single file, by specifying a file name using this:
'relevant part - above is where FTP object is instantiated
Dim _FileStream As System.IO.FileStream = _FileInfo.OpenRead()
Try
'S...
Ive made a interface with the following methods:
Public Interface IAuthenticationService
Sub SetAuthentication(ByVal username As String)
Sub Logout()
Function IsLoggedIn() As Boolean
End Interface
My implementation looks like:
Public Class Authentication
Implements IAuthenticationService
Public Sub Logout() Implem...
I've been working on some custom graphics controls, and I found this weird problem with windows 7 rendering my button controls. I've used Photoshop to delete the pixels in the background all around the button image I'm using, then saved it as a GIF, and imported it into VS to use as the background image of my button. When windows XP re...
I wish to get a quick feeling for how much “copy and paste” coding we have, there are many tools for C# / Java to check for this type of thing. Are there any such tools that work well with VB.NET?
(I have seen what looks like lots of repeated code, but wish to get some number to help me make a case for sorting it out)
Update on prog...
I have a modal Windows form created in VB.NET that I am using for a PowerPoint add-in (this issue would also apply to an Excel add-in, I suspect). The form lets the user select shapes on the current slide from a ListView object. With each selection, the corresponding shape should be selected on the current slide. I know that my code i...