|
Have you looked at the RichTextBox control? It's a reasonably well-featured control that's capable of some of the wizadry you'd normally expect from a word-processor.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
My original thought was RichText, I was just trying to pre-empt the 'why isn't the output in HTML' question tomorrow afternoon.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
|
I read the following from one news:http://infoworld.com/print/79216
Silverlight 3 applications can run in or out of the browser, online or offline.
If so, WPF will be throwed away? It seems not, but if Silverlight 3 can be run in or out of the browser,
why WPF will be chosen?
thanks
|
|
|
|
|
Seraph_summer wrote: If so, WPF will be throwed away?
Unless they fix it in VS2010, it will be thrown away anyway.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Seraph_summer wrote: I read the following from one news:http://infoworld.com/print/79216
Silverlight 3 applications can run in or out of the browser, online or offline.
If so, WPF will be throwed away? It seems not, but if Silverlight 3 can be run in or out of the browser,
why WPF will be chosen?
You really shouldn't have asked this in this forum, but I'll answer it anyway.
Basically, Silverlight OOB is still only Silverlight. In other words, it has the same limitations that apply when Silverlight runs inside a browswer. This means that it runs inside the browser sandbox, and so cannot interact with the file system as a whole for instance. Silverlight does not have the full power of WPF, which supports a much more feature rich API than Silverlight, and implements features that are still missing from Silverlight, e.g. IDataErrorInfo.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Seraph_summer wrote: Silverlight 3 applications can run in or out of the browser, online or offline.
If so, WPF will be throwed away? It seems not, but if Silverlight 3 can be run in or out of the browser, why WPF will be chosen?
Few years ago, someone introduced something we now call "Flash". Those things can run in a browser, and outside of it. Silverlight isn't a replacement for WPF, just as WPF wasn't a replacement for MFC. We're talking different technologies, each with it's own merits and problems.
Even COBOL hasn't been thrown away yet. There's only one technology that comes to mind that should be actively replaced so it can be thrown out: VB6
I are troll
|
|
|
|
|
hi
i developed a software , and i made a setup of the project
and the setup installation default path is
c:\ProgramFiles\[Manufacture]\[Company Name]\[Project Name]\
in this path my software is installed
in my project i need to
1)write the input values given by user in a text file
2)update the Ms acess Database
3)save a image
now when the user runs the software
it is giving the error message
"Access to the File inputs.txt is denied"
since there is no permission to user to read and write a file
in c:\\
even i cannot modify a dotnet source in c:\\ drive
please help me
how to solv e this problem
regards
vijaykumar D
|
|
|
|
|
I do not know the answer to your problem but I think it would help others to assist you if you edit your post to say what OS you are referring to.
I assume you are using Vista, but that might not be so.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
hi
its not vista
and i think it is not OS dependent
the problem is with permissions restricted by Administrator
i given full permission to my user account in my PC
it is working fine
but the Admin of my client can refuse to give full control for C:\\ drive
as it is against the security rules
One of the Admin of my client refused to give the permissions bcoz the softwares developed by third party are running successfully with any permissions given by the Admin
i didnt observe OS since i have so many users but no one is using vista in my company
thank you for u r reply
|
|
|
|
|
hi
i get the following error message at run time
System.Security.SecurityException: Request for the permission of type 'System.Data.OleDb.OleDbPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
|
|
|
|
|
As I said in my first post, I do not have an answer to your problem.
However, if the cause of the difficulty is rules of the systems administrators at your various clients, you must find a strategy to accommodate these rules.
All of these clients MUST have a location on their network where databases are allowed both read and write access, otherwise those companies simply couldn't do any work. What you have to do is find out what that location is for those sites and identify a way to allow installation to the correct place.
As far as writing user input is concerned, the solution will depend on whether that input needs to be seen by all users or just the user that made the input. For all user access, store it in a DB at the location identified above. For access on a peruser basis take a look at the documentation for Environment.SpecialFolder to see if anything there meets your needs.
Good Luck!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I am doing a sample program to test "managed and unmanaged interoperability". I have a c++ function which takes vector and gives me some result back. This vector i want to pass from c# program. Can any one of you please let me know, the C# Equivalent of a C++ std::vector? If possible please provide me some sample code. Thanks in adavance.
Regards,
Srikanth.
sree
|
|
|
|
|
There is nothing you can pass from C# that is going to turn into a std::vector. Your best bet, IMO, is to pass a list into a C++/CLI dll, which constructs a vector and pases it to your function.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
sree wrote: C# Equivalent of a C++ std::vector?
It would be List(T)[^].
sree wrote: This vector i want to pass from c# program.
I don't think you can create a vector and pass to the native function. Best method would be to use C++/CLI to wrap the native function. Write a function which takes a managed list in the C++/CLI class. Inside this function, create a std::vector with the values from list and pass to the native method. You can refer the C++/CLI project's DLL and call the methods from C# easily.
|
|
|
|
|
Thanks for your inputs.
But when i am trying to pass List<>, it giving me the fallowing exception
"Cannot marshal 'parameter #1': Generic types cannot be marshaled".can you plz tell me how to pass the list to c++.
sree
|
|
|
|
|
sree wrote: how to pass the list to c++.
By C++ do you mean C++/CLI? Can you show us the code?
|
|
|
|
|
extern "C" __declspec(dllexport) int __stdcall passVector(vector<int> &i)
{
vector<int>::iterator Iterator1 = std::max_element(i.begin(), i.end());
return *Iterator1;
}
This is my c++ function. I want to pass the vector from c# program using DllImport.
This is how i tried with Arraylist from C#
[DllImport(@"D:\sample.dll", EntryPoint = "passVector")]
public static extern int passVector(ArrayList i);
sree
|
|
|
|
|
sree wrote: I want to pass the vector from c# program using DllImport.
Well, I think you haven't got what I said so far. To reiterate, you can't pass a vector from C# using DllImport . For doing that you have to use C++/CLI to create a proxy class between your C# and C++ application. Follow the below steps.
1 - Create a C++/CLI library project. Add reference to the native DLL here
2 - Write a function that takes List(T)
3 - Iterate over the elements in this list, create a vector and push each item to it.
4 - Now call the native C++ method by passing this vector.
Since List(T) is a managed type and C++/CLI produces mixed mode assembly, you will be able to access it from C# easily. Just refer the C++/CLI dll, create a List(T) from C# project and pass to the method.
*T will the type of the object which you want to pass.
|
|
|
|
|
Hi,
Can anybody please help me to resolve below described issue?
using DirectShow i build application which show live preview and also capture video frames.
there is start/stop button available on user interface which are used for starting and stoping video frames capturing.
But when a user click on start/stop button, my preview window become totally black coloured for some time and i lost video frames during that period.
Please help me it's urgent.
Thanks & Regards,
Kunal.
|
|
|
|
|
I'd guess that whatever processing you're doing in the start/stop event is taking too long, and locking out the video capture. However, without a lot more information it's pretty hard to really know what's wrong...
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
thanks...
problem solved.
|
|
|
|
|
Nobody helps here when they face words like:
kunal.tawde wrote: Please help me it's urgent
Sorry, that is just the way it is.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Hi there,
Sir,
I want to add automatic scrolling effect of pictures in timed manner on my MDI page. The effect should be like as web base application(just we use marquee in it) that is on mouse over it should be stopped. Is it possible to add it ?
I m using C# Windows application.
Thank u .
|
|
|
|
|
Use a timer and the ontick event to manage the marquee effect (move the picture on every tick). Use the OnMouseOver event to stop the movement by disabling the timer
Never underestimate the power of human stupidity
RAH
|
|
|
|