Topics
-
-
- Leaders
- 2 replies
- 895 views
Hi all, Am attempting to write a simple windows booking application, that allows me to add and modify, rooms, clients, staff, and bookings. I have a log in form that the user must use to gain access to the program, they are then moved to mainForm, which has a menu with a number of options that redirect you to the correct form. I want to disable the menu item that was selected prior to a form being displayed, and then want to reenable it when the particular form is closed. However I am unsure/unable to call a method in the mainForm that would do the enabling. Any suggestions. Mike55
Last reply by snarfblam, -
-
- 6 replies
- 1.2k views
Is it possible to auto generated the public holiday of each country (Example: Singapore)? If possible, how. I don't want my user to enter the dates of the public holiday to prevent human errors. Help........
Last reply by Xaverria, -
- 0 replies
- 1.4k views
hello, I'm developing in app. that send mails the any users and I'm working whit the CDO object, the send it's OK, but my problem is that I want control the number the mails sending, mails losing, mails processing, etc please somebody help me.. PD: sorry for my English level, I'am Peruvian .. :D
Last reply by devfree, -
-
- Leaders
- 1 reply
- 1.5k views
hi there, im a C# newbie ... may i know how to open a new window (pop up) when i click the menu ? i write this and it works something .. but sometimes not : using proC1.abc; ... ... private void menuItem11_Click(object sender, System.EventArgs e) { MyWindowSample objdd = new MyWindowSample(); objdd.ShowDialog(this); } Note : - 'MyWindowSample' is name of my Child window's Class - 'proC1.abc' is name of my child window's namaspace Pls assist .. is this correct ? Thks in advance...
Last reply by Iceplug, -
-
- 2 replies
- 742 views
I am using the the following to fill a listview. There are two i was hoping someone could please help me with. 1) For some reason the very top (1st) line is kept blank and the first row that is filled is the 2nd row. (I presume the listview starts at row 0, and this is the problem). How can i fill the 1st line please? 2) item.SubItems(0).Text = ("A" & i) I would like to create this using the same method as i do the rest of the columns, but it wont work. Row 0 problems again. For i As Integer = 1 To 100 Dim item As New ListViewItem item.SubItems(0).Text = ("A" & i) item.SubItems.Add("B" & i) item.SubItems.Add("C" & i) item.SubItems.Add("D…
Last reply by Jay1b, -
-
- Moderators
- 2 replies
- 909 views
I have to build a form that is very variable. So i would like to write the HTML for the table out of the VB code. How can this be done? It's like the way i do it in php, there i can easily check certain things and write out a part of a table depending on the checks i made in php... for example for vb dim i as boolean = true if i then 'here i should find a way to write the html needed so it can be displayed on the site. end if all idea's are welcome.. thxs
Last reply by RTT, -
-
- 8 replies
- 1.2k views
Hello I have a search question. This is my problem... I have a form with different txtboxes. I type in an id number in the ID number txtbox and hit find. It looks for a txt file named (txtBoxID.text + ".txt"). what I want to do is... If I am not sure of the id number, I want for example to type in the last name of the individual, the textbox that is for the last name... and have it look through all the .txt files in the folder for that last name. (example: say the last name is the second line in the txt file, I want it to search the second line of all the .txt files.) and then if there is more people with that last name, give me a list of the files it found with th…
Last reply by mskeel, -
-
- Leaders
- 2 replies
- 1.2k views
Hi! I have a base class called A and the derived class called B. In class A I have a virtual method called Select() that I call using an instance of class B. Class B does not override the Select() method. For some reason I have to get the name of the derived class in the Select() method. I do that using this: string typeName = this.GetType().ToString(); Now I have to change the Select() method and make it static. So now I cant use the "this" keyword to get the object that called the method. And when I call "B.Select();" I have to know that the select method was called using the B class (so I can get the class name). Sorry if I wasnt very clear. Any help wo…
Last reply by Cassio, -
-
- 2 replies
- 1.2k views
This is a great book! It's entertaining, uses images, normal text/situations - it actually stimulates your brain to make things fun. It uses learning technologies/techniques to make information come alive and stick in your brain. This is actually a Java book, I've been using it for VB.Net. The C# code for it is like 98% identical. I've only taken one semister of Java (and trust me, not much sunk in :D ) and I'm having no problems translating it to VB.Net. I'm actually taking all the Java code they have and retranscribing it in VB.Net. So far I've learned some advanced OOP priciples (interface programming) and the Observer pattern. I'm working on the Designer …
Last reply by Denaes, -
- 2 replies
- 986 views
Hey all, I have form that is running a long process on a separate thread. The process runs just fine but, if a certain condition is met, I want to set an error (with the .NET ErrorProvider control) to a text box. The problem I have is that the ErrorProvider sets, the icon shows for a second and then disappears! It works just fine if run the process on the SAME thread as the UI but, since it is a long process and there's plenty other things for the user to do, I'd rather keep it separated. Any ideas as to what may be causing my ErrorProvider to "un-set"?
Last reply by Wraith, -
- 1 reply
- 1.2k views
I am trying to delete one item in a combobox. Its being loaded through its display member. Below is a copy of the code: ComboBox4.DataSource = Sqlds.Tables("dsmain") ComboBox4.DisplayMember = Sqlds.Tables("dsmain").Columns("Listname").ToString ComboBox4.ValueMember = Sqlds.Tables("dsmain").Columns("PtProgListId").ToString I want to delete the first item in the combo box, but no matter what I try it will not work. I have tried deleting it by using the item remove at the '0' index but it is not working. Any help would greatly be appreciated.
Last reply by stustarz, -
- 0 replies
- 681 views
I have a situation and i don't know how to start to solve it the best way possible. I have to make an ASP VB.Net web application with an complex calendar I have a database where events are entered (for example: meeting on 18/3/2005 from 8:00 till 10:00) and i have to display an overview of it by day. So if i ask a calendar for 18/3 i should see an overview of the complete day hour by hour. The hours that are busy should be show in a different color (a little like the outlook calendar or look at the screens i made from how i want it to look http://gradict.kahosl.be/tom.rubbens/screens.pdf). The free hours should be clickable so you can go to a page te directly book for …
Last reply by RTT, -
-
- *Experts*
- Leaders
- 20 replies
- 2.1k views
I need to change the way a windows form application looks. It needs to look more like an XP windows application, with the bubbly look that XP has, also I was wondering if anyone can recommend me a site for looking for professional icons. As always any help is greatly appreiciated.
Last reply by snarfblam, -
-
-
- Moderators
- 1 reply
- 1.1k views
I have a variable declared as a char that is going to hold a value in a table (for which the column is char(1)). I populate a dataSet with that table, and I try to assign the value to the variable as: cCriteriaTypeAbbrev = DirectCast(tblDetail.Rows(j).Item("CriteriaTypeAbbreviation"), Char)But I get an invalid cast exception. I stepped through the code, and in the command window, i typed ? tblDetail.Rows(j).Item("CriteriaTypeAbbreviation"), and the command window said that it was a string variable? Does anyone know why this is? Thx for your time...
Last reply by Robby, -
-
- 4 replies
- 4.3k views
Here is the code i use to print a document using Word Basically i open a ".dot" document, fill the bookmark, print the document then quit without saving it It works fine with office 2002 But when the programs runs with office 2003, i have some problems If outlook 2003 is currently running on the machine, closing the word document doesn't work and hangs with the following message "Word cannot save this file because it is already open elsewhere (C:Documents and Settings\...\Normal.dot)" And the user has to click on button OK to close the word window If Outlook 2003 is not running on the machine (just installed), everythings works fine Any solution t…
Last reply by SonicBoomAu, -
- 1 reply
- 664 views
Anyone see why this isn't working? c = lvProc.Items.Count z = 0 lbl1.Text = "You have " & c & " Processes Running" For i = 0 To c - 1 sitem = lvProc.Items(0 + z).Text.ToString p.GetProcessesByName(sitem) If (p.Responding = True) Then lvProc.Items(0 + i).SubItems(1).Text = "Running" Else lvProc.Items(0 + i).SubItems(1).Text = "Not Responding" End If z = z + 1 Next Thanks
Last reply by cnew, -
- 12 replies
- 4.6k views
I've got great problems solving the following problem: I've got some high speed camera that comes with an c++ api and SDK. There is an OnFrameCapture callback Function that returns a C++ pointer to the starting point of some RAW Image data stored in unmanaged Memory Now I want to 1) Get the Image 2) convert it to jpeg 3) save it to hard disk - I know some header data of the image like size, bits/p, pitch... - The Pointer is returned as UInt32 - I also know the byte structure in memory (RGB24 / RGB32 / ...) My Program is in vb.net, but I could also include some c# code... All my tries ended up between the marshal class, API memory functions, unsafe c…
Last reply by xion, -
- 1 reply
- 1k views
I have a VB.NET application where a series of external applications are launched, when the first completes, the second one then launches, and so on until the end. Here is the code I'm currently using: Dim p1 As System.Diagnostics.Process p1 = System.Diagnostics.Process.Start("app1.exe") p1.WaitForExit() Dim p2 As System.Diagnostics.Process p2 = System.Diagnostics.Process.Start("app2.exe") p2.WaitForExit() This code works, however when using my program in conjunction with Windows XP SP2, the new box asking you if you want to run the application pops up, requiring the user to click on "Run" in order to actually run the each application. …
Last reply by PaulieORF, -
- 0 replies
- 968 views
I have an application that is using "windows" authentication mode to allow me to import my NT domain users and impersonate them rather than forcing them to learn new usernames and passwords for my web app. I am using basic authentication with SSL on the IIS server though. Does anyone know of a way to clear the cache so that after the session times out if the user attempts to navigate to a page in the application the little gray box prompting them for their username and password pops back up? Thanks, Eva
Last reply by evaleah, -
- 1 reply
- 1.7k views
Hi all ! According to this MSDN article, to modify an existing subkey in a cookie, you just do this : Response.Cookies("userInfo")("lastVisit") = DateTime.Now.ToString Response.Cookies("userInfo").Expires = DateTime.Now.AddDays(1) The problem is.... it destroys all other subkeys. Actualy, it seems like it deletes the cookie and recreate a new one. So, is there an easy way to modify a subkey in a cookie or do I have to copy all values from the Request cookie inside the Response cookie before changing the Expires date ?
Last reply by ultraman,
-
Who's Online 0 Members, 0 Anonymous, 96 Guests (See full list)
- There are no registered users currently online