|
thanks but it couldnt be useful for me.
I want my windows applications catch some argumans that in which screen resolution user is running this application and set my usercontrol location and size by coding.
|
|
|
|
|
Haven't we replied to this several times lately?
Handle the "resize" event. This is the ONLY option for a form unless you are making something really special - like a kiosk mode application where you need to ensure your application is the only one running on the screen (again, only do this if you KNOW this is the case, if you THINK it - then you are wrong).
If it is to run in "kiosk mode", there is apparently a something called "Screen.*" according to previous replies to this (I have no idea if it is a class with static properties or a property on the application or form class).
|
|
|
|
|
Hi, Salmani.
To set your application according to screen resolution you can use System.Windows.Forms.Screen class which provides information about all displays on the system.
|
|
|
|
|
To Get Screen Resoltion this is the code
MessageBox.Show(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width())
MessageBox.Show(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height())
To set the Screen According to your Resoltuon . you have to use Anchor and Dock properties accordingly as with the help of these you can expand your controls when the form will be maximized or resized.
Remember you dont need to code for this only visual control settings required
|
|
|
|
|
problem configuring c# with outlook send mail security issues,
|
|
|
|
|
mac@thework wrote: problem configuring c# with outlook send mail security issues
Very vague, what exactly is the problem?
I'd like to help but I am too lazy to Google it for you.
|
|
|
|
|
securiy dialog keeps popping up
|
|
|
|
|
Hi,
I have a window form which consists of many controls and logic inside, so when the form is being shown, the controls rendering process on the form last for 2-3 seconds. How can I use a wait cursor and show the form immediately without the rendering process being seen by users ?
Thanks
|
|
|
|
|
Hy,
I don't know if this will help you but try to delete the this.ResumeLayout(false) line from the InitializeComponent function and put it in the FormLoad event. If you load some controls in a dynamic way write the line this.SuspendLayout() in the begining of the code where you load the controls and the this.ResumeLayout(false) when you finish loading. It helped me some times. Hope this is a solution for you.
Do your best to be the best
|
|
|
|
|
You can set the form's cursor property into wait cursor at the Form_load event. instead You can improve the Form loading performace by setting form's property DoubleBuffered=true
|
|
|
|
|
Hi all,
I have created a chat application and now i want the user to be able to
see his/her yahoo messenger contacts in my messenger.
Any links or pointers in this context will be appreciated.
Thanks & regards,
Pramod
|
|
|
|
|
Hello Pramod,
I think this will help u.
regards,
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
Thanks for the reply but i want to make my application compatible with
Yahoo, MSN and AOL.
Do these messengers expose any kind of services which can be accessed
and then the messages can be transfered?
Thanks,
Pramod
|
|
|
|
|
GAIM is multi-protocol instant messaging (IM) client as well as library. So, u can use lib in ur application.
|
|
|
|
|
i want to remove the form icon from the caption bar like a dialog window. How can i do this?
|
|
|
|
|
Set form's property FormBorderStyle = FixedDialog
|
|
|
|
|
it is easy. just in form properties change formborderstyle to SizableToolWindow.
I hope it could help u.;)
|
|
|
|
|
Are there any free utilities for converting Intergraph GeoMedia Access warehouse(.mdb)to other formats, especially to ESRI shapefile format or Foxpro tables format?
Thanks in advance
Pankaj Dubey
|
|
|
|
|
Hi all
I am developing instant message application, I need to select a node from treeview and enter the text in the textbox,click Send button to append the text to another ListBox.
I have problems in following:
1.When I select a node and enter the text in the textbox,the node is unselected immediately, I wanted to keep node highlighted.
2.When I enter the text and hit enter, I wanted to do same function as Send
button, instead the cursor is going to next line on hitting enter key.
Please help me , I tried changing all the events/properties but didn't work.
Aruna
|
|
|
|
|
Hi, Aruna.
1. treeview.HideSelection = false.
2. You can a) set form.AcceptButton = btnSend if your form is a dialog or you can b) handle KeyDown event of the textbox:
private void textbox_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyData == Keys.Enter)
{
}
}
|
|
|
|
|
Thanks a lot Andrew!
My problem solved with your help.
|
|
|
|
|
i have a MFC dll from a video capturer SDK which i want to use in C#.
it was defined in MFC function with a class named AVEControl.
i have not the source code of the Dll but only the head file as below.
if i use [DllImport] directly, an runtime exception is shown with the message "can not found the entrypoint in *.dll".
i guess it was because all function is in the class so i can not call it directly.
so i want to know how to wrapper it with VC++.net or otherwise.
<here is="" the="" head="" file="" of="" dll="">
!!!please notice the DEFINE of CLASS!!!
// AVEControl.h: interface for the AVEControl class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_AVECONTROL_H__4E171B4B_A11B_49F1_B41C_5F4A31B5CF08__INCLUDED_)
#define AFX_AVECONTROL_H__4E171B4B_A11B_49F1_B41C_5F4A31B5CF08__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifdef DEVICECONTROL_EXPORTS
#define DEVICECONTROL_API __declspec(dllexport)
#else
#define DEVICECONTROL_API __declspec(dllimport)
#endif
typedef HRESULT (*AVECALLBACK) (PBYTE pbData, LONG lDataLength);
#define E_DEVICE_NOT_READY 0xB0004001L
class DEVICECONTROL_API AVEControl
{
public:
HRESULT StartRecordWithoutPreview(HWND hWndCap, CString FileName, __int64 pFileLength, UINT pFileMessage, BOOL pShowSetting = TRUE);
HRESULT StartRecordWithPreview(HWND hWndCap, RECT rc, CString FileName, __int64 pFileLength, UINT pFileMessage, BOOL pShowSetting = TRUE);
HRESULT StartPreview(HWND hWndCap, RECT rc);
HRESULT SetVideoClippingWindow(HWND hwnd);
HRESULT SetCallback(AVECALLBACK Callback);
HRESULT GetVideoStatus(PUCHAR pSta);
HRESULT SetVideoPosition(LPRECT lpSRCRect, LPRECT lpDSTRect);
void GetCurrentImage(CString BmpFileFullName);
BOOL IsGraphRunning(void);
HRESULT StopGraph(void);
HRESULT ApplySettings(CString IniFileFullName);
HRESULT SetVideoProcAmp(long Property, long Value);
HRESULT GetVideoProcAmp(long Property, long* Value);
HRESULT GetEvent(long* EventCode, LONG_PTR* Param1, LONG_PTR* Param2, long msTimeout);
HRESULT SetNotifyWindow(OAHWND hwnd, long lMsg, LONG_PTR lInstanceData);
HRESULT InitDeviceControl(void);
AVEControl();
virtual ~AVEControl();
};
#endif // !defined(AFX_AVECONTROL_H__4E171B4B_A11B_49F1_B41C_5F4A31B5CF08__INCLUDED_)
|
|
|
|
|
Use PInvoke instead.
If it were a class it would have utilized the ATL helper methods and an entry point would have been found.
Nick
-- modified at 9:15 Tuesday 25th July, 2006
|
|
|
|
|
hi,
i need help regarding on this matter.
i'm facing this error and do not know how to fix it.
fyi, im a beginner in .net.
i'm using datatable as a datasource of my datagrid.
the SQL used to get the data from the database begin with:
SELECT SubName, COUNT(*) AS Total FROM tblOneOnOne WHERE creator='"+User.Identity.Name+"'GROUP BY SubWWID, SubName ORDER BY total DESC
my error is as follows:
----------------------------------------------------
Server Error in '/nco6Peoplemap_dev' Application.
DataBinder.Eval: 'System.Data.DataRowView' does not contain a property with the name ID.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: DataBinder.Eval: 'System.Data.DataRowView' does not contain a property with the name ID.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): DataBinder.Eval: 'System.Data.DataRowView' does not contain a property with the name ID.]
System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) +147
System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource) +1317
System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +49
System.Web.UI.WebControls.BaseDataList.DataBind() +23
NCO6Peoplemap.OneOnOne_report.BindSubordinateName() in c:\nco6peoplemap\oneonone_report.aspx.cs:142
NCO6Peoplemap.OneOnOne_report.CheckAccess(String sIDSID) in c:\nco6peoplemap\oneonone_report.aspx.cs:76
NCO6Peoplemap.OneOnOne_report.Page_Load(Object sender, EventArgs e) in c:\nco6peoplemap\oneonone_report.aspx.cs:53
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +772
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300 -----------------------------------------------------------------------------
really hope that someone can help me on this.
Thanks so much!
|
|
|
|
|
nurul aida wrote: DataBinder.Eval: 'System.Data.DataRowView' does not contain a property with the name ID.]
First instance of error
nurul aida wrote: DataBinder.Eval: 'System.Data.DataRowView' does not contain a property with the name ID.
Second time it appears
nurul aida wrote: 'System.Data.DataRowView' does not contain a property with the name ID.
Third time it appears
If you need any more explanation try checking your column names to make sure that they match up.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|