Topics
-
get the current username
by Guest Chrisis-
- Leaders
- 1 reply
- 1.6k views
Hello, does anybody know how i can get the current user name which is used to login or send messages with "net send" ? Would be very happy ! greetings Chris
Last reply by quwiltw, -
-
"Copy" Lsitbox-Items to another Listbox
by Guest Chrisis- 1 reply
- 1.9k views
At the moment I try to bring the Items from a second Listbox to another Listbox on my primary Form ! I try to do this by creating a property on my main form which i set to me and then work with this property on my secondary form. but i don't get it working !! Main Form : Dim XXForm As New frmMain() Dim XXCount As Integer Dim XXCurrentItems = lisPersonList.Items.Count() - 1 Dim XXType As System.Type Dim XXTypeString As String Me.Close() XXType = MainForm.GetType() XXTypeString = XXType.ToString() MsgBox(XXTypeString) XXForm.lisPersonList.Items.Clear() XXForm.Show()…
-
-
- *Gurus*
- 7 replies
- 1.9k views
Hello, Im trying to write a little popup program which works with win2000 and xp ! Does somebody know what's the best way to do this ?? I thougt about to use the windows integrated "net send" to realize my idea but i also want to have a request if the message arrived or not !!! Here is my actual problem by programming the optic : Dim XXListItems As Integer Dim XXCount As Integer Dim XXGetItem As ListBox.ObjectCollection Dim XXListContents As Integer XXListContents = lisPersonList.Items.Count MsgBox(XXListContents) Dim XXItem As Array() If Not txtUserName.Text = "" And Not txtPcName.Text = "" Then …
Last reply by Derek Stone, -
-
same OleDB datasets between two forms?
by Guest cgchris99-
- *Gurus*
- 1 reply
- 1.3k views
How can I use the same OLE db datasets between two forms. I have the main form then I have a lookup form. The lookup allows the user to search through the database and select a record. I then fill the dataset that is on the main form and the fields update fine. However, when I make a change to a field on the main form and attempt to save the data using myadapter.update(....) It doesn't work. I am wondering if it is because the adapter on the main form is not the same as the one on the lookup form. Any ideas? Thanks
Last reply by Derek Stone, -
-
-
- *Gurus*
- 6 replies
- 3.9k views
Hello, I have developped an application which let the user define its own mathematical functions using a subset of VB.Net. I then use Codedom to compile each function into its own assembly. When the user launch a calculation, I load the needed assemblys and use the defined methods. Everything works fine as long as the user don't try to recompile a function (an assembly) which has been loaded in memory. I have not been able to find a way to "unload" an Assembly. As of now, the user has to quit the application and relaunch it (not the optimal solution...) . Does anyone has an idea on how to solve this issue? Thanks for your help Pierre PS : To solve this,…
Last reply by pgerard, -
-
MyBase.Finalize() ??
by Guest Imogen-
- *Gurus*
- 3 replies
- 6.4k views
In VB.Net New() and Finalize() functions have replaced the Class_Initialize() and Class_Terminate() of VB6. However when I create the finalize function I get the line MyBase.Finalize() What do this mean/do? Taken from the VB.Net created routine Protected Overrides Sub Finalize() MyBase.Finalize() End Sub Thanks Imogen
Last reply by divil, -
-
save information into a xml file
by Guest Chrisis-
- *Gurus*
- 2 replies
- 1.9k views
Hello again, I'm trying to save some user specific informations into a xml file. What is the best way to do this ?? I'd never tried to work with xml before !! I would be very happy if somebody can tell me ! best wishes Chris
-
-
-
- *Gurus*
- 3 replies
- 1.5k views
I am using the data form wizard to create basically everything I want. I have done it with two tables and it worked fine. The third one that I generated a data form for, didn't generate a delete or update command in the data adapter. Any idea's why? I tried creating one manually, with no luck. I keep getting an erro r about a parameter not having a default value. Usually I believe the commands are generated automatically, but for this particular table, they are not. Any help is greatly appreciated, because I have no clue on this one! Thanks...
Last reply by Thinker, -
-
Adjust Class for every Textbox on a form? Need additional function.
by Guest cgchris99-
- *Gurus*
- 1 reply
- 1.2k views
I have a form that has a bunch of textboxes and checkboxes. I need to know whenever any field gets changed on this form. Is there a way to inherit some sort of class for this? Or do I have to write this piece of code for every field/checkbox/combo, etc. RecordChanged=True Thanks for any advice
Last reply by Thinker, -
-
- 3 replies
- 1.8k views
How can you do that? I just need an icon (with a small menu with 'Open' and 'Exit) downside(on the right) my screen. But how do you program that in VB.NET
Last reply by NicoVB, -
Dataset.Relations
by Guest gjnave-
- Moderators
- 3 replies
- 2k views
I have racked my brains for the ENTIRE day trying to figure out how I can delete a single row from within a child table. This is my dataset structure: Organization Country City Ministry Worker Say that the Organization Table has One Entry, but the Country table has 3 entries (let's say Korea, USA, France) . And let's say that the City table has 3 entries under each of the 3 countries. (A total of 9 cities, which don't show together because they are related to different countries in the country table - or underneath different rows of the Country Table). Now, i want to delete the city of Denver (which is underneath the USA entry in the Country table). So i …
Last reply by Robby, -
-
How to get DataGrid Field value for Selected Row?
by Guest cgchris99-
- Moderators
- 1 reply
- 3.3k views
I have a Datagrid that is from a table. When I highlight the row, and click my select button, how do I know what the value of a certain column is? Thanks for any advice
Last reply by Robby, -
-
ChildRows
by Guest gjnave- 0 replies
- 1.3k views
By using this code: ds1.Tables("country").Rows.Item(2).GetChildRows("country_city").Length I can access a table (in this case country), the row #2 of that table, and the number of childrows beneath it. BUT Now having accessed it, how can I modify the values or delete the rows of the child rows? Thanks
-
me.close problem
by Guest gjnave-
- *Gurus*
- Leaders
- 2 replies
- 1.7k views
Lately (it didn't seem to do this before), when i try to open a form from within a form and then close the original form, both forms close and the program shuts down. Is this a glitch in .Net? here's the code using two forms (startForm and goForm) (StartForm) dim gForm as new goForm gForm.show me.close ** At which point both forms crash. Am I missing something stupid? thanks
Last reply by Derek Stone, -
-
Activate Event Does Not Fire in MDI Child
by Guest afrinspray-
- *Gurus*
- 2 replies
- 4.2k views
Hello, I'm having a few problems converting a visual basic 6 program to visual basic .net. In my old program, I used the activate events of mdi children frequently. While converting to .net, I've run into problems because the Activate event isn't being triggered in the child forms. Why does the activate event not fire in an MDI child form? Did Microsoft replace that event with MdiChildActivate? I would prefer not to use the MdiChildActivate event if possible... Any response would be greatly appreciated. Thanks, Mike :D PS - Some other people were having the same problem http://discuss.develop.com/archives/wa.exe?S2=dotnet&L=DOTNET&q=&s=urgent…
-
-
ListView/ImageList bind to Database ???
by Guest cgchris99- 0 replies
- 2.6k views
I have a lookup form that I select a record from. When I select this record the following code is executed Form1.Instance.OleDbDataAdapter1.Fill(Form1.Instance.DataSet1, "recipe") Now when the Form1 re-displays, the text fields contain the right information. However, my Listview doesn't show the correct item. I have entered tag values in the listview. They are numbers 0-4. I even displayed a text box with the value of what the dataset field should be and it displays perfectly. Why doesn't the listview update and display the correct image? Thanks
-
How to create array of Form Items?
by Guest waltfish-
- *Gurus*
- 4 replies
- 2.7k views
In a form with multiple similar objects, say 10 CheckBoxes, is it possible to reference them as an array (e.g. CheckBox) rather than individually (e.g. CheckBox1, CheckBox2)? thanks
Last reply by divil, -
-
-
- *Gurus*
- 1 reply
- 2.4k views
This code give me the error: "BC30616: Variable 'e' hides a variable in an enclosing block" for each of the "Catch e" statements. Am I declaring e incorrectly? <%@ Page Language="vb" %> <%@ import Namespace="System.Decimal" %> <script runat="server"> Sub Page_Load(Source as Object, e as EventArgs) Dim decValue1 as Decimal Dim decValue2 as Decimal Dim strOperator as String Dim decResult as Decimal decValue1 = Request.QueryString("value1") decValue2 = Request.QueryString("value2") strOperator = Request.QueryString("operator") Try Select Case strOperator Cas…
Last reply by Thinker, -
-
-
- *Gurus*
- 4 replies
- 1.8k views
I have an instance of an control object(a linklabel). For example Dim linker as new LinkLabel But I want from code simulate the event LinkClicked of this control. How to do this??
Last reply by NicoVB, -
-
Bitblt
by Guest Cokegod-
- *Gurus*
- 7 replies
- 2.5k views
I can not figure out how to get BitBlt to work in VB.Net. I use the function call of: Declare Function BitBlt Lib "gdi32" Alias "BitBlt" (ByVal hDestDC As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal XSrc As Long, ByVal YSrc As Long, ByVal dwRop As Long) As Long But there are longer any hdc that i can find and i can't get the raster ops to work(ie srccopy) Thanks
-
-
Who's Online 0 Members, 0 Anonymous, 57 Guests (See full list)
- There are no registered users currently online