|
How to set desktop icon on status bar
|
|
|
|
|
Hi,
Try this [^] link.
I hope this would resolve the problem.
John Adams
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
Hi All,
I started programming with C#. I have a very primary (read that little) knowledge of C++ and C.
I am mainly interested in Windows Applicaton programming with C# .Net. I realize for developing a good professional applcation one cannot escape an encouter with Windows API function call. Be it Windows animation, some super control or some threading inticacy, API call has to be there.
I am not very much familiar with the old programming languages and the references they made to call the Windows API.
Can somebody please give a pointer for a good C# book which elaborately explains every nook and corner of API programming realm in light of C#? Articles, I have gone through enough on the internet, haven't provided much help save a few syntax. I want to have a complete command and understanding which can only be possible with a good printed book.
Eagerly waiting for a reply!
Best Regards,
Sid
|
|
|
|
|
babai28 wrote: I realize for developing a good professional applcation one cannot escape an encouter with Windows API function call.
I totally disagree. It is completely possible to develop full professional applications using .net without ever calling the windows API.
API calls are only required for doing things that the .net library does not naturally support. (There are plenty of classes for animation, and .net fully supports threading without using the windows API)
My suggestion would be that you get yourself a copy of Pro C# 2008 and the .NET 3.5 platform[^] by Andrew Troelsen. It's an excellent guide to .net. It covers all the bases, including how to do platform invoke (i.e. API calls). Then, when you hit up against a task that .net doesn't support, you can google for specific help in tackling that task via the windows API.
Simon
|
|
|
|
|
That is an excellent book! As far as programming literature, i would suggest any of the books from Apress.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Hi Simon,
Thanks very much for your reply. Even I have come to think that .Net has ample of classes to fulfil almost every need of the developer.
I have a situation in which I need to insert a table in a rich text box and it is not just about generation of rtf and appending it to the rtf property of the RichTextBox it should be movable like it is in MSWord and also resizable. This means I need to insert it like an object. Can you please name a .Net class that can help me achieve this? If there is no direct class perhaps, you would like to suggest a pure .Net work around.
Thanks in Advance,
P.S. I am working with VS 2005 C#2005.
Best Regards,
Sid
|
|
|
|
|
Stuff like this is quite difficult to do. If the RTF box doesn't support it (Can't remember if it can do things like that), then you really have 3 options:
1) Write a custom control (Or extend the current RTF control) - A lot of work. Don't try doing this if you are new to .Net. a custom control of this complexity will be quite a big project. I would suggest it would probably need to be fully owner drawn. If you do go down the custom control route, WPF tends to offer better and easier customisability (but it's still not easy to do something like this).
2) Look for an existing "editor" control. There are stacks of commercial editor controls around that offer features way beyond the standard winforms controls. Companies like Infragistics[^], DevExpress[^] etc. offer this kind of thing. There are loads more out there. (I think DevExpress even offer some of them for free). You can also try looking for open source projects that have editor controls, I'm sure they'll be a few around. You need to spend some time googling to find something that meets your needs. Email the companies and ask if they support what you want to do - some of these companies controls are very complex, so it may not immediately be obvious if you can do what you want.
3) I think it's possible to embed a MS-word "control" into your app. I'm not at my work PC right now, so I can't check, but I've done it with Visio in the past for displaying Visio documents in one of my apps. It might prove difficult to control/limit what the user can do, and it may be total overkill for what you are doing, but it's something to consider.
Personally, option 2 is probably the best.
Good luck.
Simon
|
|
|
|
|
Thank You very much Simon.
Best Regards,
Sid
|
|
|
|
|
No problem.
I did some checking at my dev pc. There isn't a way to embed word directly into your app, but you can do it indirectly buy hosting a word document in a web browser control.
Check out this blog post. It's in foxpro, but the principle is the same
http://www.west-wind.com/WebLog/posts/1299.aspx[^]
It seems rather messy though, and obviously requires that the user has word on their system. I'd still go with option 2.
Thought I'd let you know.
Simon
Simon
|
|
|
|
|
Thanks a lot Simon.
Even I think getting a word app work through the browser control and then training the browser control to behave like a tesxt box will become very messy.
I will go ahead with option 2.
Best Regards,
Sid
|
|
|
|
|
For a semi-detailed explanation of various API commands, i would suggest that you google: API-Guide and API Viewer. API-Guide is discontinued (last I heard, find a mirror download), but it provides detailed descriptions and use of various API commands. All examples are in VB6 (not sure about .NET), but it is only used as a guide for what functions to look into. API Viewer is an excellent program that contains syntactically correct API calls in a variety of languages (all .NET and more).
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
I am using The Windows Forms WebBrowser control in C#. I want to resynchronize or disable browser cache by customizing webBrowser. Needs to set the following flags: DLCTL_RESYNCHRONIZE or DLCTL_PRAGMA_NO_CACHE.
The reference says that I need to implement IDispatch (referenced at http://msdn.microsoft.com/en-us/library/aa770041.aspx)
I am not sure what interface of webBrowser control I need to use? Please send me if you have any info.
Thanks,
Ryan
|
|
|
|
|
|
Hello there, I have this program for where i work. It is basically a windows form that covers the whole screen. However, after a few minutes of the program running the program closes. this is the code i use to get the window full screen
public mainLab()
{
InitializeComponent();
this.Size = SystemInformation.PrimaryMonitorSize;
this.Location = new Point(0, 0);
intLLKey = KeyBoardHooker.SetWindowsHookEx(KeyBoardHooker.WH_KEYBOARD_LL, hooker.LowLevelKeyboardProc
, System.Runtime.InteropServices.Marshal.GetHINSTANCE(System.Reflection.Assembly.GetExecutingAssembly().GetModules()[0]).ToInt32(), 0);
hooker.KillStartMenu();
}
And finally, I use a windows service that interacts with the desktop to start the process on log on.
|
|
|
|
|
Hi everybody!
i'm working Crystal Reports in VB.NET.
I'm don't know how to add a subreports in my reports...and show it in my project
if you cound not try then
msgbox("you will lose")
else
msgbox("you can change yourself")
end if
|
|
|
|
|
In menu: Crystal Reports, Insert, Subreport...
And how to show it: Several examples in BOL.
The need to optimize rises from a bad design
|
|
|
|
|
Hi,
My application working fine in the dev environment.But in the testing /production environment
it is not working because that environment has only
windows server 2003
IIS
I have prepared a MSI which will automatically install .net2.0 framework
In my application I have Used some microsoft VC++ dll's also along with .net dll's.
Now Iam getting "RUNTime Error" pop-up screen message as below
" The Application has been terminated in an Unusual Way"
On googling i came to know that some dll's like msvcrt.dll of windows server 2003 has to be changed...But Iam not pretty sure about it..
In Production/test environment there is only framework installed ,but there is no visual studio installed on it.may be due that this error may occur...
So kindly post your suggestions and views to help me
|
|
|
|
|
balu12345 wrote: In my application I have Used some microsoft VC++ dll's also along with .net dll's.
Use Google to search MSDN for deployment information. Here is an example.[^]
led mike
|
|
|
|
|
Hi, all.
i hope this is the right forum, if not please advise.
i'm trying to work with a ssh connection, for that i use the
Terminal Control Project (C# VT100 SSH Telnet)
By Sardaan Frostreaver from this site.
I need to work programmatically, send commands and check the results that the ssh connection gives. i can connect to the ssh server but i can't find how to work programmtically with this Terminal Control Project. i mean, how to catch the text from the connection that project makes and send commands.
if someone know this issue please help.
Thanks.
|
|
|
|
|
Don't cross post. Look at my suggestion in the other forum
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi,
I'm trying to add a sub menu as a combobox filled by a dataset.
Adding as main menu item it works, as a submenu not.
Here is the code.
Dim dsCBO As New DataSet
Dim GiacCBO As New ToolStripComboBox
Dim strSQL As String = "select item_id,descr from items;"
Dim strConn As String = Me.SQLConnString
Dim daLookups As New SqlDataAdapter(strSQL, strConn)
Try
daLookups.Fill(dsCBO)
With dsCBO
.Tables(0).TableName = "Item"
End With
Catch excFill As Exception
End Try
With GiacCBO
.ComboBox.DataSource = dsCBO.Tables("Item")
.ComboBox.DisplayMember = "descr"
.ComboBox.ValueMember = "item_id"
End With
AddHandler GiacCBO.SelectedIndexChanged, AddressOf GiacCBO_SelectedIndexChanged
GiacenzaArticoloToolStripMenuItem.DropDownItems.Add(GiacCBO)
The combobox is still empty ?!?!
Substituting the last code row with:
MenuStrip1.Items.Add(GiacCBO)
the GiacCBO object show all records of the dsCBO.
What's wrong ?
|
|
|
|
|
listen,
i don´t know if that code is correct, but i think you want to fill combobox with data from table (id_user,user_name).
i don´t know vb but that stuff is really simple if you needed in c# code?!
did you triggered it (form_load event) so if fill combobox when page loads?
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
I have used a class derived from DatagridviewCell and overrided its OnPaint event to draw an image to the cell. My problem is when I run the program in XP style appearance the image loses its quality(sharpness) but when in Classical windows style appearance the image is fine. Does any one know why ?
|
|
|
|
|
We are developing a chat messenger using WCF.
We want to implement SSL security while login. I have read Gtalk (desktop application) also uses SSL while Login; but i dont know how.
Please give your valuable suggestions.
modified on Monday, September 22, 2008 2:08 AM
|
|
|
|
|
Hey guys, I'm working on a MSN client and I was woundering how to turn a string with Messenger Plus! stuff in it, into a label-like control.
Can anyone give me any pointers?
|
|
|
|