1,443 Posted Topics
Re: What do you mean "deduct"? Do you want to: 1) change the value by subtracting another value or 2) delete the value or 3) delete the row? | |
Re: Are you talking about function parameters or command-line parameters? | |
Re: Are you just supposed to make "words" from phone numbers? ...or is there a particular group of steps you're supposed to take? | |
Re: What variable types does a trackbar take? | |
Re: 1) You can make a WinForms or Console app that communicates across the web - To a web service - To a web server - To another app 2) You can make a WebForms (ASP.NET) app that does the same. 3) You can make a Silverlight app. 4) You can … | |
Re: > Um I thought writing code for someone isn't allowd here.... Writing the code for someone is not the problem. Doing someone's homework with no effort from them is a problem. > ... im newbie in C#, ... I'm glad you're trying to do this. It would be much better … | |
Re: Yes, you would need to create a dynamic array of strings depending on how many are created from parsing the input string. The program would count the strings and display them one-by-one. | |
Re: You have a couple of options: You can pass it a float or a double bool is_cheaper_than(float flt) const; and fix your function to compare it's current value to the one passed in to the method... Or you can pass it another Automobile class (reference or pointer) and compare the … | |
Re: That seems pretty logical. If you set each up as a separate command (before the switch/case statements), you should still receive the benefit you're expecting. | |
Re: Are you saying the VPN connection is not constant? How often does the application need to connect to the DB through the VPN? Does it need to connect automatically or can a user initiate the connection? Is there a possibility you can put the application on the same side of … | |
Re: Looping for the update is pretty standard. There are ways of sending minimal updates, but you really need to know your data (and the table structure). One of the better tried-and-true techniques is to use stored-procedures where you are sending the procedure name and the parameters. The next best is … | |
Re: If your SQL is returning something that cannot be converted, that can be a problem. What was the exact error you received? | |
Re: I would do it like this: Imports System Imports System.Collections Imports System.Xml.Linq Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim xd = XDocument.Load("..\..\XMLFile1.xml") DataGridView1.DataSource = ( From x As XElement In xd.Descendants("pricelist").Nodes() Select New With { .SYMBOL = x.Element("symbol").Value, .SECURITY = x.Element("security").Value, … | |
Re: Here is an [example in video form:](http://www.youtube.com/watch?v=yWSA6pRONPI) Here is a [web search](http://www.bing.com/search?q=c%23+chat+program+with+user+registration&qs=n&form=QBRE&pq=c%23+chat+program+with+user+registration&sc=0-15&sp=-1&sk=) I used to find it. | |
Re: There are many ways to do that. Here is one: Imports System Imports System.Linq '' Module Module1 Function IsGoodString(ByVal strData As String) As Boolean If strData.Any(Function(c) Char.IsDigit(c) Or Char.IsPunctuation(c)) Then Return False End If Return True End Function Sub Main() Console.WriteLine(IsGoodString("Travis")) Console.WriteLine(IsGoodString("78*")) Console.WriteLine(IsGoodString("(neato)")) End Sub End Module | |
Re: Try File.ReadAllLines() which returns a string array. | |
Re: You can turn a List<string> into a single string if you first convert it to an array and the use string.Join(). Like: string.Join(",", lstOfFiles.ToArray()); | |
Re: Which part is giving you the trouble? There are many issues mentioned in your posting. | |
Re: The screen will be blank until the form is drawn. Are you setting the breakpoint too early for the form to be shown? If you keep stepping through or just let it run at full speed (even in debug mode), it shows correctly, right? | |
Re: > rowValue = streamReader.ReadLine(); If you just read a line (like at code-line 20) before the loop, it will skip the first line in the file. | |
Re: All languages serve a particular purpose (or were created to solve a particular problem). C# is no exception. If I'm coding only on a Windows platform, it is my language of choice. I know it can also run under Unix/Linux under Mono, but I have not tried that. I spent … | |
Re: The problem comes from Carriage-Returns inside the cells of the DataGridView, right? If you chek the content of each cell (or target cells) for unwanted chars, you can replace them before writing them to the CSV. Like: ...Value.ToString().Replace(Char(13), " ").Replace(Char(10), " ").Replace(Char(9), " ") There are other ways, also. | |
Re: So, is the issue "Parsing the HTML" or "getting around the character set"? | |
Re: In Solution Explorer, right click the solution name and select: Add -> Existing Project Browse to your existing project and add it. Remember to add the reference from the sub-project to the main project. ...do it in the "project" tab under the Add References dialog box. | |
Re: It really depends on how you are reading and recognizing when you are finished reading. It sounds like some of your cells are not "purely" empty. ...like they previously had data but it was cleared rather than being deleted. One technique : If you scan the first column all as … | |
Re: Do you mean you are going to have 20 folders? ...and is this a copy or a MOVE? | |
![]() | Re: I might need to see the whole expression down to the semi-colon, but you might try an extra set of parentheses to help the compiler not be confused: while ((iteration < MAX_ITERATION) && (sqXY <= 4)) { /*...*/ If that doesn't work then the problem is somewhere else (or different … ![]() |
Re: How about the technique used in [this post](http://www.daniweb.com/software-development/vbnet/threads/420913/xml-int-datagrid)? | |
Re: Well, for the sake of efficiency, there is no need to declare a variable when you are just going to return a value that is easily reachable: int add(int a, int b) { return a+b; } The same goes with the rest of the functions like that (unless it is … | |
Re: I would imagine if you affix XML headers to those Nodes, you could parse them with the XML parser or Linq to XML. | |
Re: Take a look at [this list](http://en.wikipedia.org/wiki/List_of_CLI_languages). If you are familiar with any of those, it will probably be VB.NET or C# as @deceptikon mentioned. The interviewer could also mean ANY of those languages that work on the CLR. If you know any language that works on the CLR, you can … | |
Re: Set the CheckOnClick property to true; private void Form1_Load(object sender, EventArgs e) { checkedListBox1.Items.Add("me"); checkedListBox1.Items.Add("you"); checkedListBox1.Items.Add("us"); checkedListBox1.CheckOnClick = true; } | |
Re: *This should be moved from te C forum to the C++ forum* My suggestion is for you to just write each of those functions in your class and make some examples that call your methods. My suspicion is that you will get an error saying they are *ambiguous* and you … | |
Re: What's your question? ...assuming you're not just asking for someone to do your homework as that would be a violation of [the rules](http://www.daniweb.com/community/rules). | |
Re: Not sure, but can you test it by temporarily putting a MessageBox in each handler to see which one fires first? | |
Re: Like this? Imports System Module Module1 Sub Main() Dim strUrl As String = "http://profile.ak.fbcdn.net/hprofile-ak-snc4/161116_00000000000000_375500185_q.jpg" Dim strNum As String = strUrl.Split("_")(1) Console.WriteLine(strNum) End Sub End Module | |
Re: Maybe you need && instead of || | |
Re: How about checking to see if it is less than zero? if Integer.Parse(TextBox3.Text) < 0 then '...' | |
Re: I'm confused at what you're actually trying to do: 1. Count items in a table 2. Compare two tables 3. Limit number of enrollees | |
Re: How are you selecting the records from the DataGridView? If you select them in a loop (or other primitive manner), you can dictate which one is first. private void Form1_Load(object sender, EventArgs e) { dataGridView1.DataSource = (from s in new List<string> { "alpha", "bravo", "charlie" } select new { name … | |
Re: You have two TypeCode attributes, so I made an assumption you wanted the TenderType.TypeCode. Of course, depending on how many total elements and descendents you need, you maght do this a different way, but here is a sample: Imports System.IO Imports System.Collections.Generic Imports System Imports System.IO Imports System.Collections.Generic Imports System.IO … | |
![]() | Re: You can put using MyNamespace; at the top of all of the modules (and new namespaces) using the static list. You will still need to reference it by its class name. ![]() |
Re: It really depends on the type of report. You can make one out of just about anything (text, csv, xls, Crystal, others). If your report generator is a stand-alone executable (console app for example), you can use the wndows scheduler to make it run at any given time. You can … | |
Re: Well, Dot Net C++ Console apps also have it, if that's not what you meant. For standard C++, you would need to write your own function to do that. | |
Re: Are you taking about a [Data Flow Diagram](http://www.ehow.com/how_7205219_make-dfd-diagram.html)? If so, are you trying to create one in VB.NET code or just have VB.NET coders create a DFD for you? Would your DFD depend on what is to happen in the Banquet Hall? | |
Re: There is no universal solution for reading all types of files. Just like on your computer, each file type requires a different "handler". For instance, you don't use MS Word to load, read and edit a PDF file. So, for a PDF, you will need to use COM automation or … | |
| |
The End.