|
this is relly a good posting
http://sirotiyasanket.blogspot.com/
|
|
|
|
|
Hi there,
I hope that every .net programmer knows about app.ico. If not then create a windows application in c# and check out the working folder. You could see such a file there. This file is the picture file that is displayed in the exe file(check out debug folder of your application). Now what i need is, i want to change this app.ico through c# coding. Is it possible for changing the application icon at runtime without re-compiling? When i mention a .ico file, at runtime, this new .ico file should replace the existing default app.ico file and my .exe file in debug folder should also posses this image. How can this be made?
-- modified at 1:37 Tuesday 12th December, 2006
|
|
|
|
|
Hi ALL,
In DataGridView -> Columns -> Column Type,
we can have any one of the following: Button, Text box,
Link, Combo box, check box, image.
But I need to have a list box for one column.
I should be able to select more than one item from the list.
Since it's NOT possible to have multi-select combobox,
I'm looking for a list box in DataGridView column.
Any suggestions would be greatly appreciated.
Thanks in advance,
Sarvan AL
|
|
|
|
|
Hi,
Did you try to add custom template,
you can add any control on the custom template in asp.net control of grid.
Cheers.
|
|
|
|
|
Hi Alper,
Thanks for your interest in replying here.
I'm new to .Net development and looking for this to
develop a C# application. Is this (Adding control on the custom template)
possible in C#? If so, please suggest me some good resources (articles/books)
to explore on this feature.
Thanks once again,
Sarvan AL
|
|
|
|
|
WEll it is in asp.net controls grid,
add a form on to your grid,
right click, select custom column template.
type this in google also : "C# custom column template"
|
|
|
|
|
HI
I want to develop a speech to text module for my project. Could somebody help me and tell how to implement it in C#.
I shall be realy thankful.
Mujtaba
|
|
|
|
|
i am looking for any source code or helping for The Speech To Text in C#...Does anyone help me?
|
|
|
|
|
Hi.
I have a ListView control, which when the user presses keys on the keyboard, selects that item (e.g. the user presses 'k' and then 'i' and it selects the item 'king'). However, if the user presses a key that does not correspond to an item, the control beeps. Is there a way to disable this beep, as the program will be run in an environment where errant sounds like this are a major problem.
Cheers
Jacob
|
|
|
|
|
Link to the thread that is already active, instead of re-posting the same question everywhere.
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
I am trying to figure out how to copy a selected image from
an AxWebBrowser to a RichTextBox.
I can get selected text no problem, but I can't figure out how to get an image.
Any help would be appreciated.
|
|
|
|
|
This is a really weak question but I have hit a brick wall. Bear in mind I have been playing with c# approx 6 wks.
I am writing a project and would like to link a dataset to a sql database. I would like to use the northwind database supplied as default.
I am sat in form1 and I open the toolbox. I scroll down to the data section. There are no sql controls there. I get pointer, dataset, datagrid, binding source, binding navigator, and report viewer but nothing else. I expect the sql stuff (eg. sqladapter) to be there by default.
Do I need to enable anything to see the sql controls? I am using VS2005 BTW.
|
|
|
|
|
all you need to do is reference the namespace
using System.Data.SqlClient; at the top of your form. I would also recommend using SqlDataAdapter to fill your DataSet.
More Info:[^]
Hope this helps.
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
got it. Toolbox->right click->choose items and then follow your nose.
|
|
|
|
|
Link to the thread that is already active, instead of re-posting the same question everywhere.
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
This should be easy, but for some reasion it has me stumped.
I have a combobox containing only a few items (set at design time). I want the first item to show up by default. How do I do this?
David Wilkes
|
|
|
|
|
At run time, do something like...
MyComboBox.Item[x].Selected = true;. It may be MyComboBox.Item[x].Select();, I can't quite remember. That probably isn't the most elagant way but it works.
Cheers
Jacob.
|
|
|
|
|
Hi,
In my solution , i put a break point and it is getting hit. But, when i press F10 or F11 unable to continue further, just ending the debug with error :
The program '[5892] AdminLoader.exe: Managed' has exited with code -532459699 (0xe0434f4d).
I tried looking at all settings and dignostic attributes but everything is fine.
Any Ideas?
kumar
|
|
|
|
|
it is better if you can give the line where it is crashing.
"Change is the only constant thing in life
Either or survive or get extinct"
|
|
|
|
|
also use try..catch
"Change is the only constant thing in life
Either or survive or get extinct"
|
|
|
|
|
I'm trying to validate a string, ie alpha, numerics and some special characters
I'm using something like this
public bool IsAlphaNumeric(String strToCheck)
{
Regex objAlphaNumericPattern = new Regex("[^a-zA-Z0-9.,-]");
return !objAlphaNumericPattern.IsMatch(strToCheck);
}
but when I want to include whitespace (line break etc) using \s,
the page page breaks and tells me there is a 'Unrecognized escape sequence',
I have tried adding @ sign and 'RegexOptions.IgnorePatternWhitespace' which in theory should do the trick, but does nothing. What do I need to do to make this work.
Kwai
|
|
|
|
|
\\s
---
b { font-weight: normal; }
|
|
|
|
|
i've tried '\\s' already - it compiles okay but when I call the class it returns this error
'parsing "[^a-zA-Z'.,-\s]" - Cannot include class \s in character range.'
kwai
|
|
|
|
|
Try changing position for '\s' class. Something like: [^a-zA-Z\s'.,-]
|
|
|
|
|
A U.S. user reported that when they set a custom short time pattern in regional settings to a 24 hour clock it doesn't display that way in my app.
I use the System.Globalization.CultureInfo.CurrentCulture method to set format for date and time in my app and it works properly for any culture to date.
So I test it out and sure enough, currentculture's ShortDatePattern correctly retrieves a users customized short date, but ShortDatePattern always uses the same format which I guess is the default for the culture which is a 12 hour clock and am pm designation.
This is .net 2.0 by the way.
To test this out yourself:
CultureInfo c = System.Threading.Thread.CurrentThread.CurrentUICulture;
c.ShortDatePattern will always equal whatever was set or overriden in the control panel regional settings, but c.ShortTimePattern will always equal the culture default.
I'm stumped, is this a bug? Is there a workaround? I've searched high and low and found nothing.
|
|
|
|