|
You can shorten this procedure by using the static Start method.
Process.Start(path, arguments);
The parameter arguments is optional, so the method call will look like this.
Process.Start(path);
|
|
|
|
|
Try this one (replace the address to the actual address)
Process.Start("mailto:someone@hotmail.com");
|
|
|
|
|
<HelpMePleaseFor$>
The author of this letter do not know which forums to put it in to get best response from please help the author by coping his request
to any forum or group that you know it's better and faster to reply
</HelpMePleaseFor$>
Hello
I'm Yaser zia sistani
And Iranian c# Developer
I want an app and anybody who help me in finding it or/and buying it
or who give me some c# source code to develop it will payed
according to the price that he wants.
Program that i want :
c# app with source code that let a user in an intranet
manipulates its data in a sqlserver database
which means:
1-create and manipulate sql server tables,views,stored procedure
preferably by a good sql designer gui
2-create web forms dynamically from web by
selecting the tables,views, stored procedures
from a sql server database and let user save the form
in sqldb or xml file
3-create web reports with save capability and good
report generator or designer
easy to use and powerfull gui are beter for our personel
4-security is needed in all above needs
I want a full package to buy ,please send me the price and brochour
If you have some libraries that helps me approching this goal
I can buy them from you with good price
Please help me Really I will pay for it.
But Please hurry up
Yaser Zia Sistani From Iran
A C# Developer
yzsfsg@yahoo.com
|
|
|
|
|
yzs wrote:
I'm Yaser zia sistani
And Iranian c# Developer
Please, what keeps you from developing it yourself and learning along the way?
- Nick Parker My Blog | My Articles
|
|
|
|
|
Try ur luck at http://www.rentacoder.com/RentACoder/default.asp
I would have loved to do it but I have my hands full
------------------------------
"There is no reason anyone would want a computer in their home"
Ken Olson, chairman & founder of Digital equipment, 1977
|
|
|
|
|
I m using the Com namespace "SHDocVw" .but when i m making Setup it gives me the following error and setup uncompleates.
i have also copied this file in my application's bin dir but again same problem ,it gives me following error when i make setup ...
ERROR: 'shdocvw.dll' should be excluded because its source file 'C:\WINDOWS\system32\shdocvw.dll' is under Windows System File Protection.
please if possible give me the solution
This is Jitendra
This is Jitendra
|
|
|
|
|
Generate the assembly with a different name, like Interop.SHDocVw.dll, which is what VS.NET would call it if you did imported the typelib in the shdocvw.dll library by adding a COM references in the Add Reference dialog.
If you're using tlbimp.exe, use command line switches like this:
tlbimp /out:Interop.SHDocVw.dll %WINDIR%\System32\shdocvw.dll Type the following for more information about the switches available for tlbimp.exe:
tlbimp /? You should also consider signing this and keeping it in a global directory that's easy to reference. If you do sign it, you can install it in the GAC. Believe me, this is a common assembly in many applications, except that everyone signs it with a different key, if they sign it at all (production code should always be signed to help protect the integrity of the product, not to mention it's so easy there's no excuse not to).
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
You can convert the components of SHDOCVW.DLL to ActiveX components.
NOTE: This requires Visual Studio .Net!
Copy the file: C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Bin\AxImp.exe in any directory.
Then make a shortcut (or a link [I don't know the English word for it ]) to this file.
Type this text in "target" field:
"[location]\AxImp.exe" [path] [path] is the dll file to convert.
After doing that in the directory will be following files:
AxSHDocVw.dll and SHDocVw.dll !
Reference the file AxSHDocVw to your project.
An instance of a Browser Object looks like this:
private AxSHDocVw.AxWebBrowser axWebBrowser1;
You can use this Object like any other Windows Components.
If there are any questions left, let me know!
Good luck!
|
|
|
|
|
petermax2 wrote:
NOTE: This requires Visual Studio .Net!
No it does not, Aximp.exe comes with the .NET SDK, which is free to download. Also, if you have Visual Studio .NET, you can easily add the web browser from the toolbar and it will automatically generate the interop assemblies for you.
- Nick Parker My Blog | My Articles
|
|
|
|
|
Why go to all that trouble to execute aximp.exe or any SDK utility for that matter? Simly add "C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Bin" to your PATH environment variable in your System control panel. This environment variable is used to resolve executable paths when you run a problem. If it exists in the PATH, you don't need to type the full path to the executable file. It's also used by the executable loader to locate DLLs that need to be mapped into the process space.
While you're at it, also add the Framework directories (ex: "C:\Windows\Microsoft.NET\Framework\v1.1.4322" so you can use the compilers and the assemblier without typing the full path. Do this for a good developer workstation setup. I make great use of it because I really don't use VS.NET for most code samples.
And Nick is right, you don't need VS.NET for the Framework SDK. The .NET Framework SDKs are freely downloadable installations separate from the Framework installations that provide everything you find in "C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK" on your machine, since VS.NET just includes the Framework SDK installation.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
You are rigth!
Sorry...
|
|
|
|
|
if i have a mdi child form within a mdi form and i want to restrict the child so it can't move outside of the parent form, how would i do this? this is what i have but when i'm moving the child form i get some weird painting effects.
protected override void OnMove(System.EventArgs e)<br />
{<br />
if (this.Left <= this.Parent.Left)<br />
this.Location = new System.Drawing.Point(this.Parent.Left, this.Location.Y);<br />
if (this.Right >= this.Parent.Right - 3)<br />
this.Location = new System.Drawing.Point(this.Parent.Right - this.Size.Width - 4, this.Location.Y);<br />
if (this.Top <= this.Parent.Top)<br />
this.Location = new System.Drawing.Point(this.Location.X, this.Parent.Top);<br />
if (this.Bottom >= this.Parent.Bottom - 3)<br />
this.Location = new System.Drawing.Point(this.Location.X, this.Parent.Bottom - this.Size.Height - 4);<br />
base.OnMove(e);<br />
}<br />
thanks,
Rob Tomson
--
There are 10 kinds of people. Those who understand binary and those who don't.
|
|
|
|
|
I'm not sure of some auto-magical way to accomplish this, but what you're doing is roughly what needs to happen somewhere down the call stack anyway. So, what kind of "weird painting" effects are you getting? Is there a lot of flickering, or is something else going on (like your VCR time gets reset )?
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
my vcr time is just fine but what i am getting is bad flickering. it flashes back and forth from where the form is suppose to be to where i am trying to put it. so is there a way to disable the mouse down or the form painting when it reaches the boundaries of the parent form?
thanks,
rob tomson
--
There are 10 kinds of people. Those who understand binary and those who don't.
|
|
|
|
|
I see. The form is still trying to go where you put it but when your code executes it tries to put it back to where you want it to be. You definitely don't want to stop painting, but you could try to override OnMouseMove and do NOT call base.OnMouseMove if you've reached your MdiParent 's extents. This might work, so long as it cancels the underlying WM_MOUSEMOVE notification message handler. I highly doubt it since the MouseMove event is fired in response to the mouse moving. In this case, try overriding the child form's WndProc and before calling base.WndProc , handle the WM_MOUSEMOVE notification message (0x0200) and just return without doing anything if you've reached your MdiParent 's extents.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
wow, you lost me there. i don't know the language well enough to do what you're suggesting. i guess i'll just put it back to the default, where the form is allowed to go off screen. thanks for you help though, i really appreciate it.
thanks,
Rob Tomson
--
There are 10 kinds of people. Those who understand binary and those who don't.
|
|
|
|
|
Consider this a learning experience, then!
Have you ever done MFC or even just straight win32 programming with the Windows Management APIs? If so, you know about all you need to know (undering marshaling and P/Invoke will be required a little, too, but nothing extraordinary.
In your class for which you want to override the behavior, just do something like this:
protected override void WndProc(ref Message m)
{
if (m.Msg == WM_NCMOUSEMOVE)
{
if (Left <= MdiParent.Left || ...) return;
}
base.WndProc(ref m);
}
private const int WM_NCMOUSEMOVE = 0x00a0; Like I said, though, I'm really not sure this will work, although I have more hope for this than for override OnMouseMove since that happens in response to the WM_NCMOUSEMOVE notification message and can't be canceled.
This little line just determines if your window can move anymore and throws out the message if it can't. You might also notice I changed WM_MOUSEMOVE that I posted before to WM_NCMOUSEMOVE for the non-client area of the dialog...what was I think?!
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
i'm always ready to learn. unforunately i havn't worked with MFC or windows management APIs. i've tried everything i can think of to get this to work and i tried playing around with the code you gave me but it seems like that code executes at odd times. i had it update a textbox when it drops into the if statement before it returns and it doesn't update it in the same spot everytime, it's weird. i would like to know where you got the WM_NCMOUSEMOVE = 0x00a0 though. what does this mean and why is 0x00a0 an int?
if anyone out there has any input for constricting the movement of a form to stay within it's parent that would be great.
thanks,
Rob Tomson
--
There are 10 kinds of people. Those who understand binary and those who don't.
|
|
|
|
|
I got the constant value from winuser.h, the header with most of the constants defined for the Windows Management and related APIs. You can easily find these if you download and install the Platform SDK, which does get installed by default with VS.NET (though it's not pretty old).
Why is 0x00a0 an int ? You've never seen this notation? It's a simple hexidecimal notation, or base16, which is 0123456789abcdef. So, 10 (a) * 16 = 160. int (Int32 ) is only a 32-bit number, as is 0xXXXX (four alphanumeric characters).
I typically keep the hexidecimal notation that's defined with the C/C++ headers from the PSDK, though, because it makes lookups easier and lets me format my code better.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
How can I get The all user defined table name from a MSAccess Database using Ado.Net(c#)
This is Jitendra
|
|
|
|
|
You can use a query like the following:
SELECT Name
FROM MSysObjects
WHERE Type = 1 AND Name LIKE "MSys%" All the Access system tables start with "MSys", so unless you expect user tables to begin like this the query above should work fine.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thanks to u
This is Jitendra
|
|
|
|
|
It gives Problem regarding Permission when I execute the query the permission Exception is raising and saying that u don't have right to read MSys table .
Thanks FCriend
|
|
|
|
|
There is no "MSys" table, but many tables that start with "MSys", which is why I said "MSys*", like a wildcard match. Make sure you specify a proper table and that the credentials (username and password) you log in with have administrative privileges (like the "Admin" user).
Also, don't say things like "the permission Exception". If you need help, be specific and say SecurityException or InvalidOperationException or something like that, along with the exact exception message. There's many things that can go wrong in an application, even in specific blocks of code.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I write a winApp to send EMAIL. Since the server needs to authenticate, so
I need to use TcpClient rather than SMTPMail class. But the problem comes.
Following the DATA tag, I send strings like these:
"Subject:IP Notice"+CRLF;
"This is your IP."+CRLF+"."+CRLF;
But when I receive the mail, only subject was appear and there was no mail body. If I do it in this way, sending the follow strings:
"Subject:IP Notice"+CRLF;
CRLF;
"This is your IP."+CRLF+"."+CRLF;
Then the body exists.
Please do me a favor. I don't know why. Thanks a lot
|
|
|
|