JohnGrabau's Q&A profile
Visual Studio Express Editions background worker arguments
Hello all, I feel as if the answer to this one will be an "oh, why didn't i think of that" . Here goes anyways: I am trying to run a background worker and I need many variables passed to it as opposed to the one that it seems to normally be able to accept. In C i could just use a structure and pass that object, is there an equivalent in VB I tried passing in more than one variable, the methods are not prepared to accept more than one. Thanks, and try not to make me feel too stupid Sorry, in VB: Dim myInt As Integer = 42 Dim myString As String = "text" Me . backgroundWorker . RunWorkerAsync ( New Object () { myInt , myString }) and ...Show All
Visual Studio Express Editions Linked Lists in C (Not C++) - A beginner question
Hello. I want to write a function that gets a pointer (e.g. *Head) to linked list. It frees every item in it and return NULL (as a new value of Head). I think the easiest way would be a recursive function. I wrote this one: void FreeNymList (NymWord * Head) { if (Head->Next) { FreeNymList (Head->Next); } free (Head); } But I couldn't figure out how to make it in a way it will return NULL. Thanks. This is usually done by sending the address of the pointer to head of the list (pointer to pointer): void FreeNymList(NymWord **HeadAddress) { NymWord *Head = *HeadAddress; if (Head == NULL) // the list is empty return; if (Head->Next != NULL) FreeNymList(& ...Show All
Visual Studio Team System How to recreate the TFSWarehouse Database ?
Hello Folks, is there a way to manually recreate the TFSWarehouse Database in SQL Server (not the Warehouse- Cube) A the strange problem: We have a custom Field in Work Item Types. We have changed this Field to be reportable. When the TFSWarehouse gets processed from TFSScheduler, only changed and new WorkItems are processed and get updated in the Database. For existing workitems the value for our custom field still remains null in the TFSWarehouse. How can I force a complete update of all workitems with my custom field values to get into the TFSWarehouse Database Hope you can help, greets, Helmut Hello Nick, thank you for your answer. We have now another problem with the TFSWarehouse updat ...Show All
Windows Forms ListBox.DisplayMember Formatting?
I'm used to applying formatting to buttons, textboxes, and labels, but seen to be having problems when trying to format an item to be displayed in a listbox. myTable.SameColumn contains a string. I would like it to remain unformatted for the ValueMember, but would like to apply some formatting for the DisplayMember. Could someone point out what I am doing wrong ListBox.DataSource = myListBoxBindingSource ListBox.DisplayMember = myDS.myTable.SameColumn.ColumnName.ToString ListBox.ValueMember = myDS.myTable.SameColumn.ColumnName.ToString Dim ListBoxBinding As New Binding( "SelectedItem" , myListBoxBindingSource, myDS.myTable.SameColumn.ToString, True) AddHandler ListBoxBinding.Format, AddressOf Display_F ...Show All
.NET Development Microsoft.XMLHTTP failing to uncompress a file
Hi, I'm attempting to use the XMLHTTP object to fetch a compressed file then load it into an XML object. On a client PC the file is always remaining uncompressed and hence failing to do the load. Anyone ever seen this before He is my code: var messageFile = new ActiveXObject("Microsoft.XMLDOM"); messageFile.async = false; messageFile.preserveWhiteSpace = true; var httpRequest = new ActiveXObject("Microsoft.XMLHTTP"); httpRequest.open('GET', server.value + '/logonMsgFile.zhtml', false); httpRequest.send(''); messageFile.load(httpRequest.responseBody); if (messageFile.documentElement == null) alert('failed to load message file'); Thanks, Mike ...Show All
Visual Basic What To Install From VB Installation CD To Let Users Run My Application And Not Enter VB
The best way for me to do what I want to do is install on all PCs (using VB installation CD) the minimal requirements to run my application which uses VB 2005, ADO.NET to read/write to an Access database, and Crystal Reports. I ask you what, specifically, should I install on all these PCs from the VB 2005 installation CD After that the next thing I will do is I give each PC user a shortcut file (having a nice icon that says database on it) which runs the exact same executable on a shared drive. My application already has the capability to tell users if someone is already actually using the database via a warning message. The hope is that only one person will use the database at a time. There aren't many users so this sho ...Show All
SQL Server Role Playing dimensions current member
Hi, Is it possible to set the currentmember of a role playing dimension based on the current selected member of the another role playing dimension. For e.g. if there are role playing dims like Ship Date, Purchase Date, Order date all based on the Time dimension For a cube Calculation that is based only on Ship date, to avoid users having to select the correct dimension for each metric, can we have Ship date's current member getting set based on the current member of Order date. So the user always sees only the Order Date time dim, but based on the date selected, the same date is set for the Ship Date dim,and Order date is rolled back to All Time and calculations are done and results returned. Regards That could hap ...Show All
Visual Basic Just trying to understand?
Below is the code that I got from MSDN help files it shows Encryption/Decryption, I want to use it in my program but first I thought I would try to understand it on it's own, so I have a form with two text boxes and a button, when the button is pressed text appears in the text boxes. What I want is a 3rd textbox that shows me the encrypted data, what variable do I use to show this THE EXAMPLE CODE Imports System Imports System.IO Imports System.Security.Cryptography Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try Dim original As String = "Here is some data to encrypt!" ' Create a new instance of the RijndaelManaged ...Show All
Visual C# In win32 program we use window DDK to develp a driver .sys ,I want to what is the counterpart in the class of .NET Framework?
In win32 program we use window DDK to develp a driver .sys ,I want to what is the counterpart in the class of .NET Framework Has the net framework all the functionality of Platform SDK and DDK i appreciate your help. No. You're in luck, it appears to be available again as a free download . ...Show All
.NET Development Microsoft SQL and MySQL servers
Hello, I have an application which connects to a Microsoft SQL Server 2005 database. After a recent company merger 2 MySQL Servers were acquired. The company has no plans to upgrade the MySQL Servers to Microsoft SQL Servers any time soon. I have been instructed to make changes to my application to make it work with both Microsoft SQL 2005 and MySQL (MySQL will be used for backup in the event of a primary server failure). My application uses a normal connection string and uses normal INSERT UPDATE DELETE commands with Parameters being used to mitigate injection attacks. There are no stored procedures used at all. Will I need to make any changes and if so, what sort of changes will I need to make. I have never programmed for a MySQL Ser ...Show All
.NET Development QUERY written in MS Access does not work with adodb
Hi, I am trying to create a web page that outputs a list of data from a join on 2 tables. The Tables: PANEL - A list of possible panel numbers PANELID - Primary key, EVENTS - List of events that occur EVENTID - Unique autonumber for each event PANELID - posted from PANEL table EVENTCODE - what type of event it is ADATE - Date and Time the event was posted. What I am trying to achieve: I need to create a list of ALL panel IDs, regardless of whether they have any entries in the EVENTS table, but when they do, to display the max(ADATE) and event code - i.e. the last known date. If there are no events, the fields for ADATE and EVENTID should be blank. What I have: I am using the following query: [CODE]SELECT DIS ...Show All
Visual Basic Looping
How do I setup a for next loop array to open files if I don`t know how many files are in the folder Hi, you could read all the filenames from specified folder using My.Computer.FileSystem.GetFiles() method, like in the following code: Dim folder As String = "c:\" Dim pattern As String = "*.*" For Each file As String In My .Computer.FileSystem.GetFiles(folder, FileIO.SearchOption.SearchTopLevelOnly, pattern) MessageBox.Show(file) Next You can also set the pattern to return only those files that match your criteria. Andrej ...Show All
Visual Studio Team System can you create an alias for a field?
hi everyone im just wondering since you cant edit a field name or delete it, is there a way to create an alias for a field i am currently drawing a blank of the field name i want to change(at home right now), but i want to change it to resolved in build. Is this possible Thanks Do you need it because you want to show a different label in UI form for field If so, you can enter different label name in workitemtype definition under Form section for a control. You can give a localized field name and a reference name for a field and other than that there is no other alias functionality. If this doesn't solve your needs, let us know why you need that alias function. Thanks ...Show All
Windows Forms DateTimePicker focus
Why is it that when the valuechanged event of the datetimepicker is triggered, its focused is not set to true unlike the other controls like combo boxes etc. I need to check this for i only want to check the values only when user is clicking on the selected date time.thanks Regards Alu I'm getting Focused = true when I change the date in the control itself but false when I use the calendar dropdown. Makes sense, it is a separate window. As a workaround, consider setting a boolean form member to True when you change the date in your code. Then check this member in the ValueChanged event. If it is set to true, you know your code caused the event. When set to false, it can only be the user that changed the value. ...Show All
Visual Studio Team System Team Foundation Server & Web Project
Hello ~. I've installed Visual Studion 2005 and Visual Studio Team Foundation server. After I installed VSTFS , I cannot build any web Project using VS 2005. Help me~ ...Show All
