Topics
-
-
- Leaders
- 3 replies
- 1.5k views
Hi all, I have a mdi parent and some mdi child forms. When i open the mdi childs I put a mnuitem visible and rediochecked refering to the child form opened. Basicly its to have a way of navigate trought openned mdi windows. When i close de mdi form i want to hide the menu item that correspond to the closed child form. I wanna know how can i do this. The problem is to access to the mdiparent reference to manipulate its controls. Any help or code will be welcome. Thanks a lot Teixeira
Last reply by snarfblam, -
-
- 0 replies
- 913 views
Hi. I design reports with Crystal Reports in .NET 2003 that contain box control. I set the box to be rounded and filled with gray color, but when I run the report, I get the preview, but my box is just black squared box, without rounding and gray background. Does anyone know it?? Thanks, Tom.
Last reply by rahavtom, -
- 0 replies
- 1.8k views
here is my current situation. I develop a program on my computer's localhost. From there i contact Active directory succesfull using a connectionstring like: LDAP://OU=BE,OU=SE,DC=eu,DC=aagp,DC=corp. This works fine. My computer is in and OU under the BE folder, and so is my User. I have no problems connecting to the Active Directory. But now that my code is finished i want to put it online on one of the company servers. but when i use the connectionstring there it gives an error that "The specified domain either does not exist or could not be contacted". As i was programming i noticed that i couldn't reach branches of the Active directory that were above m…
Last reply by RTT, -
-
- Leaders
- Administrators
- 6 replies
- 654 views
Hiya i recently took the plunge into vb i have bought myself vb.net (standard) 2003 edition along with Visual Basic.net for Dummies. I was going throught the book and came to a task where the author wanted me to make a programme that had diffrent smiley faces which when clicked displayed messages. This is the code i have used Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picSmile.Click System.Object, ByVal e As System.EventArgs)_ Handels(picSmile.Click) picSmile.BorderStyle =_ System.Windows.Forms.BorderStyle.FixedSingle() picFrown.BorderStyle =_ System.Wind…
Last reply by Ontani, -
-
-
- Leaders
- 2 replies
- 1.1k views
OK, I'd like to create a Inno Setup script on the fly. So, what I need is to run a command like this: Dim Quote As String = Microsoft.VisualBasic.ChrW(34) Dim strFile As String = "iscc.exe" Dim Arguments As String = Quote & "myproject.iss" & Quote & " /Q" System.Diagnostics.Process.Start(strFile, Arguments) '/// launch the chm file to view it. but the problem is, that cmd window is shown. How can I silently execute it and read it's exit code? 'Valid options are: "/O" to specify an output path '(overriding any OutputDir setting in the script), '"/F" to specify an output filename (over…
Last reply by HJB417, -
-
-
- Leaders
- 4 replies
- 856 views
The IList interface provides the property Item(Index As Integer) As Object, which is read/write. Many classes that implement IList, however, have an Item property which is of a different type and read-only (System.Windows.Forms.Control.ControlCollection and System.Windows.Forms.ListView.ListViewItemCollection for example). If you cast one of these collections to IList, then you can access the property Item(Index As Integer) As Object, but otherwise this property does not show up in intellisense or the object browser. I am making my own collection, which implements IList. How can I reproduce this? [Edit]Also note that this also applies to other members of IList, such…
Last reply by snarfblam, -
-
-
- Administrators
- 5 replies
- 1.2k views
hi folks i'm developing a class library that is supposed to access to App.config an read/write some values. i'm allways getting an error "key is not defined...". Dim test As String Dim configurationAppSettings As System.Configuration.AppSettingsReader = New System.Configuration.AppSettingsReader test = CType(configurationAppSettings.GetValue("pw", GetType(System.String)), String) but using the same code inside a winform-application works perfect. so there must be some main diferences in accessing the config-file in class libraries or in winform-applications... can anybody help me out please? best regards georg
Last reply by Mister E, -
-
-
- Administrators
- 4 replies
- 1.6k views
Hi, I was wondering if some kind soul could see fit to helping me with my little problem... I am trying to use Outlooks feature of sending mail.. and it is not working, I have copied code and even downloaded code from other websites about doing all fancy things with it, yet it will not work. It will always crash on this line: Dim ol As New Outlook.Application() and say file not found! I have included all different references to try and get it to work.. but I might be choosing the wrong ones.. I have added: MAPI Microsoft.Office.Core Office Outlook I don't see anyother references which stand out for it. I am about this close '----' to smashing my monitor…
Last reply by PlausiblyDamp, -
-
-
- Moderators
- Leaders
- 8 replies
- 1.2k views
I created a function which accepts 2 parameters : user and pass. When I acces that function, I get a tooltip about the user and a pass . How do I specify in the tooltip what is the purpose of the function and other details, like most of functions from .net framework have ?
Last reply by PROKA, -
-
- 1 reply
- 1.1k views
Synopsis: I have successfully gotten a .txt file from my site and displayed in a text box. Now i need to print that .txt file in my default printer. Code: Dim printFont As System.Drawing.Font Dim sr As System.IO.StreamReader Dim wc As New System.Net.WebClient Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage readmeh = New System.IO.StreamReader(wc.OpenRead ("http://mysite/text.txt")) printFont = New System.Drawing.Font("Arial", 10) e.Graphics.DrawString(SR, printFont, Brushes.Maroon, 1, 1) End Sub …
Last reply by neodammer, -
- 1 reply
- 1.4k views
I have written a small application plus dll that generates a database automation class. Where can a person upload a application like this as shareware for free. Thanks.
Last reply by PROKA, -
- 1 reply
- 789 views
Hi Anyone use the above mentioned control?? Having problems displaying hierarchical data records Mike55
Last reply by PROKA, -
-
- Administrators
- 4 replies
- 937 views
I thought I am skilled enough to resolve any null_exception, but damn me, i don't know how to repair this one. Check the attachment
Last reply by PROKA, -
-
-
- Administrators
- 2 replies
- 575 views
I am using the code below (one of way too many samples) trying to accept strings from form and pass them to ODBC connect query. No matter which way I twist it, I always get a Format exception error. I can not get the input string to accept the three parameters in the correct format. Any ideas? Private Sub btn_search_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_search.Click Dim p_tax_year As Integer = Convert.ToInt32(cbx_tax_year.SelectedText) Dim p_taxpayer_doc_num As Integer = Convert.ToInt32(tb_taxpayer_document_nm.Text) Dim p_taxpayer_ssn As Integer = Convert.ToInt32(tbx_taxpayer_ssn.Text) 'Dim…
Last reply by jsscott, -
-
- 1 reply
- 901 views
Hello, my name is Jimmy I have an idea for a project I would like to start a project in which I will need much help however I would like to see if there is enough potential intrest in starting a project of this size. Unlike the direct Unmanaged C to Managed C++ port of Quake 2 by Vertigo Software (http://www.vertigosoftware.com/Quake2.htm) I want to create a .NET wrapper around the Quake 2 Engine so that it can be accessed from C#, J# or VB.NET (or any other .NET language for that matter), the only problem is that I'm exactly what you might call skilled in C++ and I don't know much about the Quake code talk about creating a managed wrapper. In a nutshell, th…
Last reply by Ontani, -
- 3 replies
- 886 views
Hi all Am attempting to update a database table after making changes to the table by using the following code: Public Function UpdDataSet(ByVal memberID As Int16, ByVal GroupID As Int16, ByVal OrgID As String, ByVal dataset As DataSet) Dim daDataAdapter As New SqlClient.SqlDataAdapter Dim nRow As DataRow nRow = dataset.Tables("GroupMembership").NewRow nRow("Member_ID") = memberID nRow("Group_ID") = GroupID nRow("Org_ID") = OrgID dataset.Tables("GroupMembership").Rows.Add(nRow) Dim cncon As New SqlConnection(clsConnection.osqlStr) cncon.O…
Last reply by Afraits, -
-
- Administrators
- 1 reply
- 588 views
I have two functions (GetAllAccounts and GetTeamAccounts) that call another function (GetReader) to pull data from database. See code below. The function GetAllAccounts uses a stored procedure 'spAllAccounts' that does not require parameters. The second function GetTeamAccounts uses stored procedure called 'spTeamAccounts' which requires a parameter. Obviously I could use two separate readers one using the parameter and one without. But I want to save on code. So my question is how, within the GetReader function do I ascertain which function called it? If it is GetTeamAccounts then I can add a parameter (as shown below in red) using IF. Function GetAllAcco…
Last reply by PlausiblyDamp, -
-
- 2 replies
- 863 views
Hi All, I am quite new to programming and have grasped most things except for Nested For Loops which just will not click!! I am trying to write a small application which loops through two datasets and compares values in dataset1 to the values in dataset2. So far my code looks like this lblCheckDone.Visible = False lvbPartCodes.Items.Clear() If IsDBNull(DsPOPPartCodes1.POP_Parts_Costs) = False Then DsPOPPartCodes1.POP_Parts_Costs.Clear() SqlDAPOPPartCodes.Fill(DsPOPPartCodes1.POP_Parts_Costs) If IsDBNull(DsWDPartCodes1.POP_WDPcodes) = False Then DsWDPartCodes1.POP_WDPcodes.Clear() SqlDAWDPartCodes.Fill(DsWDPartCodes1.POP_WDP…
Last reply by martin_d_bell, -
Input
by rifter1818- 2 replies
- 1.1k views
Im working with C# and i need an input method that can ignore whitespace (from a file) something like c++'s ifstream would be great... inputing floats, strings and ints. Really soon would be nice too as the time i have to finish is measured in hours, thanks.
Last reply by HJB417, -
-
- Leaders
- 3 replies
- 786 views
Hi, I am absolutely new to .NET and want to know whether installation of .NET can be done and used on Win XP home edition ??? Thank you all in advance.
Last reply by neodammer, -
-
Who's Online 0 Members, 0 Anonymous, 125 Guests (See full list)
- There are no registered users currently online