|
The reason I have a well-paid job and a comfortable standard of living is because I worked and studied hard to get where I am. This is something you need to learn. If you depend on others to do your work then your life chances and job opportunities will be limited.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
|
kulkoustubh,
Whats a B.E student? and "A complete code and running project is also welcome." YEAH RIGHT!.
So you want to add a TabControl to the FileOpenDialog?
Regards,
Gareth.
|
|
|
|
|
Dim Client As New WebClient()
Client.DownloadFile("http://www.yahoo.com", "D:\abc\yahoo.html")
when i run this code i am getting out put yahoo.html page when i run this code local host
if i host in remote server i want to download the same page in D:\ or any other directory what i need to give the path.
i getting exception when i run the same code in server.
i am getting out put successfully , when i run local host , pleasee any one can give me solution for this, i want to download file in my local phisical directoy, when i host my dotnet application in remote system.ing the webclient
This is haneef.............................................................
|
|
|
|
|
haneef,
Whats the exception?
Regards,
Gareth.
|
|
|
|
|
Do NOT post the same question in multiple forums. Doing so is considered very rude around here and on other sites as well. And, as you've found out, it doesn't get your question answered any faster.
|
|
|
|
|
hi all
I Create Backup database By Using C#.Net Code .
this code is created the backup of DataBase .
but if I wount to Create Backup From Client Is Connected By Server
the Backup Code is Give me This Exeption :-
Could not Load File or assembly ' MicroSoft.SqlServer.Smo
Version=9.0.242.0 ,Culture=neutral
publickey Tolen=89845dcd8080cc91' or one of it's dependencies.The
System cannot find the file specified .
End of Exeption ! .
who I Can Create BackUp Of DataBase From Server To Client or What is The File Specify is the system cannot find it ?
Thanks For Any body hellp me
Thaer
|
|
|
|
|
First of all, you keep posting these messages in the C# forum when they are clearly database-related and should be in the SQL forum.
Secondly, you have given your post a meaningless title (and even managed to spell one of the 4 words incorrectly). How does 'Important to hellp (sic) me' give any clue what your problem is? Read the forum guidelines thoroughly before you post again.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
search if the assembly is on the client machine
SkyWalker
|
|
|
|
|
Hi
i maked a custom event as 'MouseMoveExEventArgs' that inherited from MouseEventArgs to add some more property and info as follow :
namespace CustomEventHandler<br />
{<br />
public delegate void MouseMoveExEvent(object sender, MouseMoveExEventArgs e);<br />
<br />
public class MouseMoveExEventArgs : System.Windows.Forms.MouseEventArgs<br />
{<br />
Point m_mapScrollPos;<br />
<br />
public MouseMoveExEventArgs(Point mapScrollPosition) : base(System.Windows.Forms.MouseButtons.Left,1,mapScrollPosition.X,mapScrollPosition.Y,0)<br />
{<br />
this.m_mapScrollPos = mapScrollPosition;<br />
}<br />
<br />
public Point MapScrollPosition<br />
{<br />
get<br />
{<br />
return this.m_mapScrollPos;<br />
}<br />
}<br />
}<br />
}
and in my custom user control, write this code :
public event MouseMoveExEvent MouseMoveEx;<br />
.<br />
.<br />
.<br />
protected virtual void OnMouseMoveEx(MouseMoveExEventArgs e)<br />
{<br />
if (MouseMoveEx != null)<br />
{<br />
MouseMoveEx(this, e); <br />
} <br />
}
but i don't know how to raise this event, when mouse move on my control (like MouseMove event),
for this work, i call OnMouseMoveEx event handler in OnMouseMove event handler as follow :
protected override void OnMouseMove(MouseEventArgs e)<br />
{ <br />
Point p = new Point(e.X, e.Y);<br />
OnMouseMoveEx(new MouseMoveExEventArgs(p));<br />
}
my purpose is that replace orginal MouseEventArgs class with MouseMoveExEventArgs event handler in
MouseMove event and raise it when Mousemove event fire.
thanks
|
|
|
|
|
Hi
According to my knowledge when you want use any event of custom control,you need to assign local handler to that event ;
eg.
customcontrol1.MouseMoveEx+=OnMouseMoveEx;
where OnMouseMoveEx and customcontrol1 are both in one class.
I think, you will get how to do it.
Regards,
Amar
|
|
|
|
|
thanks
when in designer mode, double click on MouseMoveEx event in events window, it will be genererated automatically :
customcontrol1.MouseMoveEx+=OnMouseMoveEx;
but i think that the event handler doesn't know what time fire this event.
|
|
|
|
|
Hi,
Can you describe your coding flow shortly ?
Eg. class customcontrol
{
//code of event handler
}
class where_you_use_customcontrol
{
//code of event handler
}
and when you want to raise that event.
So my view become clear.
Regards,
Amar
|
|
|
|
|
Hi.
I want to place a Combo Box in my Windows Form where all the CultureInfo language selection names will appears. For example, when I make a customer control, I created a property of type CultureInfo and then I found that the Visual Studio Property Editor shows the Language lists in a combobox in property window automatically. I want to get this benefit in my Windows form. Would you please give me the right direction ~!
Thanks
|
|
|
|
|
I need to put some listbox selected items in to a string array.
My code:
string [] deleted_dictionarys;
for (int i = 0; i < this.listBox_Delete1.SelectedItems.Count; i++)
{
this.deleted_dictionarys[i] = this.listBox_Delete1.SelectedItems[i].ToString();
}
I don't have sintax errors but i'm getting a NullReferenceException.
How can i resolve it.
|
|
|
|
|
pcaeiro wrote: string [] deleted_dictionarys;
You declare your array but don't instantiate it. You need to do something like this:
string[] deleted_dictionarys = new string[numberofitems];
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
here is easy and short way
string[] deleted_dictionarys = new string[listBox_Delete1.SelectedItems.Count];
listBox_Delete1.SelectedItems.CopyTo(deleted_dictionarys, 0);
Becoming Programmer...
|
|
|
|
|
Hello,
I am wondering if it is really not possible to obfuscate my .NET code by hiding the class names and method names !! I am using XenoCode PostBuild to obfuscate but when I see the decompiled code using Reflector, I can see that only variable names are obfuscated but the Class Name and method names are very clear. For example, - SendKeys.Send("{BS}"); - is clearly visible. My project is such a project that, even one line like this line would reveal my business secret to my competetors and thats why I am worried, if not hiding the Class Name and Method is .NET's limitation or my obfuscator's limitation. Would you please guide me !
Thanks.
|
|
|
|
|
bashiwala wrote: even one line like this line would reveal my business secret to my competetors
What secrets? What have you done that's so revolutionary? Have you reinvented the Internet with go-faster stripes?
If the most groundbreaking aspect of your application is its ability to send keystrokes to the active window, I doubt your 'competetors' (sic) will be worrying themselves too much.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi,
Thank you very much for pointing my ignorance, actually I gave an example of a snippet like
SendKeys("{BS}"), of course it was not my real snippet that what I was worrying about. I placed this question here to learn about the professional way of obfuscation technique that a .NET GURU can suggest. It is not that I invented something like what you said, but it could be something really matter that I may not want to reveal to my competetors so easily unless they are desparate to break my code, I hope I made my question clear, ain't I.
Again, thank you very much for replying me.
|
|
|
|
|
If you choose to develop in an IL-based language like C#, you will have to accept that someone will a little time and patience will be able to disassemble your application. Obfuscators, even the better commercial variants will only delay this process. If someone is determined enough, they will be able to obtain your source code and 'business secrets'. If this is an absolute priority, maybe C# isn't the right language to use and you would be better served by moving to a language that compiles to native code like C++. Before you do this though, consider whether your source code really contains anything that constitutes a commercial advantage. Are you doing anything that's particularly groundbreaking? If not, your source code probably doesn't contain anything that your competitiors couldn't figure out for themselves.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Thank you Sir, this answer helped me a lot.
Actually my target is to learn software development business using the benefits of .NET. So, I was wondering, if the source code is open then what will be the motive for a developer to participate in e-Commerce !! Now I have understood the reality and got my answer.
|
|
|
|
|
Considering the amount of effort the computer gaming industry and Microsoft put in to stop their products being copied - and how that manages to fail every single time, I'd suggest you don't have much hope.
If your idea is unique and revolutionary, then patent it and enjoy the legal protection.
Without the legal protection, if your technique is really worth lots of money (which I sincerely doubt) then your competitors will definitely find it worth paying a .Net guru to reverse engineer your application. In this case an obfuscator / coding in C++ / executable packers will only make it a little more expensive for your competitors to find out your "IP".
|
|
|
|
|
This[^] might be worth a look.
Dave
|
|
|
|
|
Just change the names to meaningless gibberish.
Way back when I was first learning Pascal there was a program I wrote using only nonsense words for variable names.
|
|
|
|