86 Posted Topics
Re: [QUOTE=onlinessp;1243253]can another way through which UI thread remain running[/QUOTE] You will never, ever, see a form respond to a form change while the form's thread is active. The form thread MUST be idle, for changes to be returned to the form's thread to act on them. The timer solution works … | |
Re: [QUOTE=urtrivedi;1217719]Following query will give you all records that are in A, whenever b.flag is 'Y' it will show 'Y' other wise it will show null. You may still apply where clause at the end of query to filter your records. [code] SELECT a.*, case when b.flag='Y' then b.FLAG ELSE NULL … | |
Table1 has clustered PK A, 2 has clustered PK [A,B] and has a foreign key to table1. Both A and B are uniqueidentifiers and when table2 adds a record, B is always set to newid() so B is unique in table2. For each A value, there aren't more than 100 … | |
![]() | Re: [QUOTE=chipbu;1187300]1 question: why do you take away 65? Sorry for asking this but I am just a beginner programmer[/QUOTE] A character field is just a couple (or four) of bytes of information. You can implicitly cast this Char field to int, which is what adapost did. ASCII is a coding … |
Re: Printing is more complex than just saying "Please print my form." You need to hit the text books. Short form - create a System.Drawing.Printing.PrintDocument instance. You handle the PrintPage, BeginPrint, PrintPage, and EndPrint events to create the print image and send it to the printer. Huh? Wha? Again, hit the … | |
Re: [QUOTE=domingo;1161880]Hi i have a problem Error 1 Operator '<' cannot be applied to operands of type 'object' and 'System.TimeSpan'. to use timespan with < is there any type of code? [CODE] SqlCommand cmd = new SqlCommand("SELECT * FROM tblBooking", conn); SqlDataReader rdr = cmd.ExecuteReader(); DateTime ts = new DateTime(); TimeSpan … | |
Re: If your problem is solved you should mark it solved. An alternate is to put an if statement in your move loop. [code] if (!Stopping) File.Move(s.FullName, TargetFile); [/code] It would finish the last move of files and then just loop through everything without doing additional work and then leave. Since … | |
Re: [QUOTE=villeson;1138854]Hey guys, snipped So I've made an array of label Arrays and I'd like to be able to choose the label like this: [CODE] teamList[0][0].text [/CODE] I'd like it to select the first label from the first list of label arrays so I can set the Name in the labels … | |
Re: [QUOTE=apegram;1134487]You an use System.IO.File.GetCreationTime(filename) to get when a particular file was created. Compare that to today's date and delete as necessary. You can then open a file with append access via a StreamWriter to write to a file. If the file exists, it will merely be appended to. If not, … | |
Re: I don't understand. You have a datagrid that is displaying data. To do that you need to bind a dataset to it. In order to have data in a dataset, it must have one or more datatables in it, to store your data. Why don't you trace the code generated … | |
Re: [QUOTE] Human h2 = new Man(); this Man class reference will be created and Human class object will be created and we can call h2.ManMethod().[/QUOTE] That's true, but intelisense won't detect that "ManMethod" is a valid method. If you said [code]Human h2 = new Woman(); h2.ManMethod(); [/code] It would compile, … | |
Re: [url]http://www.daniweb.com/forum58.html[/url] 1. You declare piccollect, assign it memory and then never use it. 2. You ask how to handle multiple picture boxes. Don't hardcode the picture box!!!! [code=vb] Public Function GetByteArrayFromImage2(ByRef pb as PictureBox ) As Byte() Dim ms As New System.IO.MemoryStream With pb .Image.Save(ms, pb.Image.RawFormat) End With [\code] ... … | |
Re: [QUOTE=serkan sendur 6;1131940]why the heck you created a console app?[/QUOTE] Also, he did say the code sucked. | |
Re: I hope the technology doesn't get too good, the image fuzzed text validation box to prevent reading text from images is unreadable enough as it is. | |
Re: I don't know of any way to control one object in the form that way. You can make the box's background totally transparent using the form's TransparencyKey property. I know that isn't what you asked for. | |
I purchased a book that included an evaluation version of 2008 enterprise. I had downloaded SQL 2005 express and had tried to download 2008 which said it succeeded and I was left with 2005. I checked the OS list of supported ones. XP professional is on the list. XP home … | |
Re: [QUOTE=firebirds98;1101372]So I am new to C#, and I am trying to to figure out what the problem is with my code. I know this works in VB.Net just not sure why it doesn't in C# [CODE] private Connection myConnection = new Connection(); private SqlConnection mySqlConnection = new SqlConnection(myConnection.connectionString); [/CODE] ...[/QUOTE] … | |
What is the benefit of a bool property that just gets and sets a bool? I know the benefit of only a get property or decisions that need to be made before you set a bool. I've seen examples using just get/set. I don't get it. What harm could making … | |
Re: > I tried to use it, but getting an error Error 1 The type or namespace name 'Message' could not be found (are you missing a using directive or an assembly reference?) > my application code is given here ... } } > ... That message tells you exactly what … | |
Re: Are you declaring a string and adding string variables to your list or are you running the function in the add? If you are working with strings, make sure what is passed is a string. If it is receiving an object in the key that it can't figure out the … | |
Re: [QUOTE=ddanbe;1099164]Make a database of your friends. Store info like address, phone, picture and whatever you want. Make an input-output form as front end, include printing and whatever you see fit. That could keep you buzy for months, while learning alot.[/QUOTE] Great suggestion! Simple interfaces, simple IO, not much calculations involved, … | |
How does a property that returns a byte[,] signature have the same parameter types as a function that returns a bool and has a passed byte[,] signature? Here is the command: ...My Documents>csc /target:library /out:CourtneyNumbrs.dll CourtneyNumbrs.cs here is the output: Microsoft (R) Visual C# 2008 Compiler version 3.5.30729.1 for Microsoft … | |
Re: 1. It is poor design to have a character field value added to a table that is contained in another table instead of referencing the table (IE WindowID) 2. It is poor design to use (char) for fields that don't have a fixed number of characters 3. It is poor … | |
Re: 1. You can't add rates, it just doesn't work 2. When you display percentages, multiply by 100 3. You are processing and THEN checking for user errors and doing nothing about it. Instead force them to get it right before going on. 4. Don't assume the user entered correct data … | |
Re: I don't know if there are indexing routines, but you can set your starting position at 0. while it is less than the length of the string and the character at that position is blank go to the next starting position set your ending length to 0 and while the … | |
Re: [QUOTE=songweaver;1038294]Great! Now how do i get the area and the perimeter and are from clsRectangle to the area and perimeter boxes?[/QUOTE] I assume you mean text boxes. There is a string property called "Text" that you can set. When you do, you can set that value to the returned property … | |
Re: [QUOTE=Rahul002;1028658]Hello, I want to create database on SQL Server using Javascript and HTML. User will input following data. Server Name, Database name, File Sizes. When I will click "Submit" button database should be created on Selected server with entered name. I am using Client side HTML and Javascript. we need … | |
Re: 1. Your format is almost unreadable. I suggest putting commas between column names and if your column name has a space, bracket it like <cus name> 2. You can't have a dynamic number of columns in a single result set 3. What you want isn't none too clear either. 4. … | |
Re: "You will create a set of either collections or arrays" "Set" means a collection in terms of English, not as a program object type. You can choose collection"s" or array"s". This could be set up as Dim values(6,10) as string and redim the second value, but this violates your teacher's … | |
Re: [QUOTE=fulcrum9;1034012]Hello, I'm a beginner in Visual Basic and I was wondering if it is possible to shorten twenty subs into only 1 sub. example: [code]Private Sub box1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles kist1.Click Dim box1Click As Boolean = True End Sub Private Sub box2_Click(ByVal sender As System.Object, … | |
Re: It is preferable to execute a procedure over letting your code have ANY access to tables directly. I pulled the following script from help files looking up ExecuteNonQuery. Note the same type of query with SQL objects is available as well. [code]Public Sub CreateMyOdbcCommand(myExecuteQuery As String, _ myConnectionString As String) … | |
My name is Ken, over 50, graduated as a mechanical engineer. Days, working as a mechanical engineer --- 0. My wife has a lifetime interest in horses, I could leave them, but I do enjoy being a navigator in something called combined driving. (A three phase event, where only marathon … | |
Re: 1. You are assuming your client is honest. It is safer to set up a string variable, verify What you get is numeric before going on. 2. Arrays are zero based indexes. You should start at 0 to N-1 and make sure N-1 is less than or equal to the … | |
Re: So many problems in so few lines 1. If you "Try Catch End Try", DO SOMETHING after the Catch. This function goes blythly on when the most blatent errors can occur. (IE it would run OK on my machine with your connection string. Or would it? Everything fails in the … | |
![]() | Re: 1. sumdollaramtDecimal has to be more than 0 for any sum to be added to it. This looks like a logic error. Should that be If dollaramtDecimal > 0 Then sumdollaramtDecimal += dollaramtDecimal? 2. You need a process to transfer the text from the text box to the numbers you … |
On visual studio watch1 "NumbersLcl(xc, yc)" is 6, "NumbersLcl(x1, y1)" is 7. Both "y1" and "yc" are 0. All variables are byte and NumbersLcl is (2,2) as byte. How can the following statement evaluate as true? If y1 = yc And NumbersLcl(xc, yc) = NumbersLcl(x1, y1) Then isfound = False |
The End.