|
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
|
|
|
|
|
i did check and all my column name, it did match up.
any clue?
|
|
|
|
|
nurul aida wrote: any clue?
Nope
The exception quite clearly states that it can't find the ID column in the DataRowView so that's where you'll have to look.
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
|
|
|
|
|
Ed, thanks for the help.
it is actually one column didn't match...
thanks!
|
|
|
|
|
Hi,
I'm wrinting a windows application in C# and want to build a 'breadcrumbs' section to show the user where they are in the application.
In keeping with the webstyle of breadcrumbs most users are familiar with I want my breadcrumbs to display as hyperlinks.
I tried using a group of linklabels (on for each level) but I have trouble with this when one of the level names is so long that it overwrites part or all of the next label... so I thought I'd use a richtextbox.
I declared a couple of strings to handle the rtf syntax:
<br />
string rtfStart = "{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Verdana;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs18 ";<br />
string rtfEnd = "/\\par\r\n}\r\n";
then added my level names inbetween:
<br />
string test = rtfStart + root + Separator + deck + rtfEnd;<br />
richTextBoxBreadCrumbs.Rtf = test;<br />
However this just displays my level names without URL style formatting.
So my question is, can you force a richtextbox to display a string which is not a URL as a URL and if so, what am I doing wrong?
If this can't be done and I have to resort to using a linklabel, is there any way to deduce which part of a link label has been clicked if I just build my breadcrumbs as one long linklabel?
Too hot and tired, Newbury, UK
|
|
|
|
|
Hi!
You might want to take a look at this article[^]
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
Mav,
I think that's just what I'm looking for. Thanks!
Mike
|
|
|
|
|
hi
can you please tell me if there's a way to check the current InputLanguage if it's considered a latin language?
thank you
|
|
|
|
|
use System.Globalization; namesapce<br />
and check <br />
<br />
if(CultureInfo.CurrentCulture.DisplayName=="Latin")
<br />
to get currently istalled cultures name use CultureInfo.InstalledUICulture.DisplayName
-- modified at 2:18 Tuesday 25th July, 2006
|
|
|
|
|
I do not think there is a direct way. You can go though the CultureInfo's TextInfo property and get the code page (ANSI, OEM or whatever you like) and try to base it on this. It would probably narrow it down to a few codepages you should "include", but to be honest I am afraid you might as well create a manual list and check the major language name. It should not take toooo long.
|
|
|
|