|
Hello,
I think System.Windows.Forms.Form.DragDrop should do it.
Arrives at end of dragdrop action.
All the best,
Martin
|
|
|
|
|
I've tried it and i think dat the dragdrop event only works for controls being dragged or dropped. It doesn't fire an event for Forms that are being dragged.
There has to be some sort of simple sollution, i'm thinking of creating a thread that watches the position of the Forms and generates a custom event... But i prefer a more simple sollution.
|
|
|
|
|
I want to create a tab menu - horizontal with all the tabs left justified
except for the last one which I want right justified.
|------------| |----------| |---------| |---------|
|---------| |---------|
|------------|--|----------|--|---------|--|---------|
|---------|
Thanks
bijaya
|
|
|
|
|
Hello all,
I created setup and deployed it in target machine. My main GUI application referenced several dll with CopyLocal=false at design time; Now the those dlls are placed in different folder on the target machine. when i run the application(EXE) on target machine it throws me the err "Cannot find the file(DLLNAME )". How can i tell the CLR to look the specified dll's paths.
I don't want my dlls to be installed in GAC. since it needs stuff like Strong Name,versioning. i don't want these features.
Here i have tried 2 things.
1) i have added the dlls path in Environment variable Path
2) I tried to use GUIs app.config like this
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="Common;Shared;Group"/>
</assemblyBinding>
</runtime>
</configuration>
BUT NOTHING WORKS for me . Any suggestion
Thanks and Regards,
Srini
-- modified at 3:05 Wednesday 26th July, 2006
|
|
|
|
|
You can get some information on finding your DLL here[^]. However you have a hardcoded set of paths. If you have the dll's located in any possible folder, then they should be registered in the GAC. This will also improve the performance of the load since the GAC is the first place the framework looks when it goes to load an assembly.
Personally, I'd register those DLL's in the GAC and leave it at that.
|
|
|
|
|
I am working on project in c#.net that requires desktop dialing.
Requirement: We want to connect EPABX with the Computer Server machine(which is connected to other Client machines by Local Area Network-LAN). When user initiate a event on the client machine for dialing(etc) the request goes to server machine and then server machine sends request to EPABX.
Question:
1. How we can connect EPABX with computer server.
2. How server machine send request to EPABX.
Please guide.
Ashwani
|
|
|
|
|
HI,
Anyone can tell me how to to save the doc files in C.
arun
|
|
|
|
|
Do you mean C, C++, or C# ? By doc files, do you mean Word documents, or a document format of your own choosing ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
hi
i have a win form... and i'm changing it's properties at runtime (e.g. BackColor) at some point i want to get back the orginal BackColor.. the color i specefied at design time.
when i'm creating a new instance of the form and trying to copy the BackColor from it it's not working! it's as if i changed the class not an instance of it at runtime!!!
please help me
|
|
|
|
|
If you create a new instance of the form that means you have a new form and you change the color of the new form. If you just want to change the backcolor, then use:
this.BackColor = Color.Red; //(for example)
|
|
|
|
|
LOL - I just answered this on MSDN. Your form needs to call InitialiseComponent in order to have it's properties set. Create a method that sets the default properties, call it after InitialiseComponent and then call it again if you need to reset.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hello,
Before you change the Forms BackColor you have to save it at a global Color variable
<code>
private Color oldBackColor;
private void youreMethod()
{
//save your color
oldBackColor = this.BackColor;
this.BackColor = Color.???;
}
private void youreothermethod()
{
//get back youre color
if(Iwhantit()==true)
this.BackColor = oldBackColor;
}
</code>
Hope that helps you.
All the best,
Martin
|
|
|
|
|
Hi all,
Greetings...I'm using range validator for date validation.In that i've channged the Type as 'Date'...but the Maximum Range of the Date is no accessing...can any one tell me how to rectify this...
Babu
|
|
|
|
|
Please tell me what I am doing wrong. I have some problems using Crystal Reports. I have for an example an Access database with a table called "Authors". I connect to the database using the server explorer in VS.NET 2005, I create an OleDbConnection and a DataAdapter. I use the Generate Dataset option from the DataAdapter to generate a Typed DataSet called dataSet1. I load data into the DataSet using the Fill method from the DataAdapter. Then I insert a new Crystal Report Document Using the Wizard and I add as data source From the Project Data/ADO.Net Datasets the dataset1.Authors. I add all the fields from the dataset and I add an Crystal Report Viewer control to the main form. I use the folowing code to set the ReportSource filed of the viewer:
CrystalReport1 cs = new CrystalReport1();
this.crystalReportViewer1.ReportSource = cs;
Ok, when I run the Application the Crystal Report Viewer it lists nothing from the DataSet data. What is wrong?
|
|
|
|
|
Yay I found a solution just by adding one line of code to the code from above:
CrystalReport2 cs = new CrystalReport2();
cs.SetDataSource(this.dataSet11);
this.crystalReportViewer1.ReportSource = cs;
|
|
|
|
|
Thanks for this - much appreciated.
Wish I'd found it two days ago
Glen Harvy
|
|
|
|
|
The EnableAutoDragDrop property for the RichTextBox gives the ability to copy text when dragging. Is there anyway to fix this so that the text is moved instead?
Also, just overriding dragEnter and dragDrop with e.Effect = DragDropEffects.All; gives seemingly flawless DnD behavior without the use of DoDragDrop or having to trace the drop index using the coordinates. How come this method isn't mentioned anywhere?
Any suggestions on how to get DnD working on a RichTextBox would be greatly appreciated. Please and Thank you!
// Mikzi L. Freeman
|
|
|
|
|
Hi there,
can any one guide me, in how to create auto folder when i pass the path for ex: "C:\folder\subfloder\"
i want to create subfolder automatically when i key in this path in parameters. pls do the need ful.
|
|
|
|
|
Directory.CreateDirectory doesn't work ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Please help me!
I want set location of the MainMenu, ToolBar in Design time of WindowForms, norman that set as Top. If can please send mail:
hoatieukiem@yahoo.com
Thanks!
-- modified at 21:37 Tuesday 25th July, 2006
|
|
|
|
|
Can you please explain better what are you trying to do because I don`t understand exactly. Thanks!
|
|
|
|
|
I think you cannot do that in standard mainmenu and toolbar from VS2003.NET.
See this:
http://www.codeproject.com/cs/menu/ToolBarDock.asp
|
|
|
|
|
Hello,
I am developing a web app and trying to use Enterprise Library 2.0. I am using it for logging for now. I achived the logging on a flat file but when I tried to start doing the logging by using a DataBase Listener. I failed.
Here's how I am using it after including all possible references to my web app.
I configured a datasource with following attributes setup:
-Server (my server name)
-Database (my database in my server)
-Integrated Security (I used API.. something, false, true and I even tested after removing this tag aswell).
-user (my user name)
-pwd (my password)
Then I configured a Database Listner and gave the reference of my datasource.
Then I configured a Logging block by adding different categories and then I added reference to my Database listner in categories.
I also tested by adding and removing following in web.config:
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs"
="" type="Microsoft.CSharp.CSharpCodeProvider,
System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" compileroptions="/d:SANDBOX,DEBUG">
----------------
After doing this all when I try to log an entry after specifing the category to the entry and other required attributes. NOTHING HAPPENS in tables I generated after running the script file provided by Best Patterns and Practices team. I couldnt log any data.
Is there anybody who can help me or tell me what I am doing wrong?
|
|
|
|
|
sorry, I copied and pasted the following b4:
type="Microsoft.CSharp.CSharpCodeProvider,
System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
compilerOptions="/d:SANDBOX,DEBUG" />
in the last line in codedom tag its /d:TRACE
|
|
|
|
|
I am trying to get each item from a listview and write it to an xml file. For instance lets say i have 2 items in the ListView: http://download.com/download1.zip & http://download.com/download2.zip. below is the code i have but it gives me an error: Unable to cast object of type 'System.Windows.Forms.ListViewItem' to type "System.String'.
XmlNode nodeDload = xmlDoc.DocumentElement;
XmlElement Dload = xmlDoc.CreateElement("Download");
XmlElement dataDload = xmlDoc.CreateElement(i.ToString());
XmlText textDload = xmlDoc.CreateTextNode("");
nodeDload.AppendChild(Dload);
foreach (string item in aUrlView.Items)
{
Dload.AppendChild(dataDload);
dataDload.AppendChild(textDload);
textDload.Value = item;
++i;
}
Example Below
<root>
<download>
<1>http://download.com/download1.zip</1>
<2>http://download.com/download2.zip</2>
</download>
</root>
Could someone help me out with this?
Thanks in advance
Don't be overcome by evil, but overcome evil with good
|
|
|
|