472 Posted Topics
Re: This downloadable project seems to do everything you want: [URL="http://www.dreamincode.net/forums/showtopic57482.htm"]Countdown Project[/URL] | |
Re: Try using a BLOB for DB Field and use a [inlinecode]MemoryStream[/inlinecode] for IO file transfer. | |
Re: Your relative path is incorrect because it is checking from the bin folder where the app is running from. Try "..\\..\\Test files\\sample.txt" to get to the root of your project. | |
Re: How you define arbitrary links is dependant on DB, Tool, and or app interface support. Here is a related link that shows how someone implemented similar in a RichTextBox: [URL="http://www.codeproject.com/KB/edit/RichTextBoxLinks.aspx"]http://www.codeproject.com/KB/edit/RichTextBoxLinks.aspx[/URL] You could create a parser that formats your text accordingly prior to feeding it to the control. | |
Re: Welcome to C#! As far as I can tell so far, you need help understanding what your assignment is, and you are not ready to begin coding it in C# until you do understand that. I think you should contact professor or classmate to get a better understanding of the … | |
Re: [QUOTE=guiman;958658]I have a message Box with two options, Retry or Cancel. Upon clicking cancel, I want to close the MessageBox and then load the main Form. Any idea how to do that? This function is already within a button_click function and I want to get out of this function and … | |
Re: If you are looking for a way to count all child nodes of each node, including children of any branches, then that it pretty easy. You just need a recursive method to do it. It's hard to understand the logic of the relationships and the outcome of what you are … | |
Re: Here is a link to a c# project using AJAX: [URL="http://www.codeproject.com/KB/aspnet/Ajax_Samplecode_in_C_Net.aspx"]http://www.codeproject.com/KB/aspnet/Ajax_Samplecode_in_C_Net.aspx[/URL] | |
Re: Look at this related subject: [URL="http://geekswithblogs.net/taylorrich/archive/2006/08/21/88665.aspx"]Mapping a byte array to a structure...[/URL] | |
Re: Yes, it is similar to using %d or %l in C. Each enclosing numbered brace indicates it is a placeholder for the next parameter. Here is a good link on the construction of the format: [URL="http://msdn.microsoft.com/en-us/library/txafckwd.aspx"]http://msdn.microsoft.com/en-us/library/txafckwd.aspx[/URL] | |
Re: How do you intend to use the search engine? | |
Re: I've exposed objects from an EXE before and not had this problem. Can you attach one of the smaller file objects that is not properly exposing itself to modules referencing the EXE? Also, have you verified the object that is not getting exposed is using the namespace you are expecting? | |
Re: If you are talking about the IE window that get's opened with VS, click on the Search tab and look for a panel on the right. Mine gives choices: 1) Local 2) Online 3) Codezone 4) Questions I think it defaults to whatever you last used, but I'm not sure. | |
Re: [QUOTE=arunkumars;953805]i havent done it, my lead says its possible in vc++, he is asking me if i can do it here in dotnet, i just want the it from the tool box. just the front end design..[/QUOTE] Ask your lead whether there is a resource library/module containing quad-panels and other … | |
Re: Anyone, I am about to install the PHP binaries for Windows XP and IIS version VC9. On the PHP download page, the have thread safe and non-safe versions to choose. Why would I want to download the non-thread safe version? [QUOTE=phpcommunity;51032]To install IIS on Windows XP, make sure you have … | |
Re: There are several ways to do this. Does form1 call form SP? | |
Hi, I have two questions (Win XP): 1) I accidentally set a file's extension to open with the option "Always open with this app", or whatever the text is. Anyway, you can change it in the file's property dialog, but you cannot remove it. I want to remove it so … | |
Re: Firstly, welcome! Secondly, huh? LOL -- I've waited all day for someone to have a C# question, and you kill me with this? Anyway, I have a vague (football and beer induced) sense that your if statement has the y and x comparison interchanged. Could that be it? | |
Re: Just FYI: I believe this practice was carried over as the C# language was developed. In C/CPP, I got into the habit of putting in the comma after the last definition for a few reasons: 1) easier editing when you want to append to list of enums 2) easier editing … | |
Re: Do you have local and remote connections enabled for the server? If you are not sure, check out this link: [URL="http://www.mydigitallife.info/2007/10/31/error-has-occurred-while-establishing-a-connection-to-sql-server-2005-which-does-not-allow-local-and-remote-connections/"]Setup[/URL] | |
Re: I'm providing this attachment because I've been searching all morning for flash related api stuff and have not found what I was looking for, but I happened upon this c# API. It is an example project in VS. I hope it will save you some time. Regards. | |
Re: If both of these apps exist within the same solution, it's pretty easy to do. You can reference another exe the same as you do a dll and vice-versa. | |
Re: [QUOTE=dunk00;952314]I did mention that i'm a newB in C# programming. When i go through its tutorial, they did mention that c# can be running in console. So i just wanna see it in different approach. I dont think it's wrong when u wanna discover something new since i'm still beginner … | |
Re: Have you opened the report in the designer/editor and looked at what is defined in the sections above the body (details)? It could be many things (Report, Page, or Group headers for example). If you can't figure it out, attach the .rpt file for examination. | |
Re: Here is code that will do what you originally asked. Just set your richTextBox1.Text = webHTMLText;, after running it. [code=csharp] string webHTMLText; WebClient webClient = new WebClient(); using (MemoryStream ms = new MemoryStream(webClient.DownloadData("http://daniweb.com/"))) { using (StreamReader sr = new StreamReader(ms)) { webHTMLText = sr.ReadToEnd(); sr.Close(); } } [/code] If there … | |
Re: Look at the Validating and Validated events. The Validating event is generated when the user tries to leave the control and can be canceled if data doesn't pass checks. The Validated event will then be called only if the data passed in the Validating event. By comparing the old and … | |
Re: [code] myString.Replace("<Fresh Food>", ""); myString.Replace("</Fresh Food>", ""); [/code] Include newline if you want that removed too: [code] myString.Replace("<Fresh Food>\n", ""); [/code] | |
Re: [QUOTE=tmantix;950458]Hi, Look I'm new to C# and I have a working knowledge of VB .Net. I would like to learn C# but I'm having a problem. It's probably a basic problem but, for a console program how to I check what someone has typed in so that the console can … | |
Re: Check [URL="http://www.odetocode.com/Articles/112.aspx"]this[/URL] | |
Re: If you are packaging the Flash player install (already downloaded) with your disk or drive, all you need to do is check to see if they already have it installed, and then launch the program from your installer if they do not. I assume you expect and know how to … | |
Re: I haven't had to use a ListView, but I believe this is how you would do it in your delete click event. Somebody will correct me if I am wrong: [code] ListView.SelectedListViewItemCollection items = lv.SelectedItems; foreach (ListViewItem item in items) item.Remove(); [/code] | |
Re: Can you redraw the panel to cover up the broken lines, before you draw your new border? | |
Re: [QUOTE=vinnijain;950064]Can anyone tell me how can I link "save as" , "save" , "print", "print preview" buttons to the listbox...[/QUOTE] Here is what a menu item's click event wiring looks like. Usually, this is done by the designer, or you can put the code in your form's constructor: [code] this.mnuFileSave.Click … | |
Re: You need to determine whether there are still more pages to print and set HasMorePages = true. Following EXAMPLE is from MSDN: [code] // The PrintPage event is raised for each page to be printed. private void pd_PrintPage(object sender, PrintPageEventArgs ev) { float linesPerPage = 0; float yPos = 0; … | |
Re: I looked at the webpage and wrote the following snippet to help you find your "iFrame" tag and "MegaVideo" name--it is not tested! It assumes you will have already loaded/navigated to the page in your webBrowser control. Anyway, I hope this helps: [code] HtmlDocument doc = webBrowser.Document; if (doc == … | |
Re: [QUOTE=imwan;949661]still the problem is there =([/QUOTE] Repost your code changes (complete code) so it can be examined with the changes. | |
Re: It sounds like you have a web service configuration issue. If you think that might be it, try google'ing your error with added keywords "config" and "Unrestricted". | |
Re: Trick question? In the active code lines, you are overwriting the first byte of your char "theChar", which is two bytes (Unicode) in length, when you assign to your bool "theBool", which is one byte in length; because you have aligned both fields on the first byte ([FieldOffset(0)]) in your … | |
Re: The libraries (IBMDADB2, DLL's, etc) being access for you database from these calls might be out of sync. Which line (DB call) is throwing the error? Maybe the OLE DB Provider (IBMDADB2) is not properly registered? You might contact IBM support for this driver and see what they have to … | |
Re: For security and other reasons, the browser's download dialog does not give you their local path information. You need to create a custom download dialog for your server's app. that allows the user to directly input the path you want to pass to your new process. Is it possible for … | |
Re: If your date strings are formatted correctly for string comparisons, you can just initialize them and do a comparison for min and max for each row in your loop (pseudocode): [code] if minDate = "" or minDate > date then minDate = date; if maxDate = "" or maxDate < … | |
Re: Check [URL="http://www.w3schools.com/schema/schema_elements_ref.asp"]this[/URL] | |
Re: Check out these ListView methods: [code] public ListView.SelectedListViewItemCollection SelectedItems { get; } //or public ListView.SelectedIndexCollection SelectedIndices { get; } //with public bool ListViewItem.Checked { get; set; } [/code] | |
Re: I don't see where you are actually copying the rows, but to limit them to only the first four, you set the rowState to indicate it should be copied: [code] // // Summary: // Copies only rows that match the supplied row state in the supplied System.Data.DataTable // to a … | |
Re: Syntax in C# is very similar to C/C++, so the transition will be very easy and the compiler errors should look familiar. You will no longer be able to manipulate pointers like you could in C++, which is a selling point to corporations, but a slight to major inconvenience at … | |
Re: You need to Flush() and Close() your file after you are done writing to it. | |
Re: Here are some considerations if you intend to market your skills with prospective employers: - find out what the employers in your area are developing - check out freelance development sites to see what kinds of consulting contracts are in high demand - do the same with job posting websites … | |
Re: You are trying to pass a "List<B>" type to your method when it is defined as accepting argument "List<A>". If class B contains a List of A's, you could define: [code] public class A {} public class B : List<A> { void doAStuff(List<A> someAs) { // do stuff } List<B> … | |
This file looks OK to me. I have permissions. See attached icon file (894 bytes long). |
The End.