|
Hi,
I just have a query on this attribute, using .NET 2.0.
I have a BasePage class, which resides in the MyWebsite.Framework.BaseClasses namespace.
How do I specify this in the <pages> element, I'm not sure what the assembly is??
And how would the code behind page look like for an aspx page that uses this BasePage class?
Usually I would "import" this namespace and have that page extend from it, like so:
public partial class UpdateOrderItems : BasePage
{
}
I hope someone can help.
Regards
ma se
|
|
|
|
|
Hi,
I written a form application which is needed to activate when it receives a event from a hook procedure. the hook procedure sends the WM_COPYDATA message to my forms app. When I receive this message from hook I want my form app to be activated and shown to window. In the event handler of the message I tried to set the visible property of form to true, but it didn't work. Also Focus returns false.
How can I cahive this activating of application upon receiving the event?
Regards,
Hemant Kulkarni
|
|
|
|
|
How about:
WindowState = FormWindowState.Normal;
or
WindowState = FormWindowState.Maximized;
|
|
|
|
|
hi,
I tried this, but the form is not shown as active application, so this normal or maximized state doesn't affect
Thanks and Reagrd
Hemant.
|
|
|
|
|
Form.BringToFront() ?
"One of the Georges," said Psmith, "I forget which, once said that a
certain number of hours' sleep a day--I cannot recall for the moment how
many--made a man something, which for the time being has slipped my
memory."
|
|
|
|
|
Hi,
This doesn't work, it just shows the icon on task bar blinking
Thanks & Regards,
Hemant
|
|
|
|
|
Hello
Hemant kulkarni wrote: I written a form application which is needed to activate when it receives a event
How did you Deactivate your form?? Reverse it!
Regards
|
|
|
|
|
Hi,
I minimized it by clicking the minimize box, but now I want it to be activated when user presses f12 key which I handle in a Windows hook
Thanks & Regards
Hemant.
|
|
|
|
|
Hello
If that's it then just like stancrm told you WindowState = FormWindowState.Normal should work! If not, try to add Activate() after it.
Hemant kulkarni wrote: when user presses f12 key which I handle in a Windows hook
I thought WinXP doesn't allow anybody to hook the F12??!! Strange!
Regards
|
|
|
|
|
Currently I am stacked from what Im doing. My problem is that I have a tabControl and inside the first tab, I want to have two divisions the left division (for menus) which comprises of buttons like button1 button2. Then on the rigth division displays the respective content for the button1 and button2.
For example, button1 when clicked, it will display a datagrid of a table. Then on the button2 once clicked displays a text box and a button etc...
Is this possible? What I want is to design those things at design time. Then I just called it. Is this possible?
If you could create me a simple prj like this or point me to a certain tutorial that is same as my scenario that will be great.
Please help, bec I cant start at all.
|
|
|
|
|
Hello
It's not just posiible, it's also easy with several ways.
1- Create you Menustrip, dock it to the left, make the text of each button vertical.
2- Make all your controls and put them in small sizes on the tabpage, you'll resize them later.
3- Set all controls Visible = false
3- Now, if it will be only one control at a time, handle the click event of each menu button, and on each button make all controls Visible = false, and Dock = None, except the one you want to show => Visible = true, and Dock = fill;
4- If it will be more than one control, put them all in a panel, or a group box, and handle the group box or panel just as in step 3.
5- Don't forget to initialize your tabpage with the first control you wish to view
This was just one way. Improvise!!
Regards
|
|
|
|
|
Hi,
I need to create form like ICQ/
Thank u
|
|
|
|
|
What do you mean excactly with 'like ICQ'?
Maybe you can use the msn API, or skype beta API? I don't really know if ICQ has an API too, maybe it has? Try a search on google...
Succes
|
|
|
|
|
i mean a form that wouldn't be hidden by another form and the other windows will be affected by this form (the form will be showd always even if other window are open)
|
|
|
|
|
Hello
You will have to use windows API to do this. The function is
::SetWindowPos(m_hWnd ,
HWND_TOPMOST,
rect.left,
rect.top,
rect.Width(),
rect.Height(),
SWP_SHOWWINDOW
search for how to handle unmanaged calls from C#, and dllImport.
Regards
|
|
|
|
|
Dear Respected Programmers
I need Simple Samples of Send and Receive Email.
thank you
|
|
|
|
|
But not enough to try google ? The web abounds with samples for this.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hello
All you need is in System.Net.Mail namespace. Check MSDN for samples, or search the C# network articles here in CP.
Regards
|
|
|
|
|
Dear Respected Programmers
Kindly help me and give me solutions about :-
whenever I insert the date value into table
"Example VAlue 01/08/2006" it goes to with this format => 08/01/2006. Please help me.
Thank you very much in advance
|
|
|
|
|
Hello
The problem is in your culture. What culture do you use in your program - if any-, and what culture is installed on the machine?
DD/MM/YYYY can be transfered by error to -> MM/DD/YYYY
Regards
|
|
|
|
|
The problem is that you don't use the date format that the database expects, so it interprets the date wrong. It's not stored with the wrong format (as a date field doesn't have a format) but as the wrong date. If you try 13/08/2006 you will get an error message, as there is no 13th month.
Use parameterized queries, then you don't have to bother about the format of the date.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
Your problem is the DateTime format that the database requires. The Access database uses the Culture as it's set in the Regional Options. If you want to force your application to use a certain culture use something like:
<br />
Application.CurrentCulture = new System.Globalization.CultureInfo("en-US");<br />
An easier way is to extract the Month,Day,Year and create the string in the way that the database expects.
<br />
DateTime now = DateTime.Now;<br />
string s = String.Format("{0}/{1}/{2}",now.Day,now.Month,now.Year);<br />
Do your best to be the best
|
|
|
|
|
hi,
Please can Any one tell me,
how to change the color of Indiactor in Radio button using themes.
sunny
|
|
|
|
|
Hello
I don't know what you mean by themes, but if you mean windows themes, they automatically changes how your forms look not just radiobuttons. If you mean you wnat to change it by yourself handle the paint event and draw whateve you want accodring to the checked status using e.Graphics.
Regards
|
|
|
|
|
Hi all,
I have designed a custom message box using form,label and Ok,cancel buttons. here i have a problem like the user may want to display a message with multiple lines. I set the label autosize=false, form's borderstyle=FixedDialog. so it is displaying at the maximum of 2 lines rest of text being hidden in the label. how can i automatically resize the form for the Labeltextwidth. (as like as normal windows messagebox)
Thanks
Srini
|
|
|
|