Topics
-
-
- Administrators
- 2 replies
- 634 views
I have a folder of images to be opened. By using OpenFileDialog (OFD), I managed to open the folder and select a particular image. I understand that a user can also select the directory to open a file or folder. After opening the first image in the folder, I would like to have a button "NEXT" on the form, so that when I click the button, the next image in the folder can be viewed. I also managed to extract the Current Directory of the OFD by using " CurDir() ". So my question is: What codes should I write for the " NEXT " button so that when I click the button, the next image in the folder can be viewed ?
Last reply by FYRe, -
-
- 1 reply
- 1.6k views
I am looking for some code to make a rich text entering area similar to the one on these forums. I only want to include bold and italic text but to save it out as html formatted text. Any ideas PB
Last reply by sgt_pinky, -
- 6 replies
- 1.6k views
Given an EXCEL file [Tasks.xls] that has 2 worksheets [Tasks and Db]. The "Tasks" worksheet has multiple rows which are borken down into distinct columns [Name / Task / Start Time / Stop Time] I need to take each row of the Excel file [Tasks.xls] in the "Tasks" worksheet and populate my Datagrid [dgTasks]. Any clues? Any help would be much appreciated. Thanks,
Last reply by Shaitan00, -
-
- Administrators
- Leaders
- 4 replies
- 1k views
I noticed that the CharEnumerator class (which implements IEnumerator) is allowed to return a char value for the Current property. Similarly, MessageEnumerator.Current returns a Message object, MethodDataEnumerator.Current returns a MethodData object, and so forth... It seemed to me that the implementation of IEnumerator does not care about the return type of the Current property, since clearly those classes have twisted it to their own needs, and can still claim to implement IEnumerator. Fed up with constantly casting from collections I know to only contain strings, I thought of making my own little wrapper enumerator for string-only collections (although it would wor…
Last reply by Diesel, -
-
-
- Administrators
- *Experts*
- 3 replies
- 2.4k views
public class Class1 { private int member; public int Member { get { return this.member; } set { this.member =value; } } }//end class public class Class2 { private int externalClassMember; public int ExternalClassMember { get { return this.externalClassMember; } set { this.externalClassMember = value; } } public void SetMember(ref int member) { this.externalClassMember = member; } } //end class public class Test { Class1 testClass1 = new Class1(); Class2 testClass2 = new Class2(); testClass1.Member = 10; testClass2.SetMember(ref testC…
Last reply by Diesel, -
-
- 1 reply
- 1.5k views
I want to play sound files (.wav) on ppc. How can I do it on compactframework using VB.NET?
Last reply by HJB417, -
- 5 replies
- 2.1k views
Hi, I have a ASP.net form that has datagrid that is used to enter the timereport for employees. The datagrid has 4 columns for 150% Overtime,200%OVertime,Annual Leave,Sick Leave The datagrid will have 28,30 or 31 rows depending on the month for which the time report is. The columns are TemplateColumns that have textboxes . I want to create a CLIENT SIDE script that will automtically calculate the totals for each column in the time report. (It should calculate without postbacks) The text names are txtOT150,txtOT200,txtAnnualLeave,txtSickLeave. How can I create this client side script? I know this will have to be done at the Datagrid_ItemDataBound event and th…
Last reply by mark007, -
- 3 replies
- 3.2k views
hi the following code opens an outlook mailitem. but what happens, if the user doesn't have outlook installed on his machine?? is there a way to detect the users default mailclient and open a mailitem of this mailclient (i.e. netscape,..)? best regards Dim pApp As Outlook.Application Dim pMail As Outlook.MailItem pApp = CreateObject("Outlook.Application") pMail = pApp.CreateItem(Outlook.OlItemType.olMailItem) pMail.Display()
Last reply by mark007, -
- 0 replies
- 634 views
Hi There is this thing which I don't understand. I have some textboxes bound to dataview. When I change the value in textbox, Haschanges property in dataset stays False. So if I call dataadapter.update nothing happens. But if prior to calling update method of data adapter, I manualy change some values in dataset, like: ds.table(0).rows(0).item(0) = something, then all the changes I made in textboxes are written in the database after the update method.
Last reply by ivan74, -
-
- Leaders
- 4 replies
- 2.2k views
Hi, I was messing about the .Net socket code yesterday, hoping to make some use of it, (simple chat program, you know the sort) I tried to run the program which worked fine, but the listener doesn't open a port so doesn't listen... maybe I am missing something, but either way its not working :( Any ideas? a snippet from the MS Socket samples (which can be found on their website). Private Sub DoListen() Try Dim port As Integer = "5000" mobjListener = New TcpListener(port) mobjListener.Start() Do 'Dim x As New Client(mobjListener.AcceptSocket) Dim x As New Client(mobj…
Last reply by Gooley, -
-
-
- Administrators
- 5 replies
- 669 views
I'm working on a very extensive program for a friend and myself. It's basically a character generator for our books to help us create minor characters more easily and faster. I have all of our made up creatures going to different areas of the program to generate different things from names to birth and death dates to hair and eye colors, etc. My main problem is that I want to use wild card statements. What I want to do is have the statement see if my species textbox has Human, Dragon, Nymph, Elf, or other specific words in the box. The below code is the generalized code that I attempted to use to reprogram one of my buttons. A similar code would be used on several…
Last reply by mskeel, -
-
- 2 replies
- 680 views
Hi, I have a following porblem: First I signed xml file which is written with dataset.WriteXml(sw, XmlWriteMode.DiffGram), later when I open it, it passes signedXml.CheckSignature, but returns completely empty dataset. It works fine if I don't use XmlWriteMode.DiffGram. Why is that?
Last reply by ivan74, -
-
- *Experts*
- 2 replies
- 1.6k views
Hi all, I have a DataGrid inside a Windows Form. I know that using datagrid.hasChanges will return a boolean value indicating whether changes have been made to the datagrid. But the problem I am having is that: this hasChanges method didn't return a boolean value of True when the user had made changes to a cell in the datagrid BUT he didn't not press "ENTER" or click on other components on the windows form to "confirm" his changes. What I want is that, even the user did not "confirm" his changes, the changes that he had made would also be detected so that a message dialog box will pop up asking him if he wants to save his changes. Hope you guys understand w…
Last reply by iamsuperman, -
-
- 5 replies
- 1.3k views
I'm trying to make control that contains panels of buttons that can be moved around inside the control. How could I make the panels movable by the user?
Last reply by decrypt, -
-
- Leaders
- 2 replies
- 859 views
Hi! I need to get a string containing a specified control full location namespace... Explaining it better, imagine this: MyProject +-> MyForm1 +-> TabControl1 +-> TabPage1 +-> Button1 Giving the Button1 object as a parameter, I need to have a function that can retrieve me: "MyProject.MyForm1.TabControl1.TabPage1.Button1" My current solution looks like this: Shared Function GetParentTreeNamespace(ByVal ctrl As Control) As String If ctrl Is Nothing Then Return "" Dim pForm As Form = ctrl.FindForm Dim retval As String = ctrl.Name Dim cCtrl As Control = ctrl Do While Not cCtrl.Parent Is Nothing …
Last reply by AlexCode, -
-
- 1 reply
- 1.4k views
My goal - I need to search a database (EXCEL file) using typical "SELECT" statements (as shown below) to determine if a matching value exists (stored in the dataset). If the Dataset (ds) is EMPTY or ==NULL then I need to do something specific... So I wrote the following code: System.Data.DataSet dsChg = oExcel.Read("select * from [Task$] where STATUS<>'FINISHED' and CLIENTS='" + cbClient.Text + "' and ASSIGNMENTS='" + cbAssignment.Text + "'"); if (dsChg != null) { // Repopulate ... do some work } Note that oExcel is an object that allows me to communicate with my EXCEL [.xls] file which is acting as a database. So, I am checking to see if there is a row th…
Last reply by bri189a, -
-
- Administrators
- 3 replies
- 2.7k views
I'm making the switch from VB.NET to C#, and I've found it pretty easy so far, except for public variables. In VB.NET, my startup class would be something like this... Public Class clsCore Public O as clsOptions ... End Class In C#, I tried public class clsCore { public clsOptions O; ... } But that gives me: How do I go about doing it?
Last reply by PlausiblyDamp, -
-
-
- Leaders
- *Experts*
- 18 replies
- 1.6k views
It's good to have more professional quality developers posting.
Last reply by mutant, -
-
-
- Administrators
- 2 replies
- 563 views
Public Function editpos() Me.lblpos.Text = (DataGrid1.CurrentRowIndex + 1) & " dari " & (DataGrid1.VisibleRowCount - 1) End Function Public Function FillDataGrid(ByVal Sqlstring As String) Dim OleDbConn As OleDbConnection = New OleDbConnection(ConnString) OleDbConn.Open() Dim MyDataSet As DataSet = New DataSet Dim MyOleDataAdapter As OleDbDataAdapter = New OleDbDataAdapter MyOleDataAdapter.SelectCommand = New OleDbCommand(Sqlstring, OleDbConn) MyOleDataAdapter.Fill(MyDataSet) Me.DataGrid1.DataSource = MyDataSet.Tables(0) 'For x As Integer = 0 To MyDataSet.Tables(0).Rows.Count - 1 'List…
Last reply by daniel2milan, -
-
- 0 replies
- 765 views
hi I want write a programm, that can be work with multi channel input sound card(Motu 24I/O), analyze it, save it's information in database, show spectrum and .... i want write with vb.net and directx 9. please help me, and guide to find needed information. thank you.
Last reply by majid_afra222,
-
Who's Online 0 Members, 0 Anonymous, 69 Guests (See full list)
- There are no registered users currently online