948 Posted Topics

Member Avatar for SpyrosMet

For your future reference, please look at System.Xml.XPath and the XPathNavigator as it's much easier to use and quite possibly less resource intensive as you use XPath to directly lookup your required XML (not sure how much though) :)

Member Avatar for Ketsuekiame
0
3K
Member Avatar for kaizen202

The only thing I can think of is to over-ride the OnPaint method and draw the entire control yourself. Re-modelling controls isn't my speciality so that's about the best I can offer. Google may be able to help you on your way.

Member Avatar for Ketsuekiame
0
175
Member Avatar for hirenpatel53
Member Avatar for Ketsuekiame
0
132
Member Avatar for VijayaDurga

1. Get Email Address From User 2. Get Subject From User 3. Get Message From User 4. Get Destination Address From User 5. Connect to SMTP Server 6. Send Mail 7. ????? 8. Profit

Member Avatar for deceptikon
0
140
Member Avatar for jvinothkumardpi

Do you execute a stored procedure to filter and return your data, or do you return all the data and use C# to filter it? If you use a stored procedure, protaeas is correct. You can use `where RecordDate between startDate and endDate` If you do it in C# you …

Member Avatar for Ketsuekiame
0
163
Member Avatar for xHellghostx

Now I see why you said my suggestion didn't work :) You're not actually using try/catch. When you reach line 12, your Double.Parse statement will throw an exception. This will either go to the innermost try/catch that contains the statement (and is looking for that kind of exception) or crash …

Member Avatar for Ketsuekiame
0
249
Member Avatar for mradzinski006

Do you know what part of the program is slowing you down? Is it the I/O? Is it the record parsing? Is it the record processing? Once you ascertain that, it will be easier to help. :)

Member Avatar for Ketsuekiame
0
96
Member Avatar for sujit.patil

Whilst you can call Equals on your class, this will typically tell you if the object reference is the same. MyObject x = new MyObject(5); MyObject y = new MyObject(5); MyObject z = y; x.Equals(y); // False x.Equals(z); // False y.Equals(z); // True To do your own comparison you will …

Member Avatar for Ketsuekiame
0
2K
Member Avatar for xHellghostx

Just to warn you, your program will crash if the user inputs any negative number or non-numeric. To overcome the second part you can use `int.TryParse` which returns true/false if it could be parsed. The first is a simple if statement to check for negativity. :)

Member Avatar for Ketsuekiame
0
629
Member Avatar for silvercats

Not really. The best you will get is the metadata that is built up from the .NET Framework. Classes are objects and Object is also a type. Objects are not methods. Methods in Java and C# are the same. VisualStudio includes Intellisense, which allows you to see the accessible members …

Member Avatar for JOSheaIV
0
162
Member Avatar for harishbansal90

I'll assume he means public IP (Modem IP) Unfortunately, the only real way you can do this is to query an external service and ask it. Your modem/router might have something you can query for the IP address but it's doubtful. You could try a Dynamic DNS. You create an …

Member Avatar for nmaillet
0
654
Member Avatar for silvercats

