948 Posted Topics

Member Avatar for voicephone

See [Rob Miles' Yellow Book (2012)](http://www.robmiles.com/c-yellow-book/Rob%20Miles%20CSharp%20Yellow%20Book%202012.pdf) There is material here from his taught university course that includes beginners C# and some projects to work through.

Member Avatar for sbesch
0
159
Member Avatar for Ihteshamullhaq
Member Avatar for KushMishra

Make the header a seperate control and change the font of that control. Label headerLabel = new Label { Text = mychk.Content.ToString(), FontWeight = FontWeight.Bold }; GroupBox myGroupBox = new GroupBox { myGroupBox.Header = headerLabel, myGroupBox.Content = myStack };

Member Avatar for KushMishra
1
2K
Member Avatar for HoverportMedia

Basically what this means is that someone (namely someone acting on behalf of a copyright holder) has told Google that X violates DMCA and, by law, now has to block the content from being returned in the search results. It is not that Google has violated DMCA, simply that the …

Member Avatar for jwenting
0
405
Member Avatar for Ketsuekiame

Hi, just a report to say that when you click on a link to go directly to a post, the page scrolls too far and it becomes hidden under the top menu banner. In order to see the beginning of the post you have to scroll back up. This is …

Member Avatar for Ketsuekiame
1
247
Member Avatar for lostnewbie

What you're asking for is possible but in most cases, any antivirus will detect this and intercept it. If you are the computer's owner (you paid for it and didn't "gift" it away to him), installing monitoring software on the computer (not just his account) is at your discretion as …

Member Avatar for lostnewbie
0
149
Member Avatar for kirtee2209

Unfortunately, there's nothing communicating over your COM1 port. However, you might be able to get a list of the com ports available on your machine and then select the correct one for your device. `SerialPort.GetPortNames` will return a list of com ports to you. But you might need to do …

Member Avatar for Ketsuekiame
0
1K
Member Avatar for riyamanavalan@g

This is C++ code and won't work in C# unless you import the relevent Windows API DLLs. See pinvoke.net for more information on how to do that and what is available to you.

Member Avatar for ddanbe
0
239
Member Avatar for maori

You will need to create you rown kind of control, possibly a list of picture boxes or labels to hold the date. You will need to dynamically create controls, or place extra text in your labels to indicate an appointment. To save appointments, look at the ics format.

Member Avatar for maori
0
106
Member Avatar for pritaeas

Hi P, Useful site if you need to know the signatures of WinAPI methods is http://www.pinvoke.net/ It also has a plugin to automatically insert them for you if you use VS 2010/2012 :)

Member Avatar for Ketsuekiame
0
198
Member Avatar for KushMishra

Well, you need to bind your checkbox to something like an `MarkForDelete` on the thing you want to delete. When you click on Delete, iterate through all the data and filter out based on this flag. Delete as required. On the last point, you could set your datagrid into edit …

Member Avatar for KushMishra
1
2K
Member Avatar for Assembly Guy

Can you change it to something that isn't your name and then back to your name? But yeah, I agree, a simple logic gate that checks if your old username matches your new username (at a case insensitive level) hopefully wouldn't stress the development resource too much :)

Member Avatar for Assembly Guy
3
285
Member Avatar for iFrolox

First thing I noticed is that you accept a list of type `General` but you say you only want a single instance. I suggest you change that method to only take a single object. Additionally, as you're going to be working with an existing XML set, it might be worthwhile …

Member Avatar for iFrolox
0
134
Member Avatar for iFrolox

First, expand your catch to retrieve the exception. `catch(XmlException exc)` Then, actually log/display the exception message that is contained in `exc.Message`. It will also give you a handy point to break on. Unfortunately you can't tell if XML is well formed *before* you load it unless you write your own …

Member Avatar for iFrolox
0
122
Member Avatar for junior.dau

I use BitDefender Total Security 2013 on Windows 8. Works pretty good but has compatibility problems with Virtualisation (if you don't know what this is, then it won't affect you)

Member Avatar for <Anurag>
0
141
Member Avatar for kirtee2209
Member Avatar for J_SON

I would personally do it the other way around and have a global single timer instance. On your class have a `DateTime LastCheckIn` and update this everytime your client sends to the server. In your global timer event, iterate through each client object you have and see if `LastCheckIn` is …

Member Avatar for Ketsuekiame
0
1K
Member Avatar for zachattack05

Personally I would create a new table and link them. So if you have a worker and a task you could create a table that references the workers table and the tasks table and contains a completion flag. Something like create table MySchema.TaskState ( TaskStateId smallint not null, StateDescription nvarchar(50) …

Member Avatar for zachattack05
0
256
Member Avatar for mc3330418

It would be better if you told us what your input is and what you're expecting this function to do.

Member Avatar for Ketsuekiame
0
125
Member Avatar for Sci3nc3F1cti0n

You don't need the second loop as you can call `cout` immediately after you have written the value in the first loop. Additionally, I would have picked better variable names for your loop indexers, but this is only personal preference. Your variable naming doesn't follow a single style/standard, pick one …

Member Avatar for tinstaafl
0
846
Member Avatar for msubashrk

Well, I think you used the wrong datatype for a start...You should have used `varbinary` You'll need to post your own code before we can help you.

Member Avatar for ss125
0
107
Member Avatar for fernandofranca

First, you need to set what events you want to be notified of by called `SetCommMask`. If you're only interested in whether data is available, you can call this with `SetCommMask(mySerialPort, EV_RXCHAR);`. Once you have set up the events you're interested in, you need to use the method `WaitCommEvent`. It …

Member Avatar for Ketsuekiame
0
2K
Member Avatar for deltascrow

I agree with JorgeM, allowing that would make it a pretty easy system to beat. Don't worry too much about your metrics unless they're really bad :)

Member Avatar for Atli
0
301
Member Avatar for ss125

You can use a `Timer` which can be set to execute a method at certain time intervals. [MSDN Link](http://msdn.microsoft.com/en-us/library/system.threading.timer.aspx)

Member Avatar for ss125
0
275
Member Avatar for happygeek
Member Avatar for kirennian

Have you tried using Windows Workflow Foundation? It's not exactly what you asked for, but it might be what you want. It allows you to define 'activities' and the logic for when to execute those activities under certain conditions. Effectively giving you the box and line logic you asked for. …

Member Avatar for Ketsuekiame
0
191
Member Avatar for pritaeas

I get this I think because Facebook is blocked at work so I get the proxy error message there instead, but yes, it drops the icons down to the next line.

Member Avatar for Dani
0
1K
Member Avatar for spowel4

For future reference, if you're doing a cluster update like this, before you populate the control you should set `Enabled = false;` as it (stops it firing events) and `SuspendLayout` (if you're changing any control layout properties) do your updates and then call `ResumeLayout` and set `Enabled = true;` for …

Member Avatar for spowel4
0
228
Member Avatar for Bandarigoda123

If you close your socket you need to rebuild it all from scratch again. If you want to re-use your socket, don't close it.

Member Avatar for Ketsuekiame
0
555
Member Avatar for Franze

The loop is inconsequential. If it takes 24 hours to process your data then it takes 24 hours to process your data. If your loop is sat there doing nothing, then you need to re-think your design. So something like; while(moreDataToProcess) { ProcessFile(); // Does not return until file is …

Member Avatar for Ketsuekiame
0
225
Member Avatar for TechSupportGeek

Well you need to decide what resources you want to organise as a sub-task of resource organisation itself. So for example; You have language resources, image resources, audio resources etc. So do you want to organise those by type (Images, Language, Audio) or by Language (Language/Images, Language/Text, Language/Audio) or any …

Member Avatar for Ketsuekiame
0
182
Member Avatar for Jahliah

`Console.WriteLine(dt.ToString())` You can place an output format in the `ToString()` call. This is specified the same way that you did it for the input.

Member Avatar for Ketsuekiame
0
272
Member Avatar for fuhanspujisaputra

`textBoxQuantityContainer[index].Value - Convert.ToDecimal(dReader["Quantity"].ToString())` Have you debugged and checked what the result of this operation is?

Member Avatar for ss125
0
246
Member Avatar for fuhanspujisaputra

Use `String.Format` to create your query string. Personally, I don't like what you're doing from a design aspect, it seems...dangerous :P Anyhow, in your case you would put `string query = String.Format("select [Code] from [{0}]", textBox1.Text);` Note that this is *extremely* dangerous and is a gaping wide hole for SQL …

Member Avatar for gusano79
0
267
Member Avatar for ss125
Member Avatar for Sam R.

`" "` indicates a string of characters, aka. `char *` where as each individual element is a `char`. To indicate a single character, use `' '` (apostrophe)

Member Avatar for MasterHacker110
0
5K
Member Avatar for wplay

jwenting is correct where the UK is concerned. Unless you didn't give permission for your photograph to be taken in any place where you expect a "right to privacy" the copyright belongs to the photographer. When you hire a photographer, you pay for their time, any editing they do and …

Member Avatar for stultuske
0
285
Member Avatar for timmyjoshua

[MSDN](http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word(v=office.14).aspx)

Member Avatar for saguni
-2
364
Member Avatar for <M/>

PDB stands for Program DataBase where Visual Studio files are concerned. It contains all the debugging symbols for your library or executable. Not being able to find a PDB file will not stop your application working, however, you may not be able to debug (with source code) the respective library. …

Member Avatar for <M/>
0
203
Member Avatar for daniel.leowteckleong

You're given all the information, including the mathematics you need as part of the question. Why did you only decide this was worth looking at two days before the deadline? If you'd have at least read the assignment a week ago, you could have approached someone and asked for help, …

Member Avatar for bradly.spicer
0
308
Member Avatar for caixadelixo

Either close and dispose the dialog after getting the filename, or use `dlg.OpenFile()` to grab the `FileStream`

Member Avatar for Ketsuekiame
0
171
Member Avatar for Assembly Guy

I'm not, but it sounds interesting. Are you in the UK? Any advice on getting started?

Member Avatar for Assembly Guy
0
158
Member Avatar for ProDev7

When you define DEBUG you can adjust what your code does based on this definition. So you could do; #define _DEBUG #include <iostream> int main(int argc, char** argv) { #ifdef _DEBUG std::cout << "DEBUG MODE ON" << std::endl; #else std::cout << "DEBUG MODE OFF" << std::endl; #endif return 0; } …

Member Avatar for ProDev7
0
207
Member Avatar for icedome

WebSockets aren't the be all and end all. In fact, using them will severely limit your customer exposure (IE 10, Firefox 6, Chrome 16 and Opera 12). People with older browsers won't be able to use it. Chat systems don't have to be complicated. You can use some simple ajax …

Member Avatar for <M/>
0
353
Member Avatar for nitin1

Sounds like something good to get stuck into and the way that you've ordered them in the list is about the same way that I would attempt to include them, with the exception of the UI, which I would do last.

Member Avatar for Labdabeta
-1
191
Member Avatar for Ahmed.C

Make the `dte` variable a `String` and convert the `LastModified` time to a String So; Dim dte as String Using response1 = CType(ftp1.GetResponse(), Net.FtpWebResponse) dte = response1.LastModified.ToString("dd/MM/yyyy") ListView1.Items.Add(New ListViewItem({File, ext, dte})) ... End Using

Member Avatar for pritaeas
0
118
Member Avatar for Assembly Guy

I'm kind of in agreement with the OP here. Assembly code is hard to read at the best of times and the way it's highlighted by Prettify only makes it worse. The way the highlighting catches your attention can artificially subset pieces of code and you have to be aware …

Member Avatar for Dani
1
282
Member Avatar for Rina Richie

Apart from the fact your question is poorly formatted because you copy pasted your assignment, we aren't in the habit of openly gifting code to those who haven't attempted it themselves. If you need help with a specific point, please re-phrase your question to ask about this directly.

Member Avatar for rubberman
0
238
Member Avatar for anuran

Only thing I can think of is that you're going outside the bounds of the array. Have you made sure that your declarations are all up to date when you adjust the static `arms` value?

Member Avatar for anuran
0
474
Member Avatar for Dani

The JS functionality to modify the title of the browser is a welcome addition, but it isn't working. I can't hear the "beep" so I don't know how annoying it is, but having the ability to switch it on or off will only make for a better user experience :) …

Member Avatar for Ketsuekiame
0
294

The End.