boston_sql92's Q&A profile
SQL Server Dropdown won't show values if only one item is available
I have a report that has 2 dropdowns, selecting from the first dropdown populates the second one. This works fine in the BI Studio. When I deploy this report to the 'Report Manager' and make a selection from the first dropdown, the second dropdown loads (as expected). I tried to select from the second dropdown (which has only 1 item - which is correct), the dropdown does not appear correctly - as in, I can't see that item. Since we can't attach anything here, below is the link to a screenshot of my issue: http://docs.google.com/View docid=ddd6j2xn_52c5qd5 If you look closely at the screenshot from the link above, you'll see that there is a value in the second dropdown - it just won't show completely - as if the dropdown is not re ...Show All
Visual Basic Debugger problem "The breakpoint will not currently be hit. No symbols have been loaded for this document
There was a similar question posed on the C++ forum back in February to which I responded yesterday, but unfortunately, did not get a response. I am therefore putting this question in the VB forum. I have a VB 2005 project which is actually an add-in to Outlook 2003, which was I was able to debug fine until earlier this week. Now I cannot debug it at all - the message in the subject is displayed when I hover the mouse over the breakpoint which shows a yellow icon in place. Can anyone here tell me what I should do to correct this I had the same problem. I fixed it for a moment by changing the project's "Generate Debug Info" option from "None" to "PDB Only. " To get there, right click the project ...Show All
Visual Studio DomainClass [X] is not abstract, and is neither a root of the model nor embedded within it.
What I want to represent: 1: An argument can be any integer 1 2 3 2: An argument can be any string "Foo" "Bar" "Hello world" 3: An argument can be function call with no arguments SomeFunction() OtherFunction() 4: A function call can have any number of integer arguments SomeFunction(1) SomeFunction(1,2) SomeFunction(1,2,3) 5: A function call can have any number of string arguments SomeFunction("Foo") SomeFunction("Foo", "Foo") SomeFunction("Foo", "Bar", "Hello Word") 6: A function call can have any number of function calls as arguments SomeFunction(OtherFunction()) SomeFunction(SomeFunction(), OtherFunction()) 7: A function should be able to combine a ...Show All
Visual C# Approach for creating class method
I am in the middle of a big dilemma. In my app, we have tons of methods for selecting information based on different filters, an in many cases bringing different fields/attributes as well. I thought of naming the methods based on the filter names (e.g. SelectEmployeeOnName (name) would bring all employees that have that name), other option would be to overload a lot of methods, but then this might not work in the cases where I had n methods with the same filter structure, differing only in the returned structure (the object). Any idea on this boban.s wrote: Some method are of course in Customer class like a method that returns all orders or transactions for current customer instance. You should never put Data A ...Show All
Windows Forms Windows Form Designer and the 'Do not modify... warning
I'm not sure how--but I've managed to add some controls such as buttons, combo boxes, and others to my project in VB Express that are not visible. I don't mean hidden like control.hidden = true but hidden on the form. I think they are hidden behind other controls that I have on my form. I can see the drop down events of these hidden controls which have no code associated with them. When I view the code in the partial class generated by the Windows Forms Designer I can see the referece to them like: Me .MaskedTextBox2 = New System.Windows.Forms.MaskedTextBox Me .ListBox1 = New System.Windows.Forms.ListBox Me .MaskedTextBox1 = New System.Windows.Forms.MaskedTextBox Me .ComboBox2 = New System.Windows.Forms.ComboBox ...Show All
.NET Development Why Tables.Rows.Count is 0 even though rows are displayed in DataGrid
1. I have a webforms application. 2. I am checking the number of rows is higher than 0 if (DataSet1.Tables(0).Rows.Count() > 0) 3. The value is always 0 even though I have retrieved rows from this DataTable into my DataGrid. Any Ideas Please help.. This occurs in Web-Forms Applications. I thought you only have to fill in the DataSet once. And then be able to use the data contained in it on any future call. But the data is reset when a Post Back occurs. So I am filling up the dataset again in the Page_Load(). Making sure it is not within a "If Not (Page.IsPostBack)" statement. If anybody knows of a better method(where I would only call the DB once) please let me know. ...Show All
Visual Studio Express Editions printscreening program
Hey, I'm working on a simple remote control program. But now I stuck on the printscreen thing. My id was that you can see what the other is doing by taking screenshots and sending them to the host. (as compressed as possible) Now, my question is: "how do I make a printscreen program" And then you can use the GZipStream or DeflateStream class to turn it into small packets across the Internet. Of course, you're re-inventing the wheel. This open source project might jump-start your project... ...Show All
Visual C# retreiving text entered into a combobox
hi, i feel this is a silly question but i havent managed to answer it. i have a combobox with a number of items in the list. i want the user to enter text into the editable portion of the combobox and add that text to the list. my problem is getting the user entered text. i'm sure there must be a property or event to do this but i haven't found it so far. any help appreciated thanks ...Show All
Audio and Video Development Event following animation?
How would I go about causing an event to occur but only after an animation has completed <cue select="id('MainMenu')" begin="id('MainMenu')[style:visibility()='visible']" dur="1s"> <animate additive="sum" style:y="90px;0px"/> <event name="HideMainMenu" /> </cue> Would it potentially be easier to move the menu off the screen, and just disabled it as part of the navigation If so, how is that done. Thanks for the help in advance. Events that fire when an animation ends would be very nice :-) Unfortunately they are not in the spec though. Probably the easiest way to do this is with a seq animation, although the & ...Show All
Visual Studio Trusted Assembly referenace Problem
So, i have this web project tempalte, that has an extension which will hopefully run and execute some code. however, when i go to create the new site, select my template, i get the error... Error: This template attempted to load an untrusted component 'xxxxxxx, version=xxxxx, cutlrue=netirau, plublickeytoekectn=xxx.........' The assembly xxxxxx is signed and in the GAC, so I am not sure what else to do... Bacially, in that assembly in the gac, i have one class which inherits Iwizard...and has a little bit of code, that i want to execute public class ProjectTemplate : IWizard .... public void ProjectFinishedGenerating(EnvDTE. Project project) { ProjectItem domainSkinFolder; Property prop; do ...Show All
Visual Basic Process not completing
I have a vb form that runs a command line executable that creates a diff file from two existing files. When I run the program from the command line it creates a 419Mb diff file. When I run it as a process from my VB program it gets to ~400 Mb and stops. If I kill the VB program the command line executable continues to run and finishes the diff file. So I have 2 questions. Why does the process stop before for it finishes when I run it inside vb Why does the program continue to run when I kill the VB app. Here is my code Private Sub xdelta( ByVal strFile1, ByVal strFile2, ByVal strDelta) Dim strError As String Dim p As New Process Dim info As New ProcessStartInfo info.UseShellExecute = False ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 2d map
Hey, I have been using c# for a couple years now and im interested in doing some game programming. I am just looking for some advice on 2d graphics. I would like to know how I would create a 2d terrain using a tileset, and how to import it into XNA. look here.. http://www.xnaresources.com/pages.asp pageid=8 ...Show All
SQL Server insert or update statement depending on existance
hi, i have a table bill defined as follows:(relevant fields) billidall billid reference pono amountFC type example 123 1 r3 ca1 100 amount 123 2 r3 ca1 10 vat 123 3 r3 ca1 20 duty 995 4 rc1 ca2 500 duty 521 5 ref1 ca2 400 amount now i have a table in my program having values.: 123 31 r3 ca1 990 amount 123 22 r3 ca1 99 vat 123 34 r3 ca1 20 duty 995 45 rc1 ca2 500 duty 111 66 re4 ca2 642 amount notice that billid is my pk. i need a way to mayb ...Show All
Visual Studio Express Editions How to Make My Program Proform a task when a key on the keyboard is pressed
tThe title sums it up really, I want to be able to choose a key on the keyboard and make my program do a function when its pressed. Once you get to that article then you can jump to the keydown event here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclasskeydowntopic.asp WHich explains how to check for : Event Data The event handler receives an argument of type KeyEventArgs containing data related to this event. The following KeyEventArgs properties provide information specific to this event. Property Description Alt Gets a value indicating whether the ALT key was pressed. Control Gets a value indicating whether the CTRL ...Show All
Windows Forms Results from a worker thread into main thread?
I have a C# dll which provides an event of SqlDependency Notification messages to clients via a delegate. The event fires ok and I get the expected data. The problem lies when I try to get the resulting dataset into a DataGridView without having to implement a manual refresh via button click. I'd like for this to automatically update upon change. I'm thinking the reason is because the data is coming from a worker thread within the SqlDependency class and I have to create some means of marshalling it into the main (gui) thread. Below is my first whack at the event handler but for some reason it does not work. That is I still have to mash a refresh button. Can anyone offer a suggestion void ExcepNotification_NewExceptionNotification(Data ...Show All
