|
I want digit numbers too.
Imtiaz
|
|
|
|
|
I would check for characters between ' ' (SPACE) and '~' (TILDE).
You may also be able to use a Regular Expression to remove the characters you don't want, but I've never done it that way.
|
|
|
|
|
Hi,
I have been using Crystal report in my web applications till now.
In msvs 2008 I found Microsoft ReportViewer control.
can you tell me how to use it.
Thanks in advance....
Elizabeth...
|
|
|
|
|
hi elizabeth,
refer to this link may be its useful for u,
http://www.c-sharpcorner.com/UploadFile/chauhan_sonu57/SQLReportingServices03032006002905AM/SQLReportingServices.aspx
Thanks & Regards,
Sundar
|
|
|
|
|
How to know the proxy server details, to which the IE is connected to, and how to catch the text before it displays on IE for a specific url?
can we do this using a BHO?
How can I know the proxy details to which IE is connected on my PC?
Can't I get all these things through c# programming at runtime?
How can I know the text/data/header that the IE is getting from Proxy at runtime through c#?
|
|
|
|
|
|
|
Hi,
Can anyone tell me how will I go about checking database connectivity using C#? I have an application that I want to enable users to click on a button and then it will check if the app can connect to the database.
The database is SQL 2005 Express and I am using Visual Studio 2008 with .NET 3.5.
Illegal Operation
|
|
|
|
|
|
When I need to do that I simply connect to the database.
|
|
|
|
|
Hi,
can any one tell me how to run .NET applications in Linux. I know we can do it using Mono develop. I am completely new to linux and want to know the exact process of doing it and the correct download link for mono develop used to run in Linux(Fedora 6)or Red Hat Linux.The requirement is very urgent, otherwise I need to learn java to do it.
|
|
|
|
|
Member 3057887 wrote: The requirement is very urgent
Really?
Member 3057887 wrote: the correct download link for mono develop used to run in Linux(Fedora 6)or Red Hat Linux
try this[^]
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi I'm pretty new to programming in C.
I've found the ribbon code here Ribbon Panel[^] and I can get it to work and modify the ribbon/panel as I want.
(I am fairly new) but what I cannot work out though is how I can get it to open the new window in the lower section. So going off the picture provided with the code at the top of the page say I click on SETTINGS then I want it to display the SETTINGS information below, and then if I click on LOG to display the log information below the ribbon.
What would I need to do to get this as a end result? Even if I can be pointed in the correct direction for what I should be doing would be great.
Thanks heaps in advance
P.S... Great site!
|
|
|
|
|
You should probably post your question on the messageboard attached to the article, you'll have a better chance of getting an answer that way
|
|
|
|
|
Yeah, I agree with benjymous. Although, I created a similar project for a client a few months back and I used Panels for displaying information relating to separate buttons on the Custom tool strip. Maybe that'd work? But I'm not sure. Your best bet would be to ask the guy on that page you provided.
|
|
|
|
|
I am binding a <list> to a ComboBox. Once an Item is chosen I want it to be marked so the next time the list is displayed the user can see that the item was previously selected. I update the item in the datasource and even rebind the datasource. However, the changes are not reflected in the list. When I look at the combobox in VS debugger, it shows the changes in the DataSource property but not the non-public innerlist property.
How I bind the combobox to the original list.
public void IntializeGroupComboBox()<br />
{<br />
<br />
areaGroups = areaGroups.ReadGroups();<br />
<br />
NaGroup ng = new NaGroup();<br />
<br />
ng.GroupName = "Select Group";<br />
areaGroups.gList.Insert(0, ng);<br />
<br />
<br />
foreach (NaGroup nag in areaGroups.gList)<br />
{<br />
grpName.Add(nag.GroupName);<br />
}<br />
<br />
groupCombBox.DataSource = grpName;<br />
}
My Attempt at updating the items in the combobox.
int grp_index = grpName.FindIndex(is_selected_group);<br />
<br />
grpName[grp_index] =groupCombBox.SelectedItem.ToString() + " ORD";<br />
<br />
groupCombBox.DataSource = grpName;
I noticed that a couple of people have asked this question before but no replies. I would appreciate any reply, if it is only to tell me where I might find the solution.
|
|
|
|
|
Hello all,
I need to get the contents of a windows form that is a child window of another company's application. So far I have the handle by enumerating the child windows of the application in question. Now I would like to get the content, at runtime, of what appear to be listboxes within that child form. Can it be done using the handle?
Thanks.
|
|
|
|
|
Hi,
Maybe use Control.FromHandle and cast it?
I havent tested it but maybe this will work...
<br />
<br />
Form a = (Form)Control.FromHandle(handle);<br />
<br />
foreach (Control c in a.Controls)<br />
{<br />
if (c.GetType() == typeof(ListBox))<br />
{<br />
ListBox b = c as ListBox;<br />
<br />
}<br />
}<br />
<br />
Mark Brock
"We're definitely not going to make a G or a PG version of this. It's not PillowfightCraft." -- Chris Metzen
Click here to view my blog
|
|
|
|
|
I'm still hung up on that selection, for 3 months now. Nothing I try and no code others provide works even remotely.
Now I think I might use a transparent form that changes size according to mouse movement and check if it's client rectangle intersects with controls that can be selected.
But for that I'd need to have the form's mouse events take precedence over all control mouse events.
Normally, when the mouse is over a control, only the control's mouse events are fired and the form's own mouse events aren't touched, or?
I need to fire the form's mouse event at all times and ignore the control's events instead.
What happens if no control on the form (at least in the area that matters, menus are fine) has any event specified, will the form's events fire then or are they still blocked?
Thank you!
|
|
|
|
|
The problem is the WM_MOUSEMOVE message (0x200) only gets passed to the control the mouse is over. Even overriding WndProc won't solve that.
What is it that you're wanting to achieve exactly?
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)
|
|
|
|
|
You too haven't been paying attention the last three months?
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
I only visit a couple of dozen times throughout the day and evening. Note to self - must spend more time on CP! My Mrs will love that, and so will my boss
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)
|
|
|
|
|
Hi,
I don't exactly remember what it is you wanted to achieve three months ago, and I sure can't tell from today's message.
I have several suggestions for you:
1.
create a new app, as simple as possible, that poses the problem you have, and experiment with it, not with the real app which by now must be too large and convoluted to understand anyhow. If you then still don't succeed, clearly explain that simple app, what it does, and how that differs from what you want.
2.
In a wild guess you want all controls to be non-functional as far as mouse operations go, have you tried myForm.Capture=true; ?
3.
In an equally wild guess, if you were to want to know the position of the mouse at all times, say for displaying it (I have an editor that does that), then you could use a timer that periodically (say 10Hz) gets Control.MousePosition, that is the mouse position in screen coordinates, which can be easily transformed using myForm.PointToClient().
4.
read my sig.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
It's not very clear what you tried to achieve....
In both WinForm and WPF you can capture mouse event with
(in a control) Capture()
then you 'll get mouse event until, mmh... I'm not sure.. usually I always release the mouse on Mouse Up event...
Other than that you can try to write a mouse hook
http://support.microsoft.com/kb/318804[^]
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
Thanks.
But now that I think of it, I probably don't need it anymore.
What I'm trying to do for about 3 months now is implementing an Excel like selection for a collection of PictureBoxes that are arranged in a grid, similar to cells in Excel.
I don't want to select independent boxes with ctrl, just selecting a region while the mouse button is held down.
I asked about this many times here and on msdn, but I either got ignored or code that didn't work at all.
The latest code I got from msdn also doesn't work, but gave me an idea.
I'm trying to use a half transparent form to draw the selection rectangle and use the MouseEnter and MouseLeave events of PictureBoxes to fire the Form's events (passing the MouseArgs) to change the selection form's size and location and store the coordinates of the PictureBoxes in a collection (which will be used after selection is finished).
It looks like this:
http://i28.tinypic.com/einihz.jpg[^]
The cursor is above box 16 and the selection form is in the upper left corner outside the form.
I searched, but couldn't find a working way to get the mouse coordinates not for the whole screen, but only for the form, so that the selection form will displayed correctly.
I use this code for the Main Form's MouseDown event:
private void OnFormMouseDown(object sender, MouseEventArgs e)
{
select = true;
selectform = new F_selection();
selectform.Size = new Size(4, 4);
selectform.Location = new Point(e.X, e.Y);
selectstart = new Point(e.X, e.Y);
selectform.Show();
}
And this code for the MouseMove event
private void OnFormMouseMove(object sender, MouseEventArgs e)
{
int width = 0;
int height = 0;
if (select)
{
width = selectstart.X - e.Location.X;
if (width < 0)
{
width *= -1;
}
height = selectstart.Y - e.Location.Y;
if (height < 0)
{
height *= -1;
}
selectform.Location = new Point(e.X, e.Y);
selectform.Size = new Size(width, height);
}
}
Is there a better way to retrieve a number's value, independent from its algebraic sign thn checking if it's < 0 and multiplying with -1? I think in mathematics it was | x | . (damn smileys)
And would you know how to make it look like the mouse cursor is always at the far edge of the selection form, i.e. if you select something below and left of the current box, it's at the lower left corner and when you select something right and above of the current box, it's also at the upper right corner of the selection form.
Or will that happen automatically once the mouse coordinates are relative to the client area?
Again, thanks a lot in advance.
modified on Friday, July 17, 2009 1:44 PM
|
|
|
|