Topics
-
- 1 reply
- 2.6k views
hi i am using winforms in vb.net .. i have this for loop which is below basically i am reading the firstline from a textfile there are empty spaces between the text it is returning therefor everywhere, where there is a space i am adding a number. this is working fine but for some reason after reading the last string which the textfile the for loop keeps on going and adding another extra column for me . can someone tell me how i can make the for loop to stop as soon as it at the end of the first line where there is the last string.. thanks in advance Dim oSR As New StreamReader(strFilePath) 'GO TO THE TOP OF THE FILE AND GET THE BEGIN oS…
Last reply by Diesel, -
- 1 reply
- 782 views
Hi everyone, Does anyone here know how can i hide the main menu from a form. I tried the .Hide and it didn't work....
Last reply by Di7bash, -
-
- Leaders
- 10 replies
- 1.3k views
I need to create a simple card game for class, but it needs to be smart enough to deal out random cards and only deal each individual card once. I have to do this with arrays, no other choice. I want to make this question as simple to answer as possible so here goes. First, I want to take my predefined array and just having it be reordered. After that is done, I'd like to be able to deal out the top card (0) when I press a button, then the next (1) and so on, until I reach the final card (51). I've searched all over this forum and the net, and there doesn't seem to be any simple way to just do this with a predefined array. Everything I find is more focused on cr…
Last reply by Diesel, -
-
-
- *Experts*
- 11 replies
- 2.3k views
OK I have a program and all that really matters is that I am displaying a picture on a picturebox. When I display a 800 by 600 picture on a stretched picturebox it has horrible resolution it gets all pixelated and blurry and when it is displayed in normal mode it is like 5 pixels wide. Is there something I am forgetting or maybe I am doing wrong, if you have answers please tell. Thanks
Last reply by daveydave400, -
-
- 0 replies
- 806 views
Hello! I need to create Oracle stored procedure at runtime with visual basic .net. I want that everytime my application starts, it will run a "create or replace procedure" statement on ORACLE server. I tried to read the SQL statement from a script file (text file) into an OracleCommand object and exeute the statement by this. In fact, it created something in the database, but it seems to create the procedure with errors... I think it maybe related to the text format (such as ";" etc.). Does anyone know how can I do it right? Thanks in advanced, Tom.
Last reply by rahavtom, -
-
- *Experts*
- Administrators
- 3 replies
- 3k views
Hello all, I have a question about convert strings into dataTime format (in a globalization manner). Consider I have the following code: Dim strMonth As String = "12" Dim strDay As String = "30" Dim strYear As String = "2005" strTime = strMonth & "/" & strDay & "/" & strYear dtmTime = CDate(strTime) dtmTime.ToString("MM/dd/yyyy") The code would work and return "12/30/2005" if we are using United Sates DateTime Format (Regional Settings in Control Panel). However, if we choose some other culture, say Britsh, their regional datetime string format is "DD/mm/yyyy", so the above code would crash because CDate() converts a string to datetime base…
Last reply by DiverDan, -
-
-
- Leaders
- 12 replies
- 1.2k views
Obviously Im not looking for code -> just a pointer :) http://img455.imageshack.us/img455/2369/object4cg.png Im creating a datagrid column object with a button and when they click the button I want something like the above to appear (obviously with different controls; a few input boxes and buttons etc. Anyways what I want to know is what kind of control it is, and how would I make it? I kind of want it to act like that annoying bubble you get in the system tray (saying windows has updates available etc); so it should stay there until a user click close etc -> but only in the child windows (application is a MDI and I only want it to be on the child document). …
Last reply by Goksly, -
-
-
- Administrators
- 6 replies
- 9.9k views
:confused: This is so simple, yet I cant figure it out nor can I find any refence to it anywhere (probably because it is so simple). How do I force a refresh? What is the syntax for reloading the page?
Last reply by DumAsp, -
-
- 2 replies
- 1.8k views
I'm still quite new to vb.net and I have just come across enum whilst using a third party software. This software uses enum to populate a dropdown list. So I therefore have an enum as shown below which display 'Yes' and 'No' in the dropdown. Public Enum myYesNo Yes No End Enum This works fine, the problem / question I have is, am I able to dynamically build an enum using values from a datareader?? e.g. Not correct code just want to try and give an example Public Enum myDynamic Do While myReader.Read ' Add a value from myReader to the Enum Loop End Enum As I said I have not come across Enum before and I have read the posts o…
Last reply by lidds, -
-
- Leaders
- 2 replies
- 819 views
hi to all, I'm makin an application that when the user presses the F3 key a form will popup. I have a main form that is a Mdi_parent but when i key press it does nothing...dont understand why. Here is the code i have [csharp] private void fmrMain_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e) { if (e.KeyCode == Keys.F3) { fmrPopUP pop = new fmrPopUP (); pop .MdiParent = this.MdiParent; pop .Show(); } } [/csharp] any ideias?
Last reply by rfazendeiro, -
-
- 2 replies
- 2k views
can someone tell me how i can add rows from one datatable to another.. ahh i have been on this for like ages..this aint working for me..i keep on getting this row belongs to another table...thanks in advance oDT is the datatable which has the rows.. and from oDT Datatable's rows i want to put them in the oDTT datatable's rows.. Dim dgRow As DataRow dgRow = oDTT.NewRow() Dim os As DataRow For Each os In oDT.Rows dgRow = os dgRow(intcount) = os Next oDTT.Rows.Add(dgRow)
Last reply by bri189a, -
- 1 reply
- 763 views
if i have a static method like this: public static int CalculateNewInt(int myInt) { myInt += 10; myInt = (myInt * 5) / 10 myInt += 100; return myInt; } would I have to worry about concurrency here. what i mean is this. lets say my thread gets to line 3 of the code ready to increment the input parameter variable by a 100. but before this happens another thread executes this method with a different input parameter. would this much the calculation up? i really dont understand this. thanks
Last reply by bri189a, -
-
- Leaders
- 6 replies
- 1.7k views
In ADO, the path to the database has to be exact be it in varible format or "C:\whatever\whatever.mdb". I was wondering if picture boxes are the same. Do I need to define in code where the image is "application.startuppath" or does the elipses use the app startup path?
Last reply by matt09524, -
-
-
- Leaders
- 1 reply
- 1.7k views
i know i can use string.replace to find a character and then replace it with another... what if i want to find 2 characters? what is the best thing to use? can this be done with one string.replace() or two of them (one for each character) or is there a better way? i want to be able to remove '&' or '=' from a string. thanks for the insight. //Gets rid of '&' character string test = "This & That"; test=test.Replace("&", " "); Console.WriteLine(test);
Last reply by dynamic_sysop, -
-
- 1 reply
- 839 views
I can't seem to figure out what seems to be a simple task. I have a tool that when clicked loads an image into a picture box on a win form. The images can be all different sizes. The goal is to make a fixed size win form that will hold the picture box. The picture box should expand to accomodate larger images and the user should be able to scroll to view the entire image. I tried adding scrollbar controls but I don't know how to hook up the scroll event. I also tried to use Autoscroll on the form but it doesn't actually scroll the picture box around. There has to be a way to do this but I'm missing it. Any suggestions?
Last reply by Diesel, -
-
- Administrators
- 1 reply
- 2.4k views
Hi, Before deploying a file, should you change the configuration of the project/solution to release rather debug or Active(debug)? Mike55.
Last reply by PlausiblyDamp, -
-
- 1 reply
- 4.4k views
Is there anyway to write code in vb.net to alter the the IFieldObject. I'd like to be able to adjust the height or width and to remove any border colors. any help would be appreciated.
Last reply by alarconspawn, -
- 3 replies
- 2.1k views
Hey peeps! Alright my problem is as follows, for whatever reason I may have (a clever one trust me :) ) I _need_ to be able to open up binary files(or text, but binary should be faster so i'm going with that) containing encrypted text in Unicode. My problem is more specifically that in my recent try runs I've been unable to encrypt a file from C# and then via PHP decrypt it. The stuff I get back from php is just mumbojumbo (same key has been used). I've attempted this with the Blowfish algorithm, one that I found to .net and one which I found to PHP. NOW, correct me if i'm wrong but shouldn't the 'same' algorithm be able to open whatever data made by any software…
Last reply by mark007, -
-
- Administrators
- 5 replies
- 797 views
My shared host has set up a server for us to do VS2005 demos on. They did not install SQL Server Express or it's not reachable by my application...can't get a straight answer from them. When doing web parts, the web part manager, or whatever it is, that controls the persistence of user settings is built by default to connect to SQL Server (how I'm not sure...connection string somewhere?), so anyway I made a custom personalization class for it to talk to. Problem now is that the darn manager wants it to be registered - which can't be done because it's a shared host and an individual web site isn't going to be allowed to register their custom objects. Does anyone ha…
Last reply by PlausiblyDamp, -
-
-
- Leaders
- Administrators
- 6 replies
- 1.1k views
I don't know what is this control called, but, i need to do something similar with the picture i have shown. What are the control that I could use in order to do this? Thanks in advance. buttonbar.bmp
Last reply by georgepatotk, -
-
Who's Online 0 Members, 0 Anonymous, 47 Guests (See full list)
- There are no registered users currently online