|
|
|
Hello, I have an interesting situation here.
I have a C# application called Aquisition.exe that uses a COM dll called reports.dll
The curioisty is that there are two versions of reports.dll - version 83 and version 103 and version 103 is registered on the machine.
Acqusition.exe 's manifest file refers however to version 83 - interop.reports.dll version 83. The interop.reports.dll refers to version 103 and it resides in the folder containing Acquisition.exe
There are no errors and it looks like version 103 is being used by Acquistion.exe even though its manifest refers to version 83.
Is this OK? Should there be a bug in the .NET CLR engine? Can I leave things be? Thanks for your thoughts.
RK
|
|
|
|
|
Hi!
I need a file explorer to be able to implement it in my application, but they all those that I have found do not take the sight in Mosaic that one sees in Windows XP. There exists free someone that is capable of showing this sight? If not, is it possible to do someone? Better that I have found it is the Pi-Sys Labs's .NET Folder View (http://www.pisyslabs.com/DiskObserver.aspx) but it isn't free.
I think that it uses the explorer that show the OpenFileDialog, and show it as a control. How can be done that?
Thanks and sorry for my bad English
|
|
|
|
|
Hello,
Is there a way of placing a groove line on the Form? I tried to look
something up in Customization of a ToolBox, but to no avail.
Thank you.
|
|
|
|
|
hey Zaboboa,
To draw a line in c#, you need to use a label.
//
// label1
//
this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label1.Location = new System.Drawing.Point(44, 68);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(100, 2);
this.label1.TabIndex = 0;
this.label1.Text = "label1";
Or if you really want, you can make a user control that will draw the line(s).
K.
|
|
|
|
|
Thank you, it really helped.
|
|
|
|
|
Does anybody know of a way to add a form to a container?
For example adding a form as a control of another form, but not using IsMdiContainer?
|
|
|
|
|
Set the TopLevel property of your "child" form to false. Then you can add it to any Controls container you want.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks, just what I needed!
|
|
|
|
|
If I run my remoting client, and during run time I temporarily lose my connection to the network, how can I continue on using remoting?
For example,
ServerObj theServerObject = RemotingServices.Connect("tcp://.../obj.rem");
theServerObject.DoSomething();
LanConnection.Zap();
LanConnection.ReEstablish();
theServerObject.DoSomething();
I've been banging my head against a wall over the last 2 days trying to figure this one out. Anyone have insight into why this is happening, or how to 'reconnect' to my server object? Even the least bit of info would be greatly appreciated.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Homosexuality in Christianity
Judah Himango
|
|
|
|
|
In my projects I'm using Activator.CreateInstance() to get my server objects.
One of them is explicitely marshalled in a server application, the other one is a SingleCall CAO.
I didn't experience any problems like this so far. When my server application is shut down, then all calls will naturally fail, but simply restarting the server brings everything back to normal, i.e. my client programs work as if the server never was gone.
Perhaps RemotingServices.Connect does something different than Activator.CreateInstance()...
Can you confirm that using Activator.CreateInstance() gives the same effect?
Regards,
mav
|
|
|
|
|
Hi every body.
I want to make report generator something like Crystal Report that uesr can make report at runtime.
Do something like resize,drag and drap,drawing lines...
If any one have an idea please lead me or if you have code about it please send it to me.(VB,C#,C++)
Thanks
Akbar
|
|
|
|
|
I just wanted to say that.....I dont have what you are looking for
|
|
|
|
|
Hi.
Did you work with Crystal Report ?
I want to write a program like to Crystal Report.I don't know how can I explaine it.
Any way thanks for your attention.
Akbar
|
|
|
|
|
How can I make it so that my datagrid columns span the width of my datagrid, when I get my dataset?
Thanks
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
this.dataGrid1.SizeChanged += new EventHandler(this.OnSizeChanged);
private void OnSizeChanged(object sender, System.EventArgs e)
{
Trace.WriteLine("OnSizeChanged Event Handler.");
try
{
this.AdjustColumnsWidth();
this.AdjustDynamicControls();
}
catch (Exception exception)
{
if ( exception.InnerException != null )
{
MessageBox.Show(exception.InnerException.Message);
}
else
{
MessageBox.Show(exception.Message);
}
}
}
private void AdjustColumnsWidth()
{
foreach ( DataGridTextBoxColumn dgtc in this.dataGridTableStyle.GridColumnStyles )
{
dgtc.Width = 80;
}
}
Alomgir Miah
Live Life King Size
|
|
|
|
|
I think that you are miss understanding what I want. I want my datagrid to spread out the columns across the top of the grid depending on the number of tables.
Currently my code is setting a fix size but I cannot even get that working. Do you have any suggestions?
<br />
GridColumnStylesCollection gcsColl = StudenDataGrid.TableStyles["Student"].GridColumnStyles;<br />
for (int i = 0; i<gcsColl.Count; i++)<br />
{<br />
if (gcsColl[i].GetType() == typeof(DataGridTextBoxColumn))<br />
{<br />
DataGridTextBoxColumn textColumn = (DataGridTextBoxColumn)gcsColl[i];<br />
textColumn.Width = 150;<br />
}<br />
}<br />
<br />
Thanks
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
Hey ,
You want to spread the columns depending on the number of tables or columns? I think I did not understand your question. Assuming you want to spread the columns depending on the number of columns implement AdjustColumnsWidth as. Hope this helps
private void AdjustColumnsWidth()
{
this.isColumnWidthAdjusting = true;
int verticalScrollBarWidth = this.globalEntitySearchGrid.VerticalScrollWidth;
int currentWidth =
this.dataGridTextBoxColumnExConjunction.Width +
this.dataGridTextBoxColumnExEntity.Width +
this.dataGridTextBoxColumnExOperator.Width +
this.dataGridTextBoxColumnExValue.Width +
DELTAFACTOR + this.gridTableStyle.RowHeaderWidth;
int gridClientWith = this.globalEntitySearchGrid.ClientSize.Width - verticalScrollBarWidth;
if (currentWidth > gridClientWith)
{
int delta = currentWidth - gridClientWith;
this.UnWireResizeEvents();
this.dataGridTextBoxColumnExConjunction.Width = this.dataGridTextBoxColumnExConjunction.Width - delta / 4;
this.dataGridTextBoxColumnExEntity.Width = this.dataGridTextBoxColumnExEntity.Width - delta / 4;
this.dataGridTextBoxColumnExOperator.Width = this.dataGridTextBoxColumnExOperator.Width - delta / 4;
this.dataGridTextBoxColumnExValue.Width = this.dataGridTextBoxColumnExValue.Width - delta / 4;
this.RefreshGrid();
this.WireUpResizeEvents();
this.AdjustDynamicControls();
}
else if (currentWidth < gridClientWith)
{
int delta = gridClientWith - currentWidth;
this.UnWireResizeEvents();
this.dataGridTextBoxColumnExConjunction.Width = this.dataGridTextBoxColumnExConjunction.Width + delta / 4;
this.dataGridTextBoxColumnExEntity.Width = this.dataGridTextBoxColumnExEntity.Width + delta / 4;
this.dataGridTextBoxColumnExOperator.Width = this.dataGridTextBoxColumnExOperator.Width + delta / 4;
this.dataGridTextBoxColumnExValue.Width = this.dataGridTextBoxColumnExValue.Width + delta / 4;
this.RefreshGrid();
this.WireUpResizeEvents();
this.AdjustDynamicControls();
}
this.isColumnWidthAdjusting = false;
}
Live Life King Size
Alomgir Miah
|
|
|
|
|
Or this would work too:
DataGridTableStyle style = new DataGridTableStyle();<br />
style.MappingName = dataTable.TableName;<br />
foreach (DataColumn column in dataTable.Columns)<br />
{<br />
DataGridTextBoxColumn gridColumn = new DataGridTextBoxColumn();<br />
gridColumn.MappingName = column.ColumnName;<br />
gridColumn.HeaderText = column.ColumnName;<br />
gridColumn.Width = StudenDataGrid.Size.Width / accessDataSet.Tables["Student"].Columns.Count;<br />
style.RowHeadersVisible = false;<br />
<br />
style.GridColumnStyles.Add(gridColumn);<br />
}<br />
<br />
StudenDataGrid.TableStyles.Add(style);<br />
this.StudenDataGrid.DataSource = accessDataSet.Tables["Student"];<br />
This will autosize the column headers according to the number of columns you have in your dataset.
Thanks for the help.
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
Hello...
I'm trying to compile my DLL. I compiled it 2 times. Between 2 compiling I didn't change anything. How can I get difference DLL ?
|
|
|
|
|
Stanley Caramoy wrote:
Between 2 compiling I didn't change anything. How can I get difference DLL ?
WHAT?? If you didn't change anything, there won't be any differences.
Or, like I said, WHAT? I don't understand what your asking. "Difference DLL"???
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
under build hit clean solution or clean [app_name] then choose rebuld all.
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
how can recreate this splitter effect of line transparent how you can see here:
|
|
|
|
|
Hello ,
I wanted to know how u draw lines on a MDI form in C# to display four quadrants on the screen
|
|
|
|