|
hi
I'm alen and i'm studding IT,recently i have taken a project base on the WPf and i need someone who can tell me how i can do this project .
i need only someone to tell me what should i do and what languages should i use through this project . here is the project about :
The Windows Presentation Foundation (WPF) is a subset of the .Net Framework 3.0. Students are expected to create a Xmal Browser Application (XBap) Digital Media Library which can store and search for digital media , organise and playback digital media (graphics, audio, video, and 3D objects). Students are expected to make full use of the WPF to create an application which demonstrates a richer user experience as compared to current Internet based applications.
anyone can help me plz send me email at
alireza456@yahoo.com or alen_n2000@yahoo.com
i'll appreciate those who can help me
regards
alen
|
|
|
|
|
alireza456 wrote: i'll appreciate those who can help me
I bet you will. You do know that we don't do homework for you don't you? You need to use C# or VB.NET with XAML. Have a look around this site at articles from Sacha Barber and Josh Smith to get a headstart on them.
|
|
|
|
|
hi friends,
i have posted a thread previously on this topic and that error was "Access is Denied."
now i am able to solve that "Access is Denied" error and also i manage to run the indesign from asp.net but what happens that after some days it giving me error that "System.Runtime.InteropServices.COMException: Server Execution Failed."
i am using the same code as i posted in the previous thread and the statement where i am getting the error is same....
but the error is different i tried to solve this problem but can't find the solution.
if any of you know the solution please reply to this post.
thanks in advance.
bye.
|
|
|
|
|
Have you resolved this? Sounds like a permission issue.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
I've developed a MDI application using .NET and i need to show the active windows which have been opened in my application under a menu item named 'Active Windows'. Am new to this technology and i have no idea how to do this. Is there any windows form control to do this?
Thank you
Soorya
|
|
|
|
|
Add a menustrip item called mymenustrip to the form. Then add an item with text 'Active Windows' and call it myitem . Then use this piece of code so that this item displays active windows: mymenustrip.MdiWindowListItem = this.myitem
|
|
|
|
|
Hi Soorya,
With reference to your query I have attached a small sample for you at the following location.
http://www.speedyshare.com/864691800.html[^]
Please take a look and let me know. If this helps.
Have a nice day.
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
I need to make an application in C# that doesn't use the .NET framework, since the client is a local high school and installing that is apparently a no-no. Is there a way I can do this?
I'm sort of new to this thing, my last main attempt at learning Visual Studio programming was VB6. So, was also wondering at what point the application requires an install, instead of just being able to be run. That would be ideal.
Let me know, thanks Would appreciate it.
|
|
|
|
|
chulium wrote: need to make an application in C# that doesn't use the .NET framework
Stop right there. It can't be done. C# doesn't exist without the .NET Framework.
Your only option, using VS2008, is an unmanaged C++ app.
Or you could go back to using VB6.
|
|
|
|
|
Hmmm alright. I'm knew to C# as well :P Not sure how it all works together.
I'll probably use unmanaged C++.... thanks
-Matt
|
|
|
|
|
C# can only be used with the .net framework.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I got a master page with some contentTemplateHolders in one of them I load the main screens (user controls) depending on the menu selected, localization works fine for theses ones, you can see the correct language depending on the user who logged in.
But then for my master page it doesn't work, and I followed the same steps than for the other user controls, just creating resource file, and adding the culture code to name of that file, for others contentTemplateHolders which are in the master page localizatin doesn't work either.
The only difference between those templateHolders is that in one of them i load the page dinamically, but the others are always in the master page, all of them are user controls. As well for the controls which are added directly to the master localization doen't work.
I change the culture in mainForm in the method Page_Init, this comes from a class user, where we hold all the data realted to the user like culture, and actually hits the method and changes correctly the culture..
Can anyone tell me how to do the localization with a master page? Any idea why it works with some user controls (the one loaded automatically) and not for others?
Any help will be more than appreciated.
Thanks a lot!
Jaime.
|
|
|
|
|
|
Thanks for your answer Urs!
I'm gonna try to implement something similar, but there is still something missing, that will work for the user controls which are held in the placeholders but what about the controls I got actually inside the masterpage (not in placeholders)? because master page won't inherit that basepage, and they don get the localization either.
Any suggestions?
cheers!!!
|
|
|
|
|
If your page inherits from the base page handling the current culture, your master page will, too.
Masterpage and page are not two seperated objects, they are "merged" to one single object, therefore if your page inherits the behaviour then your master page, too.
-^-^-^-^-^-^-^-^-^-^-^-
no code is free of bugs
|
|
|
|
|
Thanks for your help Urs!
But at the end I found another solution which I think is easier than the one that everybody seems to use. Simply I set the Thread.CurrentThread.CurrentCulture and Thread.CurrentThread.CurrentUICulture in the global.asax inside the method Application_BeginRequest, and that's it, the master page now changes, and I don't need to create any base class or anything.
|
|
|
|
|
Yes you are right, this works, too.
I use the base class approach because I have a base class anyway (it's doing a lot of security stuff, too).
Happy coding!
-^-^-^-^-^-^-^-^-^-^-^-
no code is free of bugs
|
|
|
|
|
I was wrong! the file is Global.asax but the method is not Application_BeginRequest, is Application_PreRequestHandlerExecute, got problems using Application_BeginRequest with the session object, so far is working properly in Application_PreRequestHandlerExecute.
|
|
|
|
|
My .net application needs to use the drag and drop functionality, and draw the shapes on to a dialog box. So is it possible to use Microsoft Word features something like drag and drop a shape (circle, square box etc). So is there any way to add MS-Word features to .net applications;
|
|
|
|
|
|
Below code I have downDownlist in EditItemTemplate of gridview. I want to assign data source to downDownlist while editing the row. RowDataBound is called twice once before DropDownList is loaded and once after that.
Q1: So I need to check condition “Not e.Row.FindControl("DropDownList1") Is Nothing“. Is there any other way to know whether “DropDownList1“is loaded.
Q2: Why RowDataBound is called before DropDownList is loaded
<asp:TemplateField HeaderText="Dept">
<ItemTemplate>
<asp:Label runat="server" ID="Label1" Text='<%#GetDept(Container.DataItem) %>' ></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="DropDownList1" runat="server">
</asp:DropDownList>
</EditItemTemplate>
</asp:TemplateField>
Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound
If GridView1.EditIndex >= 0 And Not e.Row.FindControl("DropDownList1") Is Nothing Then
CType(e.Row.FindControl("DropDownList1"), DropDownList).DataTextField = "DeptName"
CType(e.Row.FindControl("DropDownList1"), DropDownList).DataValueField = "DeptID"
CType(e.Row.FindControl("DropDownList1"), DropDownList).DataSource = ds.Tables(1)
CType(e.Row.FindControl("DropDownList1"), DropDownList).DataBind()
CType(e.Row.FindControl("DropDownList1"), DropDownList).SelectedValue = GridView1.DataKeys(e.Row.RowIndex)(1)
End If
End Sub
Protected Sub GridView1_RowEditing(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles GridView1.RowEditing
GridView1.EditIndex = e.NewEditIndex
BindGridView()
End Sub
Thanks in advance,
Regards,
Geeta Pavate
|
|
|
|
|
Here is a question regarding best coding practices involving exceptions
Scenario:
You are the developer of .NET components to be used by other developers in creating enterprise applications. You have been tasked to build a widget value calculator.
As is well-known in the widget industry, widget value is a function of weight. You are ready to engage your development skills in developing a spectacular widget value calculator, however, knowing nothing about how or where your function will be used, not to mention the capabilities of the developers who will use it, you are vexed by one simple question: how to handle the situation where a user of your function sends a meaningless input to the function, which, in the case of widgets, would be a negative weight.
You recognize that there are basically two options:
A) throw an exception whenever a negative weight is supplied to your function, or,
B) do not throw an exception, but use a return object or property to indicate that an invalid argument was supplied, and set the actual return value to zero.
You know that, if you choose option A, your component may crash the application if the developer of that application did not anticipate and handle potential exceptions. You are also aware that, if you use a return object or property to indicate a problem WITHOUT throwing an exception, the developer using your function might forget to check that value and continue processing with bad or missing data.
You understand the implications of exception usage and handling, you believe in good coding practices, and you want to build a superior product. Which option do you choose?
This has been the topic of a week-long, heated debate in our group. We all have very strong opinions for option A or B. Seriously, any input is appreciated. Please do not hold back in expressing your opinion on this!
Don Boinske
|
|
|
|
|
Follow the Design by Contract Model for exception.
http://www.codeproject.com/csharp/designbycontract.asp
|
|
|
|
|
I strongly prefer A.
Better fail the application that return wrong data (okay this may lead to rocket explosions though - Arian ?)
If you throw an exception then you will detect that something went wrong, whereas the not checked return value may be missed.
Furthermore, in my opinion the use of exception handling for this kind of "logic" leads to easier code (in understanding and maintaining).
And a side note to the post above (using contracts like in Eiffel): you will get the error in development but not in production because you normally turn off input validation to gain performance (at least this was what Bertrand Meyer tells in his lectures).
Therefore A and A again
-^-^-^-^-^-^-^-^-^-^-^-
no code is free of bugs
|
|
|
|
|
boinske wrote: A) throw an exception whenever a negative weight is supplied to your function
Might I suggest an ArgumentOutOfRangeException[^] for this.
boinske wrote: B) do not throw an exception, but use a return object or property to indicate that an invalid argument was supplied, and set the actual return value to zero.
No. The caller should be aware of the range of permitted arguments therefore any argument that is not valid should be rejected with an exception. It is an exceptional circumstance that the method receives an out of range argument.
boinske wrote: You know that, if you choose option A, your component may crash the application if the developer of that application did not anticipate and handle potential exceptions.
Not your problem. If the developer using the component isn't keeping within the defined parameters then that is their fault. The .NET Framework throws exceptions all the time. What do you do with them? You either fix the problem that caused the exception or handle them in a catch block somewhere.
Just make sure that the limits are clearly documented and the exception message explains what went wrong.
boinske wrote: This has been the topic of a week-long, heated debate in our group. We all have very strong opinions for option A or B. Seriously, any input is appreciated. Please do not hold back in expressing your opinion on this!
It shouldn't be the subject of a heated debate. The answer is a no brainer. Use exceptions. There is even an exception in the framework for this.
I should stress that regardless of what option you choose you WILL be blamed for bugs and errors that are not yours. With exceptions you at least have the opportunity to deflect some of that by indicating in the exception message what caused the problem.
|
|
|
|