Topics
-
- 6 replies
- 1.2k views
I am writing my own GUI front end for MySQL using C# and the ByteFX libraries. When the user wants to open a database, it asks for the server, port #, database, user name, and password to connect to MySQL. I have a test function that looks like the following: public bool testConnection(string server, string port, string d_base, string user, string password) { string con_str = "Data Source=" + server + ";Port=" + port + ";Database=" + d_base + ";User ID=" + user + ";Password='" + password + "'"; MySqlConnection mysql_conn = new MySqlConnection(con_str); try { mysql_conn.Open(); mysql_conn.Close(); return t…
Last reply by penfold69, -
- 2 replies
- 777 views
OK, I'm stumped. I'm trying to take the substring of a string: row.ItemArray[8]=grdInfo.Rows[1].Cells[2].Text.Substring(4); The cell has data in it - "Ion 81", so there should be no problem with getting the number part of the string out of it. However, I get the error: "grdInfo.Rows[1].Cells[2].Text.Substring does not exist". This error is returned for all the methods of the Text object, but I can access the Length property. What the...?!? The error is returned even if I assign the Text property to another string: string temp = grdInfo.Rows[1].Cells[2].Text; row.ItemArray[8]=temp.Substring(4); Any ideas? Thanks!
Last reply by Diesel, -
- 0 replies
- 1.1k views
Hello forum i need help I designed my report using a user defined paper named "Voucher" ( width 8.5 inch,length 5.5 inch) but When i print directly to the printer from my web the result is not using voucher paper but Letter. I search in the internet and i found and article that suggest to use this code oReportDocument.PrintOptions.PaperSize = CType(133, CrystalDecisions.shared.PaperSize) I allready add that code but still failed but the size allmost correct i predict it print on the most similar paper A5 rotated ( width 8.27 inch, Height 5.83 inch ) can any one help me to defind the code correctly to make the report printed in the correct paper size Please g…
Last reply by achonk81, -
-
- *Experts*
- 3 replies
- 798 views
I currently have a table (in Access) to store information for articles such as Author, Headline, ArticleText, PostDateTime, etc. In addition to the regular information, these articles can also be considered Active or Archived, so I've tossed in a true/false IsActive field. Finally, I plan to let the author set an expiration date, ExpDate, for the articles, whereby the article will automatically be considered Archived if it is viewed after the expiration date. tblArticles: ArticleID (AutoNumber) Author (Text) Headline (Text) ArticleText (Memo) PostDateTime (Date/Time) IsActive (Yes/No, formatted to True/False) ExpDate (Date/Time) So my question i…
Last reply by fizzled, -
-
-
- Administrators
- 2 replies
- 794 views
Hi All, I got permission issue when accesing network files from the application that was started using Process component. Actually I have my .NET windows service running. From this service I start MFC application using .NET Process class setting working directory and all necessary info. This app uses OpenFileDialog to access some files over network. When I try to access some computer on network from the same workgroup I get message that this computer is not accessible, you might not have permission to use this network resource. If I start the same MFC app not from service but just double clicking on it I can access all computers on my network wit…
Last reply by romanm, -
-
- 1 reply
- 859 views
Hi folks, I have a windows app where i trap exceptions in try..catch etc and handle them there when they occur. I sometimes output a message to the user if necessary and also write the output to the console (Console.writeln(...). This is fine when I am working in debug mode in VS. But is it possible to see the console messages when the program is runningin standalone mode. Can I redirect the console message to something usefull, without having to add loads of code. Any help is greatly appreciated. :-\
Last reply by penfold69, -
- 1 reply
- 753 views
I'm looking to either: 1) Add a design time button to a control to have a configuration window show. 2) Show a configuration window when an item is first added to a form. On the form I'll be displaying a collection on the Form (control collection) and I'll be displaying 2-4 control collections on the control. Basically the control (aside from other purposes) contains a state property and when it changes, it affects other controls on the form, such as enabling, disabling, hiding, clearing, etc. So if anyone can show me (or point me in the right direction for) the basics of the proper event and way to check the logic, I would be most appreciative :D
Last reply by code Mechanic, -
- 2 replies
- 908 views
Hi. My goal here is to import an xml file into my sql server database. (I'm semi new to using xml) First, I am importing the xml file into a dataset using ReadXml. When I first did this, I would bind a datagrid to the dataset, and it worked great, but it was in a hierchechal style view....with plus symbols etc that would expand the records into more detailed information. This isn't really what I wanted, I just want to import all the info into a single table....but, I discovered that the dataset actually consists of 14 different tables after I import the xml file. Theoretically, this would be fine, I can just create 14 tables in my database...(or create my own t…
Last reply by joeybagadonutz, -
- 1 reply
- 587 views
Ok I will apologize because I am not a programmer and I will need anyone who responds to be very clear. I appreciate any and all advice and help I am given. Ok here it is, I have a program being developed and it seems from the last test to be about 85% done. Now the people programming have run into a snag which seems a bit strange since they have gotten this far already. So I will give you some info on the program the purpose of it and what the snag is and why it is occurring. Our website and a description of what the program mimics Note: our site is built using perl_mod some java and html and is hosted on a Linux server. We use MYSQL Database to handle the …
Last reply by fizzled, -
-
- Leaders
- 5 replies
- 1.7k views
Hello All, I was wondering what the best way to monitor the mouse cursor graphics image would be. Is there a variable I can monitor on a while loop that shows where the cursor gets it's image (i.e. filename)? I'd need this to monitoring even as the mouse moves across different windows. I want it to monitor what the cursor graphic is as it runs across windows using directx graphics well. I'm not sure if that's possible. If the filename cant be retieved then some other identifier would be nice, even the mouse cursor image itself! If i could grab the mouse cursor image at certain time intervals that'd be great. I dont think that the cursor handle would work because eac…
Last reply by NeuralJack, -
-
-
- Leaders
- 3 replies
- 1.6k views
i thought one is supposed to be able to tab through the pages of a tab control, but apparently not.... tabbing only goes only through the elements on the first tabpage and then instead of going to the second tab page it jumps to the next control on the form. i do have the numbering of all the tabstops in order, i also tried to put this in the constructor of the form: Me.TabPage1.TabStop() = True Me.TabPage2.TabStop() = True Me.TabPage3.TabStop() = True etc. but still i am not able to tab through the pages of the tabcontrol, still only the first page is "tabbable". can someone help?
Last reply by snarfblam, -
-
Hi, I'm trying to map network drive with this code: [system.Runtime.InteropServices.DllImport("mpr.dll", EntryPoint="WNetAddConnection2A",SetLastError=true)] public static extern int WNetAddConnection2(ref NETRESOURCE lpNetResource, string lpPassword, string lpUserName, int dwFlags); [system.Runtime.InteropServices.DllImport("mpr", EntryPoint="WNetCancelConnection2A")] public static extern int WNetCancelConnection2(string lpName, int dwFlags, int fForce); [structLayout(LayoutKind.Sequential)] public struct NETRESOURCE { public int dwScope; public int dwType; public int dwDisplayType; public int dwUsage; public string lpLocalName; public s…
Last reply by sizer, -
-
- *Experts*
- 7 replies
- 1.1k views
I have made an editor that should read text files. When I am in the editor and press the open file, It opens text file without problem. when I double click on txt file I would expect that this editors open the file, but instead it opens the editor, but it never show the cotents of the file. It is like the openfile function never get called. Somebody experience the same ? What function does it jumps to, when I double click on a txt file ?
Last reply by Jedhi, -
-
- 2 replies
- 1k views
I have a combobox and i have added Items collection. When i run the program the user is able to select one from the list and he is also able to edit the selected value from the combo box. Is there a way to stop the user from editing the selected value in a combo box in the run time.
Last reply by shankar_it, -
- 13 replies
- 1.7k views
I making a program that will help me with Trimming characters off the begining of each line of Text. I need this because there are over 93,000 lines if I count them all fortunately there arent 93,000 in just one text file.....its group of files total ANyway the Text in each one looks like this 1:1: Line of text 1:2: Line of text 1:3: Line of text 2:1: Line of text 2:2: Line of text 2:3: Line of text The text is in put into an array What I need is to Trim it so that the results are as Follows 1:1 Line of text 2 Line of text 3 Line of text 2:1 Line of text 2 Line of text 3 Line of text 3:1 Line of text 2 Line of text 3 Line of text NOTE i…
Last reply by vbMarkO, -
- 2 replies
- 907 views
I've got a web form with a list box on it. When I click on an item in the list box, I need to open another window and display some details about the selected item. Should I use a session variable to capture the selected item from the list box? Or is there a more efficient way to do that?
Last reply by rangerstud620, -
- 3 replies
- 873 views
Hi, I'd like to know how I could easily secure the information a user is filling in a webform. If someone can give me an easy way to do it, it would be nice. Many thanks. NB : VB .NET code should be appreciated.
Last reply by scalf, -
-
- Administrators
- 5 replies
- 14.8k views
Really odd problem - I am trying to add an integer value to a cell in Excel using the following statement: "INSERT INTO [Task$] ([CLIENTS], [ASSIGNMENTS], [sTATUS], [ELAPSED TIME]) VALUES( '" + cbClient.Text + "', '" + cbAssignment.Text + "', 'IDLE', '0')" The problem is the [ELASPED TIME] value added... all I need to do is initialize the cell to 0 (integer or double) But this doesn't work correctly - if I open the file (.xls) in EXCEL afterwards I get a green ! on the cell that says "Number Stored as Text" Anyone have a clue? Any help would be greatly appreciated Thanks,
Last reply by mskeel, -
-
-
- Leaders
- 5 replies
- 1.1k views
Hi I want to be able to draw some lines (Any angle) then perform an operation based on which one i've click. I can draw the lines using GDI but how would i know if ive clicked on one? Phill
Last reply by PROKA, -
-
- 0 replies
- 1.2k views
Hi There, I was wondering if anyone knows how to handle drag/drop of an Outlook item to a vb.net form? What I want to do is save the dropped Outlook item as a .msg file. Please see code below: note that objMemoryStream = e.Data.GetData("FileContents") returns nothing - I had expected to read file data from this. Any help much appreciated Thanks Mike Private Sub frmMain_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles MyBase.DragDrop Dim aFiles() As String Dim intCount As Integer Dim strFile As String Dim objMemoryStream As MemoryStream Dim aFileGroupArray(512) As…
Last reply by MikeSCOTT05,
-
Who's Online 0 Members, 0 Anonymous, 47 Guests (See full list)
- There are no registered users currently online