948 Posted Topics
Re: You should read up on how to make User Controls. You can compose these of the controls you want and then add them to your form as though they are a single control (like a button or textbox etc.) Google and MSDN will help you in your quest ^^ | |
Re: You can use Boxing, but I don't recommend doing this. There must be a better way of designing your application. Basically, return the type "Object" and cast your obj to Object. [code] public Object FETCH(Boolean flag) { Object myObj = null; if(flag) myObj = new ROAD(); else myObj = new … | |
Re: You need to separate your comparison clauses [code] public List<EventEntity> GetCurrentUpComingEvents(string uid) { EventDBModelDataContext context = new EventDBModelDataContext(); var res = from e in context.EventEntities where e.eventDate == date || e.eventDate >= date select e; return res.ToList(); } [/code] The || in between there means "OR" it's the same that … | |
Re: make a list of community issues and think about how you can create a piece of software that can help combat those issues. It doesn't have to be direct intervention. Think about things like the administration and office work that goes on behind the scenes. | |
Re: This seems like borderline malware, but to answer your question no. You will need to use Java. It's possible in a normal browser, however, by using ActiveX or the NPAPI. Additionally, you could write an extension for one of the non-IE browsers. | |
Re: You could create a method purely for this task. You pass the method your array and check against it. So maybe something like [code] public Boolean CheckChasing(Wasp[] waspArray) { foreach(Wasp waspCheck in waspArray) { if(waspCheck.State != State.Chasing) return false; } return true; } [/code] This is pretty simple and is … | |
Re: You should be able to set the style property of the control itself. Bind it to the style you have written and you should be good to go. As you mentioned a skinning manager, make sure you bind this dynamically. | |
Re: Have your main form, create and load another form. You would show this new form as a dialog box, making it impossible to click on the owner (main) form. | |
Re: Please use the forum search tool. I see this question asked multiple times a day. I'm sure at least one of them has been answered. | |
Re: I won't give you an example, but it's fairly simple. You should specify a data source in your XAML (that is an ObservableCollection in your code) and set your cboEmployee to be bound dynamically to this data source. When you change your department, you should update your data source. WPF … | |
Re: You literally just did it in that post. =p [icode](Object)DataTimes[/icode] [icode](String[][])args[/icode] | |
Re: I work for a company who creates a multitude of software for consumer facing business hardware. Every project I've done this year has been in WPF and I wouldn't choose WinForms again, unless it really is an incredibly simple application. Discounting WPF as a serious development API is incredibly short … | |
Re: [QUOTE=charlybones;1673453]There is no ONE absolute way to identify a computer using the hardware, as far as I know, it could change if the user decides to upgrade or whatever. I would try to find a registry value, maybe the windows installation ID? Alternatively, you can try using more than one … | |
Re: A good place to start is WCF. But this might be overkill, you'll need to assess the needs of your application. The other way would be binary serialisation and transmission. Serialise your object graph using the [icode]BinaryFormatter[/icode] and you will be given a byte array containing all the data. You … | |
Re: You need to look into WCF Callbacks. That would be the best way to do it, in my opinion. To expand on pseudorandom's post, the people on this site are not here to spoon feed. We will help with a specific problem, but it's up to you to do the … | |
Re: [code] "studPtr1.singleGlass[i].getletterGrade()"; * "singleGlass[i].getcreditHrs()"/ gpa= gpa+ "singleGlass[i].getcreditHrs()"; [/code] These are definitely your problem lines. Why have you made them strings? Also, what is the / for? To execute a method, you don't wrap it in speech marks, that indicates a string value (not a return string value, but that what … | |
Re: As a starting point, you need to think of your mouse cursor as a "ray" that intersects through your 3D world at an angle that is perpendicular to your current projection. Then you check which object you hit first with your "mouse ray" and that is the object you have … | |
Re: I think you have a misunderstanding as to what classes represent. A class represents a "something" in your case a piece. But, think about how unique each piece is. Do they share a common set of properties? What makes piece A different from piece B. In most cases you can … | |
Re: You might get a better and more helpful response in the ASP.NET forum under Web Development. | |
Re: To expand on Mitja's post, C# properties are not a way of storing information. They're effectively a way to access member fields of a class. There is nothing written to disk, so when you shut your app, the properties are gone. That being said, however, you can store the entire … | |
Re: [icode]Array.Sort[/icode] is by far the best method to use. If, however, this is a programming exercise of manually sorting a numeric array, then, you will need two separate arrays. One will hold your original data, and one will hold your sorted list. In pseudocode, you need to perform something similar … | |
Re: You're returning every row in the data table. What this will do, is check one, ok that exists, update the date. Check the next one (insert) check the next one (insert) check the next one (insert) because the members don't exists for every row, just one. Use a "break" statement … | |
Re: Have you tried [code] try { /* code */ } catch { /* fail code */ }[/code] ? | |
Re: Well you could create a process launcher. If you include windows and shellapi you can [icode]ShellExecuteEx(SHELLEXECUTEINFO);[/icode] More information about that is on the MSDN. For seamless integration, you're going to find it extremely difficult unless they expose some kind of COM interop or have some API you can use. | |
Re: You should probably take a look at the Document Object Model and cross-post this into web development. The built in browser (and most embedded browser controls) allow you to access the DOM so you should be able to show and hide the bits you don't like. Unfortunately, I don't know … | |
Re: I suggest you write a small ticket/fault reporting system. That has a lot of the key things most Universities will want to look for. Classes, Inheritence, Databases, Network Communications, UI Design etc. :) (You could also expand this into Web Development as well) | |
Re: Use a switch statement to differentiate between your user types. The code above is secure enough for most cases, however, you may want to think about data encryption such as SHA and MD5. | |
Re: There are a couple of things wrong at a basic level. 1. Don't store phone numbers as Integers. Here's why 003-2442-0964 When you get that back you will actually get: 3-2442-964 which is incorrect. So you should store them as a string, ideally. 2. Although not "incorrect" this is a … | |
Re: Does the database you're trying to connect to exist and do you have the login details correct? Are you storing your connection string in your app.config file? | |
Re: I hate to break it to you, but C# won't run on Mac unless you're using Mono. In which case you need to check the Mono specification that it supports anything you actually want to do. Might I suggest that you switch to C++ and use the Qt libraries? This … | |
Re: May I ask, why you're using pointers? I don't see any need for them. If you really want to replicate pointer functionality, use the "ref" keyword. Otherwise, you're going to have to use the Marshaller to convert your struct/class to an IntPtr. Again though, I recommend reviewing your requirements. Check … | |
Re: Actually, you should just render it as though it's 3D, just keep the z plane constant. In OpenGL, there really is no difference between 2D and 3D, all the mathematics are the same :) If you're attempting to render the UI, there are two ways, one is to switch the … | |
Re: Hi there, [URL="http://msdn.microsoft.com/en-us/library/0f66670z(v=vs.71).aspx"]this article[/URL] might be of interest to you. Essentially, even without the "ref" keyword you're passing by reference. The ref keyword allows you to make changes to that data. So by adding the keyword, you're allowing the receiving method to change the data. Both cases (with and without … | |
Re: Why don't you just stop reading once you receive the TerminatingCommand? Exit the thread or some such? | |
Re: I concur, the error I see is [icode]return gcf(gcf2, gcf1 % gcf2);[/icode] I can't really work out what you're trying to do with this line eitherin context of your application. The only thing I can think of, is that you're trying to use gcf as a pointer to some method, … | |
Re: Rogachev is correct, if your controls contain any controls, you must check those as well. It's fairly straightforward to set up a basic recursive algorithm. To make it more efficient, however, would be more challenging :) | |
Re: You should probably look at the SDK and Documentation for the device. This should tell you exactly what you need to know. If that information isn't to hand, you should be able to find it on the manufacturers website. USB Devices generally have some kind of API to do all … | |
Re: Hi there, [URL="http://support.microsoft.com/default.aspx?scid=kb;en-us;329986"]this link[/URL] might help you out :) Also this line [icode]DirectoryEntry de = new DirectoryEntry("LDAP://serverIpAddress/CN=myusername,CN=Users,DC=domain,DC=com" + "domain.com\\", userName, passWord);[/icode] The first argument will read: [icode]"LDAP://serverIpAddress/CN=myusername,CN=Users,DC=domain,DC=comdomain.com\\"[/icode] I'm not sure that's a correct formation. | |
Re: Might I suggest using the API and P/Invoke to initiate a shutdown of the PC rather than another process. This should also give you better control over it. [URL="http://pinvoke.net/default.aspx/advapi32/InitiateSystemShutdownEx.html"]P/Invoke Link[/URL] | |
Re: Just though I'd add my 2p. You're probably best not writing the entire of your data buffer to the memory every time. You have a value you can use [icode]numberOfBytesRead[/icode]. Instead of [icode]receivedData.Write(buffer, 0, buffer.Length);[/icode] I believe you ought to be using [icode]receivedData.Write(buffer, 0, numberOfBytesRead);[/icode] otherwise you could be messing … | |
Re: Please read through your program and think about what is happening logically. [b]Do not assume [i]anything[/i][/b]. You should be able to come to conclusion fairly quickly. | |
Re: Your third problem is caused by your conditional check to see if the current number is less than the minimum number. But you initialise your minimum number to 0. So it will never be smaller unless you put in negative numbers ;) Also, templates would be good in this circumstance, … | |
Re: You should add a pointer to the previous node, or keep a pointer to your first node and add that as your "Next" node on your last node. | |
Re: I believe you can, but I'm not entirely sure. Either way you will need to pay Apple a development fee to code for their products as far as I can tell, or, own a Mac. Linux/Unix can be programmed for on a windows PC no problem. Windows/Linux/Unix is C++ so … | |
Re: MSVCR80D.dll is part of the Visual Studio 2005 Runtime [b]DEBUG[/b] library. Although why you would need this if you're building in 2010/2008 I have no idea. In any case, so long as that version of visual studio is installed you should have no problem running the program. To get around … | |
Re: Logging is the most effective method as lola pointed out. To get access to the Microsoft bug reports you need to pay them a yearly fee. | |
Re: You will not find "full code". The links are enough to teach you what to do. You must make an attempt yourself before you will get any further assistance here. | |
Re: How long will it take you and how much do you think your time is worth? Without knowing the "full" specification and requirements it's hard to gauge. Also it needs to be based on your experience with programming and how much you think your client can afford. When I'm acting … | |
![]() | Re: I realise this is the C++ forum, however, is there any reason you cannot use .NET? What you propose is very trivial to achieve in C# and can be accomplished ins approximately 20 lines of code. As for the C++ version, you're going to need an image library as the … ![]() |
Re: What version of .net is your add-in built against? Also,check if there is an InnerException as that generally provides a little more insight to the problem. |
The End.