|
monu_khan wrote: actually can i store image in database and compare them
but it does not work
Can you explain what 'it does not work' means?
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.”
|
|
|
|
|
Hey buddies ,..... i am working on C# Socket programming .... but i got a reference abt socket programmin in Java ............. and I got this word .... "THE JAVA MEDIA FRAMEWORK (JMF)" can any body tell me its equivalent in c#.....Thank you.
|
|
|
|
|
System.Net.Sockets namespace. Well, it's not really the equivalent but it is where sockets live.
Just google c# sockets, loads and loads of help.
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.”
|
|
|
|
|
OMG .... I am trying to work using System.Net.Sockets ... but I thought it will have another namespace ... So is that means the Java functios will have an equivalent in C# too ...Thank you budy ...........
|
|
|
|
|
The biggest problem in trying to use Java stuff/terms in .net and the other way round, is that they dont always have the same technologies grouped into the same libraries.
I can't think of an example off the top of my head, but you will almost certainly find some socket related things from the JMF that aren't in the System.Net.Sockets namespace. Conversely some things in the System.Net.Sockets namespace won't be in the JMF.
So in this instance when you find one of these problems, get your google-fu working.
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.”
|
|
|
|
|
|
Can someone point me in the right direction of how to create a bmp file that is 1 pixel by 1 pixel image>
|
|
|
|
|
Bitmap bitmap = new Bitmap(1, 1);
string fullPath = string.Format(
"{0}\\bitmap.bmp",
Environment.GetFolderPath(Environment.SpecialFolder.MyPictures));
bitmap.Save(fullPath);
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
modified on Friday, August 28, 2009 3:38 PM
|
|
|
|
|
Ha, see, if you'd have put the saving stuff in the first time, I might have beaten you to the punch.
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 thought about it post posting when I reread the OP's post. Luc beat me once tonight, can't let it happen again!
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
So you decided on cheating all the time, hoping to have a slightly better chance of being the first at it?
Next people will start and claim it is my fault the average reply quality is going down...
PS: if you want to compete, choose one of the competitions, lean-and-mean or otherwise. I suggest we don't turn the forums into battle fields.
|
|
|
|
|
I should have put a joke icon on that post Luc, I don't take it that seriously. If someone else answers a question that's great, so long as the OP gets the correct answer which this time he did - twice.
In this case I read the Subject 'Create a bmp' and read in the post '1 x 1' so went ahead and answered. I then reread the question (as I always do to make sure I have given the fullest answer I can) and noticed he wanted a bitmap file so I modified my post to show how to save it to a file. In the minute or so whilst I modified my post, Henry had posted his answer.
No cheating, no battle field - and all in good spirits trying to help the OP from me and Henry
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
DaveyM69 wrote: I should have put a joke icon
Not at all. I understand your pain, being almost beaten by Henri.
|
|
|
|
|
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
This sounds as if it could be for something naughty.
But I don't care, today, so:
BitMap bm = new BitMap(1, 1);
bm.Save("C:\Windows\Temp\NefariousBitmap.bmp");
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.”
|
|
|
|
|
Thanks
I am needing this to prevent MS Access from bringing up it's splash screen when ms access loads.
Since you need to place a bmp file in the same directory as the mdb file with the file names being the same just the extensions different.
|
|
|
|
|
I have developed an application that works with xml files. I have allowed users to open an xml file with my application. This I have done using the Main(String [] args) function. But the problem is the application name is not being displayed along with the application icon when the user right-clicks and chooses "Open With" in windows explorer. Would I need to make any registry entries for this to happen, or is it something I can do within the application itself? I'm currently working with the Microsoft Visual Studio .NET 2003 IDE. Please help.
|
|
|
|
|
|
Thank you so much for your response. but is there a way to do this within my application? and not on registry
|
|
|
|
|
You can write to registry using C#. Please search it in MSDN.
|
|
|
|
|
OK... I have successfully written to registry, my application is assocciated with all xml files on the computer and by default my application opens when you double click on an xml file
However am still having the same problem. when you right click on an xml file and select the "Open With Menu" my application is listed with my application icon but my application name is blank...
How can I get the application name to display beside my application Icon On Open with menu?
could this be a setting on .Net?
Please Help........
|
|
|
|
|
Hi There,
I have a background worker thread on my Form.
In 'DoWork' A call is made from the thread to pump data out to Excel. The visible property of my Excel Application is set to false until 'RunWorkerCompleted' (there may be a lot of data and the users don't want to see it being churned out) when visible is set to true, I also use the .Activate method :
excelApplication.Visible = true;
((Microsoft.Office.Interop.Excel._Workbook)excelWorkbook).Activate();
Everything works fine except the Excel appears behind my form - not the front.. annoying .. in addition its only happening on my tester's machine (typical!) and not mine. It is the last code that executes.
excelApplication and
excelWorkbook are in a different class which I suspect is the root of the issue, also it needs to be inside the thread so the UI is not affected when the form is moved around and such like.
Any ideas?
Thanks very much
Jon
|
|
|
|
|
Hi there,
I don't see why you need the below call, just setting visibility to true works fine for me:
((Microsoft.Office.Interop.Excel._Workbook)excelWorkbook).Activate();
You are right that you should not have the application and workbook objects in different classes. I doubt that is causing the sheet to appear behind your form though.
Have you tried a simple send to back call on the form after you make the sheet visible?
Cheers,
Mark Brock
"We're definitely not going to make a G or a PG version of this. It's not PillowfightCraft." -- Chris Metzen
|
|
|
|
|
Thanks Mark,
I will try the back call.
Sorry, was a rather vague there, my Application and Workbook objects are in the same class (Excel class) which is not in the Form class (obviously).
Thanks very much for the help,
Jon
|
|
|
|
|