472 Posted Topics

Member Avatar for pilipino93

This downloadable project seems to do everything you want: [URL="http://www.dreamincode.net/forums/showtopic57482.htm"]Countdown Project[/URL]

Member Avatar for sknake
0
239
Member Avatar for deepas

Try using a BLOB for DB Field and use a [inlinecode]MemoryStream[/inlinecode] for IO file transfer.

Member Avatar for sknake
0
101
Member Avatar for skootles

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.

Member Avatar for skootles
0
4K
Member Avatar for iamalex

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.

Member Avatar for DdoubleD
0
106
Member Avatar for wil0022

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 …

Member Avatar for DdoubleD
0
141
Member Avatar for guiman

[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 …

Member Avatar for DdoubleD
0
124
Member Avatar for krismanish

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 …

Member Avatar for DdoubleD
0
102
Member Avatar for sivak
Re: ajax

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]

Member Avatar for dnanetwork
-1
128
Member Avatar for Shaitan00

Look at this related subject: [URL="http://geekswithblogs.net/taylorrich/archive/2006/08/21/88665.aspx"]Mapping a byte array to a structure...[/URL]

Member Avatar for DdoubleD
1
496
Member Avatar for san_crazy

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]

Member Avatar for papanyquiL
0
102
Member Avatar for avirag
Member Avatar for ghaith

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?

Member Avatar for ghaith
0
176
Member Avatar for arunkumars

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.

Member Avatar for sknake
0
98
Member Avatar for arunkumars

[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 …

Member Avatar for arunkumars
0
126
Member Avatar for daastan

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 …

Member Avatar for DdoubleD
0
279
Member Avatar for agam360
Member Avatar for DdoubleD

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 …

Member Avatar for caperjack
0
181
Member Avatar for limbo_cow

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?

Member Avatar for limbo_cow
0
169
Member Avatar for ddanbe

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 …

Member Avatar for DdoubleD
1
119
Member Avatar for Waseem Siddiqui

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]

Member Avatar for DdoubleD
0
223
Member Avatar for ds2r

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.

Member Avatar for ds2r
0
89
Member Avatar for papanyquiL

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.

Member Avatar for DdoubleD
0
107
Member Avatar for dunk00

[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 …

Member Avatar for DdoubleD
0
171
Member Avatar for Dimansu

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.

Member Avatar for DdoubleD
0
46
Member Avatar for fekalium

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 …

Member Avatar for DdoubleD
0
107
Member Avatar for Sang-Jip

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 …

Member Avatar for DdoubleD
0
93
Member Avatar for etm9413

[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]

Member Avatar for DdoubleD
0
196
Member Avatar for tmantix

[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 …

Member Avatar for tmantix
0
159
Member Avatar for scranton
Member Avatar for penguin22

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 …

Member Avatar for penguin22
0
104
Member Avatar for fang_laluna

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]

Member Avatar for DdoubleD
0
98
Member Avatar for scranton
Member Avatar for scranton
0
1K
Member Avatar for GoS-ExiGo
Member Avatar for vinnijain

[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 …

Member Avatar for vinnijain
0
244
Member Avatar for kbarrett

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; …

Member Avatar for DdoubleD
0
5K
Member Avatar for tipdeep

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 == …

Member Avatar for tipdeep
0
148
Member Avatar for imwan

[QUOTE=imwan;949661]still the problem is there =([/QUOTE] Repost your code changes (complete code) so it can be examined with the changes.

Member Avatar for DdoubleD
0
1K
Member Avatar for netengr2009

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".

Member Avatar for DdoubleD
0
95
Member Avatar for ddanbe

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 …

Member Avatar for ddanbe
0
103
Member Avatar for snakay

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 …

Member Avatar for DdoubleD
0
500
Member Avatar for razmca

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 …

Member Avatar for DdoubleD
0
154
Member Avatar for arelius

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 < …

Member Avatar for arelius
0
2K
Member Avatar for jure.gregorin

Check [URL="http://www.w3schools.com/schema/schema_elements_ref.asp"]this[/URL]

Member Avatar for DdoubleD
0
94
Member Avatar for hemaljoes

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]

Member Avatar for serkan sendur
0
115
Member Avatar for darkocean

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 …

Member Avatar for DdoubleD
0
202
Member Avatar for deepugtm

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 …

Member Avatar for darkocean
0
143
Member Avatar for rimig88
Member Avatar for DdoubleD
0
74
Member Avatar for BobLewiston

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 …

Member Avatar for DdoubleD
0
100
Member Avatar for drdad5727

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> …

Member Avatar for DdoubleD
0
109
Member Avatar for DdoubleD

The End.