|
Oh...
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
yourControl.Parent.GetType();
gives you the type of your Parent control, if you are interested in that.
Without the .GetType() you'll get the control itself. Check if it's a panel like this:
if(yourControl.Parent is Panel)
{
MessageBox.Show("Hooray");
}
var question = (_2b || !(_2b));
|
|
|
|
|
thanks guys cheers
Life - Dreams = Job
TheCardinal
BenPOS Systems
|
|
|
|
|
I created an application to communicate to a device in Wince...
i m able to open my serial com port using my application.. but when i write some thing to the port .... its hanging ....is there any components or sme thing which is required to add when i create OS image ....
pls help me to get out of this mess....
|
|
|
|
|
how to restrict the user from entering numbers or any special char.... and pls also send me list or ascii key
|
|
|
|
|
You will need to handle either key down, key up or key press events. Make sure to check for modifier keys. You will also need to handle pasting too.
There's an example here[^] that only allows numerics. You can easily use this to work out what you need to do for your situation.
|
|
|
|
|
Hi,
I am working on an application in which I need to implement Google search for the string given in a textbox. For this I have to call Google API in my application.
If any one have any idea to call Google API using c# please reply me.
Thanks in advance.
|
|
|
|
|
|
If you type something like "Try this", then highlight it before you paste the link, the link text becomes "Try this" rather than the web address - looks prettier, and hides the LMGTFY part from being too obvious!
as in : Try this[^]
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
If he can't be bothered even googling it himself, why should I be bothered typing any extra unnecessary characters?
(You could also tinyurl-ify it if you really wanted to hide what the link was)
|
|
|
|
|
why are you thinking like we have posted forum by with out searching in Google.
we have already searched and find no relevant result.
if you are not certain with the solution then stop posting reply
we know searching in Google.
|
|
|
|
|
Anil709 wrote: why are you thinking like we have posted forum by with out searching in Google.
Then you need to revise your searching technique.
It has taken me less than a minute to find this[^], only one amongst thousands of hits.
That page may not be exactly what you are looking for, but by exploring the links from it I am sure that you will find what you need, if you have the perseverance.
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 recall it works at times but not always. Perhaps it works in IE but not FF?
Cheers,
Vikram. (Cracked not one CCC, but two!)
|
|
|
|
|
Doesn't work in Opera either - Hells teeth thats ugly software!
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
i have to take a picture snap using webcam and then i have to store it in the database and then again i have to retrive it. i want to write this code in DAL( database code file dbcode and then i have call that method in ui code)........ kindly help......... thanks in advaance
|
|
|
|
|
Hi,
this is a well-known and discussed "problem". There are many articles discussing how to implement this.
For example this one here:
Load/Unload images into/from DB table[^]
Have a look.
Regards
Sebastian
|
|
|
|
|
Hi.
I'm writing a program that reads data from binary file and shows it on the screen. There could be a situation that there are multiple data files if the user enables file size limit. If the file size reaches the user-defined limit a new file is created and the data is saved there and so on. So there could be 0.bin, 1.bin, 2.bin, ... and so on.
Naturally I have to read and show the data in this "multiple data file" case, too.
At the moment I have a solution where I create an array of FileStream objects for each file and when I get an end of file I start to read the next stream in the array. This fast and ugly solution but is there any ready-made components/libraries for this kind of data handling or does anyone have a better solution?
The main idea is to show the data as one to the user through a certain file handling class that provides necessary methods like ReadBytes, Seek, etc.
Any hints and tips would be greatly appreciated.
Best regards,
-J-
modified 15-Dec-21 21:01pm.
|
|
|
|
|
Hi,
well I don't know if there is any kind of ready-made component/library for this case. But I think your solution is not that ugly. But I would suggest to write your own stream-object.
For this you could inherit FileStream or StreamReader etc. Then override the methods ReadByte etc. so that when you hit the last bytes of the file, you can open the next one and go on to read further. The advantage of this approach is that your own stream is reusable and it seems that you are reading from just "one" file instead of many.
Regards
Sebastian
|
|
|
|
|
Thanks Sebastian. Inheriting FileStream is a very good idea. I just finished an ugly for loop for that purpose but I will put you tip in use.
Cheers.
modified 15-Dec-21 21:01pm.
|
|
|
|
|
Please help me with a code to set Page Margin (Left, Right, Top and Bottom) using Calc with C#
Thanks
modified on Tuesday, September 15, 2009 5:08 AM
|
|
|
|
|
I have found solution of my problem
public override void Margins()
{
XStyleFamiliesSupplier xSupplier = (XStyleFamiliesSupplier)_app.XSpreadsheetDocument;
XNameContainer xPageStyleCollection = (XNameContainer)xSupplier.getStyleFamilies().getByName("PageStyles").Value;
XPropertySet xPropertySet = (XPropertySet)xPageStyleCollection.getByName("Default").Value;
xPropertySet.setPropertyValue("LeftMargin", new uno.Any((Int32)1500));
xPropertySet.setPropertyValue("RightMargin", new uno.Any((Int32)1000));
xPropertySet.setPropertyValue("BottomMargin", new uno.Any((Int32)1000));
xPropertySet.setPropertyValue("TopMargin", new uno.Any((Int32)1000));
}
YES!!!
|
|
|
|
|
hi
I want set audio device dynamic from application.. Now we are used directx capture, That given capture a file ie) The audio get from audio device then store local system
, but we want opposite scenario... Want local system file to send audio device . How can we handle this... Give some idea or Article
Thanks....
|
|
|
|
|
Hi all..
If there any one know how to save input from window form c# to MS Access DB..
After that, I need to retrieve also.
Thanks in advance,
Kyi Kyi
|
|
|
|
|
You could look into SQL queries, parameterised queries, and the System.Data.OleDb namespace. The general sequence of events is something like this:
- Create OleDbConnection
- Put together an SQL query string (hopefully using parameters)
- Create a new DataAdapter, giving it the OleDbConnection and the query string
- Fill a DataTable from the DataAdapter
Then, you make your changes to the table, and Update the DataAdapter.
|
|
|
|
|
Thank you very much.. i will try like that.
|
|
|
|