Comment by Seth Spearman on Moving from Microsoft Access 2007 to Sql Server 2005
Comment by Seth Spearman on Please explain C# syntax to a vb-er
Please explain C# syntax to a vb-er
Hello,
I have the following code snippet:
// Notify the source (the other control).
if (operation != DropOperation.Reorder) {
e = new DroppedEventArgs()
{
Operation = operation == DropOperation.MoveToHere ? DropOperation.MoveFromHere : DropOperation.CopyFromHere,
Source = src,
Target = this,
DroppedItems = srcItems
};
src.OnDropped(e);
}
I do not understand the
Operation = operation == DropOperation.MoveToHere ? DropOperation.MoveFromHere : DropOperation.CopyFromHere line.
Can someone explain it? For the record...dropOperation is an enum. Can you give vb syntactical equivalent is all I need.
Seth
Can someone tell me how to create a “drag target line” in a winforms listbox that shows whether the drop source is being dropped before or after the drop target
Hello,
I have a user control that is hosting a winforms listbox. I am re-sorting items in the list using drag and drop. I realized that I need a drag "target line" that shows whether I am dropping before or after a target.
Any suggestions. I am open to suggestions. I am not wed to the listbox. I can use another winforms control (the lighter the better) and I am also licensed for winforms telerik controls (a couple of version back). RadListBox does not do the data binding to my biz object correctly so I went with winforms version. But maybe another rad control would give me this out of the box.
For the record, my preference is to stick with the winforms listbox if it can work.
If I need to implement this behaviour myself does anyone have code samples or suggestons on how to do it. I would not have a clue on where to start?
Thanks.
Seth B Spearman
Comment by Seth Spearman on How do you reference a field in the Embedded Code of an SSRS report.
Comment by Seth Spearman on Can you reference the textboxes on an ssrs report from embedded code
Can you reference the textboxes on an ssrs report from embedded code
Hello,
Is it possible to reference a textbox from the embedded code of a ssrs report. I would like to show or hide the textbox based on a condition.
Thanks.
Seth
How do you reference a field in the Embedded Code of an SSRS report
Is there a proper way to reference the fields of a ssrs report from the embedded code of an ssrs report?
When I try to use Fields!Program.Value I get the following error --
There is an error on line 3 of custom code: [BC30469]
Reference to a non-shared member requires an object reference.
Upon googling I found you could reference the Parameters of a report by prepending Report. at the beginning. So I tried this Report.Fields.Program.Value. That results in the following error...
There is an error on line 3 of custom code: [BC30456] 'Fields' is not a member of 'Microsoft.ReportingServices.ReportProcessing.ExprHostObjectModel.IReportObjectModelProxyForCustomCode'.
So...in summary, is there a way to reference the fields from the embedded code. I figured out I could pass the field vals to the function itself but I would prefer to reference the fields directly.
Seth
How do you reference a field in the Embedded Code of an SSRS report.
Hello,
Is there a proper way to reference the fields of a ssrs report from the embedded code of an ssrs report?
When I try to use Fields!Program.Value I get the following error --
There is an error on line 3 of custom code: [BC30469]
Reference to a non-shared member requires an object reference.
Upon googling I found you could reference the Parameters of a report by prepending Report. at the beginning. So I tried this Report.Fields.Program.Value. That results in the following error...
There is an error on line 3 of custom code: [BC30456] 'Fields' is not a member of 'Microsoft.ReportingServices.ReportProcessing.ExprHostObjectModel.IReportObjectModelProxyForCustomCode'.
So...in summary, is there a way to reference the fields from the embedded code. I figured out I could pass the field vals to the function itself but I would prefer to reference the fields directly.
Seth