[Here is a quick tutorial I wrote a while ago](http://www.daniweb.com/software-development/csharp/threads/282899/creating-a-function-to-repeat-data#post1222443)

Member Avatar for Ketsuekiame
0
49
Member Avatar for khizer03

[Here is the RFC for POP3](http://www.ietf.org/rfc/rfc1939.txt) that you will need to use. It will tell you how to connect to the server, authenticate, download and pull apart the message.

Member Avatar for margaret224
0
195
Member Avatar for CPT

Might I also suggest that you code away your Thread.Sleep. This is indicitive of incorrect (I won't say bad, because it probably isn't) design in event driven programming. And yes, you as the developer must make all calls to MPI thread-safe. Using either a Critical Section (lock) or some form …

Member Avatar for Ketsuekiame
0
384
Member Avatar for Elixir42

I've had this happen before as well, but only on the C++ editor. It seems to be when the Intellisense parser has a mental breakdown. In my case, Intellisense kept telling me I had an error and wouldn't build my program, even though the program was syntactically correct. (Intellisense said …

Member Avatar for Ketsuekiame
0
204
Member Avatar for rotten69

Generics are used when you can apply the same situation to multiple objects. They are very much like templates in C++. Let's take the "List" class. The definition is List<T> where T is a type of object. As we don't really care what the list contains, the list can contain …

Member Avatar for Ketsuekiame
0
160
Member Avatar for WDrago

Imagine you're at a park, that has one entrance in and out, which is protected by a lockable gate. This is a very exclusive park and so only one person is allowed in at a time. When a user enters the park they are given the key, they open the …

Member Avatar for WDrago
0
6K
Member Avatar for tony75

You're trying to parse a double into a decimal variable. Change either the definition of the decimal to double or change the parse of double to decimal. Either that, or the text value you're passing can't be parsed as a number. e.g ten dollars is nonesense to that method and …

Member Avatar for tony75
0
200
Member Avatar for Fame95

Your best bet is to modify the raw RTF, add your colour to the colour table header and then at the word you want to highlight, change the colour to the required index. That way when your textbox automatically redraws itslef, it will already have the raw colour information and …

Member Avatar for Fame95
0
2K
Member Avatar for tinstaafl

Personally, I think it would be better if you created an IComparer<T> for the custom class rather than using reflection this way. Alternatively, you could create a "SortByName" comparison method, which is similar to what you've done here, however, you'd use generics and constrain it with an interface. In my …

Member Avatar for Ketsuekiame
0
301
Member Avatar for glad024

Agree with Chris. I'm not a registered user of stack-overflow, but are the people there very friendly towards people who obviously show no effort? Daniweb caters well for the new and beginner coders, with plenty of us willing to help with seemingly incredibly simple questions, provided the OP can show …

Member Avatar for ChrisHunter
0
396
Member Avatar for engy.adel90

bguild has this spot on. The first thing your code does is call itself, this will lead to an infinite loop. Eventually you run out of stack space and the program crashes (giving you your exception). From the code you've posted, I can't really infer what you're trying to do, …

Member Avatar for Ketsuekiame
0
143
Member Avatar for foobar1337
Member Avatar for shane.barrow.35

Although I realised you asked for a tutor, not many people have that amount of time to give up in order to teach, myself included. I'm also pretty sure that this is not out of arrogance or greed, but when we do a job, we want to do it well …

Member Avatar for shane.barrow.35
0
134
Member Avatar for Cameronsmith63

Could this possibly be an order of execution problem? I imagine something else is being disposed before your combo box, which changes the selected index? (Any other data-binding anywhere?) If so, this would cause your event to fire before the control was disposed.

Member Avatar for Ketsuekiame
0
95
Member Avatar for requimrar

So let me get this straight... You want to play an MP3 file, but you can't use the built-in library, or any external library? So you want to play an MP3 file without using any functionality? This cannot be achieved. Either use the System.Media.SoundPlayer, or use a DLL file. They …

Member Avatar for asad_dani
0
40K
Member Avatar for bob855

Take a look at System.IO.File and System.IO.Directory on the MSDN (Google first hit) Those two classes should give you everything you need.

Member Avatar for Ketsuekiame
0
109
Member Avatar for bleedi

This almost looks like JSON. There are some good parsers that you can get for JSON with C#. If you have control of the source text files, I suggest switching to the JSON Format and use one of the existing parsers. Otherwise, XML will do this perfectly and is much …

Member Avatar for Ketsuekiame
0
638
Member Avatar for mrki
Member Avatar for Momerath
0
2K
Member Avatar for devloper

If you want to know how to return a list and not an array, it's in the configuration of the Service Reference. If you go to your list of Service References, then right click it and click Configure Service Reference, under the "Data Type" header you will see a drop …

Member Avatar for remyavinod
0
978
Member Avatar for jonnyboy12
Member Avatar for Ketsuekiame
0
168
Member Avatar for RenanLazarotto

So, personally, I think you should have two further picture boxes [b]on top[/b] of your main picture box for the "more image" notification. The fade can be controlled using the transparency or alpha level. 255 being opaque and 0 being transparent. Have this set to a relevant level depending on …

Member Avatar for RenanLazarotto
0
176
Member Avatar for jwill222

The assertion tells me that the stream is null. Or in other words, that it couldn't open your file. You may want to check the file exists and the software can get access to it. If it's there and still fails, make sure it's not open in another program. If …

Member Avatar for Ketsuekiame
0
114
Member Avatar for skatamatic

The issue itself may be because of .NET. Something to try... Run the query in MySQL Workbench and make a note of how long it takes to [b]display[/b] the results, not simply the search time. .NET will do things such as assigning the returned data into arrays, parsing it, possibly …

Member Avatar for Ketsuekiame
0
187
Member Avatar for Galindo

I'm adding this because no one actually answered his question, just gave him code. We can take the basic principle that all even numbers are divisible by 2 and have no remainder. So, what you need to know is how to calculate the remainder, or modulus of each number. As …

Member Avatar for skatamatic
0
263
Member Avatar for ticktock

Making the client "wait" can be achieved by including a "Thread.Sleep(milliseconds)" at your server side, after you receive the client message. For concurrency, the first thing I can think of, is to store any database objects being used in-memory first at your server, along with the User ID that it …

Member Avatar for Ketsuekiame
0
238
Member Avatar for Chuckleluck

[QUOTE=Zcool31;1764820]Release the engine as open source. Accept donations. Piracy = defeated.[/QUOTE] ^^^^^ This :D You aren't going to beat piracy, ever. People that do beat piracy have a product that nobody wants ;) What you can do is make it either really difficult (at the expense of user frustration) or …

Member Avatar for Ketsuekiame
0
195
Member Avatar for Axladrian

I think you're almost there with the second attempt but you're over-thinking things. I think a much simpler solution would be to assign your buttons to arrays instead. [code] int buttonWidth = 50; int buttonHeight = 50; int topMargin = 300; // Distance of top of form to the button …

Member Avatar for Axladrian
0
96
Member Avatar for syd919

You need to change your method signature from List<Contact> to List<FirstNameType> So if your FirstName data type is a String, it would be [icode]List<String>[/icode] Personally, unless you want to modify the list (which in this case would be bad) use should return [icode]IEnumerable<String>[/icode] I suggest you look up how to …

Member Avatar for syd919
0
136
Member Avatar for Ketsuekiame

Hi all! Quick summary: I'm attempting to shutdown a socket, but the framework that I'm inheriting an Interface from already contains an implementation of a "shutdown" method. Therefore, I am unable to call "shutdown" for the socket. Longer Explanation: How can I fix this? I originally tried looking for a …

Member Avatar for Ketsuekiame
0
169
Member Avatar for codex89

As Momerath said, you can use any pre-existing method of sending data over the wire. Just, WCF makes things a lot easier in terms of manipulation and you don't have to worry about network management. You should investigate WCF at the least, but if you do, have a look at …

Member Avatar for Ketsuekiame
0
96
Member Avatar for s_s21

Best way is to use monitor detection. Simply set your output to the second monitor and you're done. If you want control over the VGA port itself, you will need to look into the hardware and driver specifications of you graphics adapter.

Member Avatar for BobS0327
0
425
Member Avatar for The.Ree

The caller can be anyone. You can't assume it's your listbox, or a form, or a polka-dotted pink elephant. So you may have a method called "ValidateTextbox". It can accept an argument of type TextBox and has an out parameter of type String. I have to guess here because you …

Member Avatar for ChrisHunter
0
112
Member Avatar for itsvineethpv

If running an ASP.NET Web Site outside of IIS is your requirement, you picked the wrong architecture. The only real way this will work is if you create a normal windows service with all your code in and that code also generates [b]static html[/b] for your browser to parse. But …

Member Avatar for Ketsuekiame
0
320
Member Avatar for sergent

It is the entry point for Win32 applications (not console). If you're doing cross platform, you will need to check the definitions to see which OS you're compiling for and use some #ifdef pre-processor statements to include the correct entry point.

Member Avatar for jmichae3
0
2K
Member Avatar for nssltd

All you need to do is download flash player from the Adobe website. Make sure when it asks for your browser type you select the "Other browsers" option and *NOT* internet explorer. Chromium doesn't come with built in flash support, that's added to Chrome. If you want to add flash …

Member Avatar for Ketsuekiame
0
205
Member Avatar for lxXTaCoXxl

[URL="http://msdn.microsoft.com/en-us/library/system.net.networkinformation.networkinterface.aspx"]The Network Interface[/URL] HTH

Member Avatar for sknake
0
199
Member Avatar for zack_falcon

Hi Zack. This exercise sounds like a demonstration of your ability to create a CRUD proxy. (Create, Read, Update, Delete) I guess what you're taught to do normally, is create a database and connect directly to it. However, this means that when you have two programs connected (Program A and …

Member Avatar for zack_falcon
0
145
Member Avatar for DeathEater

Well I suggest you break it down into individual goals. Your first goal is to get all this data into a single Database. So analyse each program's current database configuration and see if you can create a conjoined model. If not, that's not a problem, you simply put all their …

Member Avatar for Ketsuekiame
0
224
Member Avatar for Sokh

As momerath says, this is rather dependent on the page. But if the date and time are in a arbitrary location on the page, you will need to load in the DOM and try and hope that the date/time has an id tag so that you can find it.

Member Avatar for Sokh
0
274

The End.