Tweets made on 2009-07-27
- Read this mockup of Bill Gates facebook page. http://tinyurl.com/cxp83y #
- Answering a question on #stackoverflow. http://tinyurl.com/mkl3dm #
Powered by Twitter Tools.
Powered by Twitter Tools.
Powered by Twitter Tools.
I am new to creating SQL SRS (SSRS) reports in visual studio. I am impressed so far but I cannot find out how to set the Page Orientation in my new report from Portrait to Landscape.
I would think this would be in the Report/Report Properties settings but it is not there?
How do I change the Page Orientation from Portrait to Landscape for my new SRS report?
Seth
I have created a class that is simply THIS
Class UserControlBase
Inherits UserControl
End Class
Then I changed the Inherits clause in each of my UserControls designer file to
Inherits UserControlBase
I know that generally you shouldn't manually mod the designer file. But in cases like this what else can you do? Is this OK? Is there a best practice I don't know about? Is there some other way to accomplish the same end (extending UserControl) ?
Powered by Twitter Tools.
I admit…I am posting this question because I still don’t have an answer to my other question and thought I would take a different tact.
Can someone explain to me WHERE the values for intellisense and namespace/class/member completion works. I figured if I can drill into where/how it is deriving that data I can try to reconfigure my project so that it will resolve my namespaces correctly.
Seth
Hello,
Please read THIS post. I have the same problem as described in this post but I am trying to do in in VB.net rather than c#.
I am pretty sure to do this I have to use a custom event. (I used a code conversion site to get to learn about custom events.) So in the IDE when I type the following:
Public Custom Event AddRemoveAttendees As EventHandler
It expands to the following code snippet.
Public Custom Event AddRemoveAttendees As EventHandler
AddHandler(ByVal value As EventHandler)
End AddHandler
RemoveHandler(ByVal value As EventHandler)
End RemoveHandler
RaiseEvent(ByVal sender As Object, ByVal e As System.EventArgs)
End RaiseEvent
End Event
But I can’t figure out what to do with it. Until today I had never heard of custom events.
The bottom line of what I want is to have the click event of a button bubble up to the container of the user control. I know that I could wrap my own event but I would at least like to understand custom events before I go farther down that road.
Seth
Hello,
I posted this question and still have not gotten an answer so I thought I would link to the following video file of the problem…sorry I tried to upload the video to videos.yahoo.com but the downgraded video is unviewable. So here is a direct link to the avi file hosted on my website.
SUMMARY OF THE PROBLEM
I have a controls project…GoodMins.MeetingMgr.Winforms.Controls.
It has a project reference to GoodMins.MeetingMgr.BizObjects.
In ANY code file of GoodMins.MeetingMgr.Winforms.Control I can
*Add an Imports to GoodMins.MeetingMgr.BizObjects and intellisense browses the namespace path successfully.
*IN THE SAME file Inside the CLASS Declaration I can no longer browse successfully the GoodMins.MeetingMgr.BizObjects namespace.
*But I CAN browse MeetingMgr.BizObjects (which should be an invalid namespace). It does not find thee root GoodMins namespace.
The problem is that when I make a change to the file in the designer…visual studio re-generates the code behind in the designer file and uses the correct namespace. But compile errors occur because Visual Studio does not recognize that namespace.
HELP… I have spent about 3 hours on this tonight to no avail.
THE OLD QUESTION WITH MORE DETAILS.
THE PROBLEM
I have just noticed something strange in my project which is causing some compile time issues. If you want to get to the bottom line question read the bold text at the bottom of the question. Read it all for all of the behavior details.
I have controls project and in that project I am referencing another bizobjects project.
I use the data source view of my control project to create objects to drop onto the controls and it creates the AttendeesBindingSource. And all of that works fine.
At compile time though I am getting an error in the DESIGNER file of the control:
Me.AttendessBindingSource.DataSource = GetType(GoodMins.MeetingMgr.BizObjects.Attendees)
This has the little squiggley line under GoodMins.MeetingMgr.BizObjects.Attendees with the warning “Type ‘GoodMins.MeetingMgr.BizObjects.Attendees’ is not defined”
A LITTLE MORE INFORMATION
I have figured out how to solve the error.
I simply remove GoodMins. from the reference. In other words…to VS I can change the above line from
Me.AttendessBindingSource.DataSource = GetType(GoodMins.MeetingMgr.BizObjects.Attendees)
to
Me.AttendessBindingSource.DataSource = GetType(MeetingMgr.BizObjects.Attendees)
and I can compile. When I make a little change to the control reverts the code and I can’t compile again.
FYI the Data Source View window Is showing the full namespace of GoodMins.MeetingMgr.BizObjects as the parent I am trying to add
FYI If I try to add an Imports statement (This is a vb.net project) Intellisense will not find the project GoodMins.MeetingMgr.BizObjects. But it WILL find the project MeetingMgr.BizObjects.
FYI the Object Browser, when in “View Namespaces” mode, shows the GoodMins.MeetingMgr.BizObjects namespace and does NOT show the MeetingMgr.BizObjects namespace.
One last piece of information. The way I did namespacing in the BizObject project is by removing the namespace declaration from the project properties and putting an explicit namespace declaration around each class file as “Namespace GoodMins.MeetingMgr.BizObjects” … “End Namespace” I regret doing that and I may change it someday but for now I am stuck with it.
So here is the bottom line to my question…Why do all of the tools built into visual studio want to use the full namespace of GoodMins.MeetingMrg.BizObjects but intellisense in the code window does not recognize the full namespace but will recognize a truncated namespace of MeetingMgr.BizObjects.
I have looked everywhere I know to look and can’t figure this one out.
Seth