948 Posted Topics
Re: 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. | |
Re: What's the actual problem you're having? | |
Re: 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 }; | |
Re: 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 … | |
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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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 :) | |
Re: 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 … | |
Re: 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 :) | |
Re: 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 … | |
Re: 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 … | |
Re: 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) | |
Re: You need to set your application to target CPU Type x86. | |
Re: 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 … | |
Re: 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) … | |
Re: It would be better if you told us what your input is and what you're expecting this function to do. | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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 :) | |
Re: 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) | |
Re: 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. … | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: `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. | |
Re: `textBoxQuantityContainer[index].Value - Convert.ToDecimal(dReader["Quantity"].ToString())` Have you debugged and checked what the result of this operation is? | |
Re: 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 … | |
![]() | Re: `" "` indicates a string of characters, aka. `char *` where as each individual element is a `char`. To indicate a single character, use `' '` (apostrophe) |
Re: 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 … | |
Re: [MSDN](http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word(v=office.14).aspx) | |
Re: 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. … | |
Re: 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, … | |
Re: Either close and dispose the dialog after getting the filename, or use `dlg.OpenFile()` to grab the `FileStream` | |
Re: I'm not, but it sounds interesting. Are you in the UK? Any advice on getting started? | |
Re: 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; } … | |
Re: 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 … | |
Re: 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. | |
Re: 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 | |
Re: 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 … | |
Re: 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. | |
Re: 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? | |
Re: 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 :) … |
The End.