|
I need to create a customized form just like the one
available in Microsoft Access to allow the user to design
his own form style from a fix list of fields with only
textBoxes, date pickers and comboBoxes?
How can I do that? any one tried it?
Many Thanks,
Jassim Rahma
Jassim Rahma
|
|
|
|
|
How can I display the default Microsoft Windows about box
[attached] within my application?
Many Thanks,
Jassim Rahma
Jassim Rahma
|
|
|
|
|
how can I check if and mdb password is password protected
or not? I need to write a code to check if the the mdb
file was not password, then setup a password for it.
Jassim Rahma
|
|
|
|
|
Can any one explain how can create a DLL library [in a
design time] which will contains audio or video file, then
write a code to read and play that file [in run-time] on a
windows form?
Please note that I don't want to extract the file from the
DLL library every time user wants to play it to avoid
having a copy of the original audio/video file on the
local machine if the application was aborted.
Thanks in advance......
Jassim Rahma
|
|
|
|
|
I really think you should slowdown a bit and try focusing on one particular problem at a time
jrahma wrote:
Can any one explain how can create a DLL library [in a
design time] which will contains audio or video file
I know of no way, unless add it as a resource maybe...but you will still have to read it to memory and play it from there. Sounds dangerous!
DBHelper - SQL Stored Procedure Wrapper & Typed DataSet Generator for .NET low popularity, please visit
|
|
|
|
|
Yes, The only reason to compile it into a library is to keep my rights on the original files, then how you want me to to do this risky stuff??
Jassim Rahma
|
|
|
|
|
Make no mistake - if you distribute a media file and people want to extract it, the only way to stop them is to make sure they can never watch it.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
When ???? Run it anywhere?
|
|
|
|
|
The CLI has been released for Mac OS X. Qestion is when will Mac die so we won't need to worry about them.
|
|
|
|
|
what about Linux ?
and how can i get this CLI for MAC OS X???
no any change will run well in these OS?
|
|
|
|
|
danielprc wrote:
how can i get this CLI for MAC OS X???
I'm under the impression that OS X is FreeBSD and this is supported by Microsoft, via Mono, I think.
Cheers,
Simon
"From now on, if rogue states want to buy weapons of mass destruction, they're going to have to go on eBay," Mr. Bezos said.
|
|
|
|
|
|
Michael P Butler wrote:
You won't be running anything complicated anytime soon
The only part missing from SSCLI is GUI support and MS specifics. It will take a bit more work, but there's no reason it cant be complicated.
The whole reason why they are sopprting FreeBSD is (I think) because Hotmail runs on it
DBHelper - SQL Stored Procedure Wrapper & Typed DataSet Generator for .NET low popularity, please visit
|
|
|
|
|
The GNU group is developing the CLR for Linux. It is being supported and published with support of another group whose name I cannot remember at this time. (I am not a big follower of Linux stuff) It was originally Project Mole. Start with whatever website the GNU group normally publishes and you may find reference to the project from there. They have a significant amount of the framework built, but it may be a while before you have full functionality.
_____________________________________________
The world is a dangerous place. Not because of those that do evil, but because of those who look on and do nothing.
|
|
|
|
|
I want to make a new NetworkStream class that has a few functions to help make it easier to use. Something like this:
// A helper class to allow us to easily write strings
public class JNetworkStream : NetworkStream
{
public void Write(byte[] Buff)
{
Write(Buff, 0, Buff.Length);
}
public void Write(string S)
{
Byte[] Buff = Encoding.ASCII.GetBytes(S);
Write(Buff, 0, Buff.Length);
}
// Constructor
public JNetworkStream(Socket S) : base(S) {}
// How do you make a copy constructor that makes a JNetworkStream
// from a NetworkStream?
}
The problem is that I have an already created NetworkStream handed to me by TcpClient.GetStream(). Is there an easy way I can convert the NetworkStream to a JNetworkStream?
Thanks,
Jeremy
|
|
|
|
|
From the sounds of what you're trying to do, there are a couple solutions. Your exact goal would determine which is easier to implement.
1) Don't inherit from NetworkStream. Instead, create an object that holds a reference to your NetworkStream object, passing the appropriate calls along to that object.
2) Inherit from it, and do something like this in your constructor:
public JNetworkStream(NetworkStream stream)
{
this.Whatever = stream.Whatever;
this.Something = stream.Something;
}
3) Combine #1 and #2 into a workable solution that takes the benefits of each idea and puts them to work for you in the most effective way.
John :D
|
|
|
|
|
I try add the file IconResources.resources in my program, and i get this error:
An unhandled exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll
Additional information: Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure "IconResources.resources" was correctly embedded or linked into assembly "TestDevelop".
baseName: IconResources locationInfo: <null> resource file name: IconResources.resources assembly: TestDevelop, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=null
Anybody can help me
|
|
|
|
|
heldaio wrote:
Anybody can help me
Yes, read James T. Johnson's article: Understanding Embedded Resources in Visual Studio .NET[^]
Nick Parker
May your glass be ever full.
May the roof over your head be always strong.
And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing
|
|
|
|
|
I'm having a bit of trouble with SLEEPing a thread in c#.
I have the following enum used to control how long the thread should sleep:
public enum RefreshRate{<br />
fast = 100, <br />
medium = 500,<br />
slow = 1000<br />
}
but the line:
oThread.Sleep(RefreshRate);
Generates the following error:
Argument '1': cannot convert from 'RefreshRate' to 'int'
The default type for an enum is INT, so I'm not sure what's causing the problem.
Anyone have any ideas?
TIA.
Mike Stanbrook
mstanbrook@yahoo.com
|
|
|
|
|
It's still an enum of type RefreshRate. What you need to do is put:
oThread.Sleep((int)RefreshRate.fast);
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
|
David Stone wrote:
oThread.Sleep((int)RefreshRate.fast);
You don't necessarily need to cast the enum; this should work explicitly when you identify the base type of the enum:
public enum RefreshRate<code> : int</code>
{
fast = 100,
medium = 500,
slow = 1000
}
oThread.Sleep(RefreshRate.fast);
Nick Parker
May your glass be ever full.
May the roof over your head be always strong.
And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing
|
|
|
|
|
That, and I just noticed that he was doing oThread.Sleep(RefreshRate);
He wasn't specifying a value at all.
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
|
I have a main thread on which GIU Controls all live, and when the user clicks a button, I have a worker thread start doing calculations. While the worker thread does calculations, the main GUI thread is free to let the user click around in the app, look at tab pages, etc..
When the worker is done, I want it to throw an event to tell the main GUI thread that it's finished. As I understand it, this isn't possible.
When the worker thread raises the event, and a class on the main GUI thread is listening for it with an eventhandler, the eventhandler does run. But it doesn't run on the main gui thread. It doesn't run on the worker thread either. It runs on some new third thread. I have the worker thread use BeginInvoke to raise the event.
How do I make a worker thread raise an event on the main gui thread instead of creating a third thread?
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|
|
Short answer, you don't BeginInvoke will cause it to run on a thread from the ThreadPool; Invoke (or just calling the delegate like any other method) will cause it to run in the same thread (ie the worker thread).
What you do is use the (Begin)Invoke method from the form instance to have it run on the same thread as the GUI.
My preferred way of doing this is to use the handler like you already are but make the [edit]form handler[/edit] be responsible for calling Invoke on itself.
theThread.theEvent += new EventHandler(this.ThreadIsDone);
....
private void ThreadIsDone(object sender, EventArgs e)
{
if( InvokeRequired )
{
Invoke(
new EventHandler(this.ThreadIsDone),
new object [] { sender, e }
);
return;
}
}
James
- out of order -
|
|
|
|
|
Thanks this is great, I sort of understand why it will work. The only thing is in my case, the object that I have listening for the event isn't a Form, (or any other Control). When it was instantiated, it was created on the main gui thread where the form and controls are, but it isn't a Control itself. So there's no Invoke() method or InvokeRequired within it. I suppose I could make it a Control if I have to, just to get that method.
Is there like an interface or something I can have the object use so that it will have the Invoke() method?
thanks again
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|