incendy's Q&A profile
Visual Basic show dialog form
Hi, I have a event click from a menu item that opens a dialog form. ***************** Code from main form that open a new form ******************* Private Sub MenuItem_GereFicheiros_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem_GereFicheiros.Click Dim frm As New frm_configFile frm.ShowDialog( Me ) frm.Dispose() End Sub My problem is when, in dialog form, I click button to save data and when goes "END SUB", close the form. Why this happens ********************** Code from dialog form, after finish the Sub code, my form close and I don't know why ***************** Private Sub btn_desactivarFicheiro_Click( ByVal sender As System ...Show All
SQL Server How to define a Left Outer Join in report using ReportModel as DataSource
Dear ppl, I got a Report Model Project, in which i have created a model of my Database and deployed it on the server... Then I have a Report Server project for my reports. The reports are using Report Model as the DataSource... Now in the Report Designer, inside a report, when I define query for Dataset using Report Model , I can't find a way to write a left Outer Join query... It always performs Inner Joins... was wondering ether Report model supports Outer Joins ... I might achive this using two different datasets but then i'll end up using two data regions e.g. 2 tables, but i don't want to do that... instead I want all of my data to appear in a single table which can reference to single dataset. Is there a way to define ...Show All
Visual Studio Team System Merge between two folders except of isolated files
Hi, I'm trying to merge between two folders except of isolated files. Merge by changeset is not an option. What is the best way to do it Thanks in advance, Shmulik. Is there a branch relationship between these folders If so, the easiest way will be to use a label. Create a label on the source folder, then remove the files you don't want to merge from the label, then run Merge with that label as the versionspec. If not, and you don't want one, you probably should use the TreeDiff powertoy or a 3rd-party 2-way merge tool instead of the TFS merge command. ...Show All
SQL Server Error: Subreport could not be shown.
I work for a Microsoft Gold Partner and I am having a problem with subreports in SSRS 2005 SP1. Essentially, I have a report that contains subreports. The main report has a table that passes a parameter to a subreport in each row. The report renders properly when I preview it in Visual Studio, but once deployed to the server it only renders the first subreport for the first row, and every subreport thereafter displays the error, "Error: Subreport could not be shown." I tested each subreport individually on the SSRS sever and each executes and displays fine. I turned on traces in the web.config file and found some additional information: Hi Robert, No. The report and its subreport where both created in Visual ...Show All
Windows Forms Manual restore - weird rendering?
I've figured out how to manually minimize and restore a window, but the way I've discovered is giving me some weird rendering issues. this .WindowState = FormWindowState .Normal ; This code is executed when I double click my system tray icon. From a minimized state, the window restores back to normal - but not like usual. Half of the controls just appear before the restore animation (like ListView controls), and then the rest of the controls (Button, Label, etc) are restored after the restore animation. I'm either looking to: Remove the window animation when I intend to restore. or Solve the weird rendering problem, and have it restore as if I clicked the button in the Windows taskbar. So far, as alternat ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Skinning in BasicEffect
The ModelMesh is loaded with verts of the correct format, so if our file uses blend weights then it has the blend indices and weights. How are these blend weights being used in the BasicEffect Is the shader using a Matrix Palette or is it ignoring the skin info Changing the transforms on the models bones seems to do nothing, which leads me to believe it is doing the latter. Also, if we are using our own matrix palette shader and want our ModelMeshParts to be grouped by the number of blend weights per face, how can we use your Model class The ModelMeshPart collection is immutable :( Thanks, but how do I make my ModelMeshParts such that they are grouped by number of blend weights per face I wa ...Show All
SQL Server Should I use indexes?
I have a very large table (about 200,000 records), but there are only 2 fields in the table only one populated with data. I need to update the 2nd field with the first field's data. UPDATE Table1 SET field2 = field1 This is taking a really long time to run about 3.5 minutes. Is this normal Can I create an index What can I do to shorten the run time Thanks, Ninel I'd assume that the update would be faster if the index had a low fillfactor... but so as not to merely speculate, I tested on my end... Turns out, with a clustered index in place, the update is quite a bit faster. Lower fillfactors are indeed slightly faster, but not much.  ...Show All
Visual Studio Express Editions How to make my browser accept links.
How can I make my (self-made) browser accept links. I want that every time I click a link or a url from any sources (i.e. email, documents, saved webpage) the file will open to my browser. I use the file association and checked that every time I open html pages from my local machine, the browser will launch but the problem is that the browser didn't open the page. The application just open without doing anything. Hope somebody can help me on this. :-) Ichi ...Show All
Visual Basic Class Question
I am tryin to create a login in Form when a user enters his name in a textbox it shows a message box saying that this name is in the database....I am not sure how i should access the property that is assigned to the SqlDataReader.GetValue(2).toString() here is my class Imports System Imports System.Data.SqlClient Public Class DataForm Private fname As String Private lname As String Public Property d_fname() As String Get Return fname End Get Set ( ByVal value As String ) fname = value End Set End Property Public Property d_lname() As String Get Return lname End Get Set ( ByVal value As String ) lname = value ...Show All
Visual Studio Team System Sharing issue in VSTS Source control
Hello guys, I'm trying to migrate our VSS database to VSTS Source Control and I don't really understend how can I make "sharing" happen at VSTS For example we have next VSS source tree: $root |-DummyProject |-Includes |-ProjectA |-ProjectB Both of them have shared files from <Include>. My question is: What is an alternative for us in VSTS in terms of do not re-organize our current code Thanks a lot guys. I have different qusetion about TFS SCC. How can I map two different projects to one local folder Example: $-| |_Project_1 |_Project_2 Map to C:\Common Project Thanks, ...Show All
Visual Basic Suggestions for new futures for future versions of the Visual Basic language
I've collected several (in fact more then 30) futures of the Visual Basic language some of which IMHO may be useful and may become part of the Visual Basic language in it's future release. I'm not sure if VB9 is not already completed, but VB10 surely is not. The magic number 10 calls for some very very nice futures :-). I'm not sure if this is right place for posting things like this, but I have not found better. Unfortunately the article is as large that my browser freezes when trying to post it here directly pasted from MS Word. So the article can be located here: http://dzonny.no-ip.info/misc/Visual%20Basic%208%20Improvements.htm as html or here: http://dzonny.no-ip.info/misc/Visual%20Basic%208%20Improvements.doc as doc. I hope that ...Show All
Visual Studio 2008 (Pre-release) TreeViewItem width to fit control & transformation
Hi! 1)Is there any way to set TreeViewItem width in such way that they fit eaxactly all free space in the TreeView. (smth like items in listbox) I cannot manually set it in code because treeview width is defined automatically. 2) How can i apply transformations only to the treeview item and not to its child elemwnts (All effects are applied at node expansion, i tried to set RenderTransform of child elements to null but it didn't help) Or maybe i can perform all transformations before node is expanded but just after + button is clicked but i didn't find necessery event Thank you i do RotateTransform and ScaleTransform on TreeviewItem. P.S. Please dont be angry. But that stuff with width of tvi doesn't work ...Show All
Visual Studio Express Editions Multithreading and and "encroachments"
Hi, I'm developing on a new vb.net-application with the Visual Basic Express Edition . Now I have to use a backgroundworker for a longer process. But I'd like to keep the user up-to-date, what the application is currently doing. So the Backgroundworker has to change some labels in the main Form. Now the Question is: How to get the backgroundworker changing the label in another thread I know, that I have to use invoke and delegate , but I don't know, how. Can someone explain this to me Thanks, Greetings from Germany and Regards, Fabian If that walkthough did not provide enough direction...please take alook at my solution in this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=839421&SiteID=1 There i ...Show All
SharePoint Products and Technologies Issues With Delay Activity
Has anybody had any success using the Delay activity within Visual Studio authored workflows Whenever I include a Delay activity in my workflows the workflow goes to sleep and never wakes up. If I listen for a Delay activity along with other events inside a Listen activity, I find that the other events (for example, OnTaskChanged) cause the workflow to be rehydrated as expected but the Delay activity does not. It doesn't seem to make any difference what the TimeoutDuration is set to or whether it's set statically in the designer or dynamically inside an InitiializeTimeoutDuration method. Does anyone have some sample code with Delay activities working correctly Sergiy, Just out of curiosity, do you ha ...Show All
Windows Forms Hide label in windows form - vb 2005
How do I set the visibility of a label on a windows form They don't appear in the list of form controls from intellisence, or are they available in the drop down list of class names in the ide code window. I would like to set visibility based on other events such as a button click, but haven't found a good way yet. Thanks in advance! Yes thank you, I know that...and now have discovered the problem (I think): I have been dragging controls onto the form from a datasource in the datasource window; which apparently links the lable to the dropped control. That is; if I drag a textbox control from the datasource window associated with a dataset field, it also includes a label control with it. These 2 controls are apparently ...Show All
