948 Posted Topics

Member Avatar for morfious90

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

Member Avatar for MORFIOUS
0
2K
Member Avatar for MARKAND911

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 …

Member Avatar for Mitja Bonca
0
3K
Member Avatar for noobprogrammerr

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 …

Member Avatar for noobprogrammerr
0
173
Member Avatar for GeoDude^^

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.

Member Avatar for georgieo
0
175
Member Avatar for TylerVo

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.

Member Avatar for skatamatic
0
99
Member Avatar for Robert955

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 …

Member Avatar for Ketsuekiame
0
182
Member Avatar for lee.j.baxter

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.

Member Avatar for Ketsuekiame
0
153
Member Avatar for Behseini

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.

Member Avatar for Behseini
0
247
Member Avatar for compulove

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.

Member Avatar for Ketsuekiame
0
363
Member Avatar for wenners68

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 …

Member Avatar for Ketsuekiame
0
80
Member Avatar for moshe12007

You literally just did it in that post. =p [icode](Object)DataTimes[/icode] [icode](String[][])args[/icode]

Member Avatar for Mitja Bonca
0
443
Member Avatar for Johnrocks

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 …

Member Avatar for Panathinaikos22
0
153
Member Avatar for lxXTaCoXxl

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

Member Avatar for skatamatic
0
117
Member Avatar for james6754

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 …

Member Avatar for Ketsuekiame
0
115
Member Avatar for manugm_1987

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 …

Member Avatar for Ketsuekiame
0
320
Member Avatar for QQnoobie

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

Member Avatar for QQnoobie
0
271
Member Avatar for maximchris

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 …

Member Avatar for skatamatic
0
184
Member Avatar for zack_falcon

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 …

Member Avatar for Ketsuekiame
0
163
Member Avatar for mangal123
Re: ajax

You might get a better and more helpful response in the ASP.NET forum under Web Development.

Member Avatar for jbisono
0
109
Member Avatar for pseudorandom21

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 …

Member Avatar for Mohammed Ammar
0
134
Member Avatar for frost1

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

Member Avatar for Ketsuekiame
0
438
Member Avatar for SyncMaster170

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 …

Member Avatar for SyncMaster170
0
110
Member Avatar for Srcee
Member Avatar for Mitja Bonca
0
2K
Member Avatar for kwamba

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.

Member Avatar for Ketsuekiame
0
105
Member Avatar for l3l4c7_h4t

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 …

Member Avatar for Ketsuekiame
0
217
Member Avatar for The Mind

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)

Member Avatar for Ketsuekiame
0
118
Member Avatar for kylelendo

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.

Member Avatar for jbisono
0
156
Member Avatar for sumi1234

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 …

Member Avatar for sumi1234
0
269
Member Avatar for bhagawatshinde

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?

Member Avatar for bhagawatshinde
0
107
Member Avatar for Srcee

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 …

Member Avatar for Srcee
0
464
Member Avatar for arunkumars

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 …

Member Avatar for sknake
0
358
Member Avatar for Labdabeta

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 …

Member Avatar for Labdabeta
0
152
Member Avatar for gerard4143

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 …

Member Avatar for Ketsuekiame
0
262
Member Avatar for AshfaqueIW

Why don't you just stop reading once you receive the TerminatingCommand? Exit the thread or some such?

Member Avatar for Ketsuekiame
0
111
Member Avatar for valestrom

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

Member Avatar for valestrom
0
479
Member Avatar for fka

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 :)

Member Avatar for ddanbe
0
405
Member Avatar for perceptis

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 …

Member Avatar for Ketsuekiame
0
246
Member Avatar for sudheer2250

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.

Member Avatar for sudheer2250
0
993
Member Avatar for shandoosheri

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]

Member Avatar for Ketsuekiame
0
193
Member Avatar for AltF4me

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 …

Member Avatar for AltF4me
0
3K
Member Avatar for Vusumuzi

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.

Member Avatar for Ketsuekiame
0
94
Member Avatar for Desh2350

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

Member Avatar for Ketsuekiame
0
252
Member Avatar for jigglymig

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.

Member Avatar for raptr_dflo
0
217
Member Avatar for WolfShield

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 …

Member Avatar for mike_2000_17
0
216
Member Avatar for kutuup

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 …

Member Avatar for kutuup
0
676
Member Avatar for Jazerix

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.

Member Avatar for Jazerix
0
180
Member Avatar for jayuma

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.

Member Avatar for Ketsuekiame
0
267
Member Avatar for devilishloki

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 …

Member Avatar for Ketsuekiame
0
94
Member Avatar for tawes01

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 …

Member Avatar for tawes01
0
1K
Member Avatar for Srcee

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.

Member Avatar for Srcee
0
152

The End.