aashta's Q&A profile
Visual Basic error again in moving folders
Hi I use this code now: Dim theDirectories() As String = Directory.GetDirectories( "\\server\kursister$\" & combohvem.SelectedItem & u2) For Each currentDir As String In theDirectories My .Computer.FileSystem.MoveDirectory(currentDir, "\\server\vaerksted$\" & combohvem.SelectedItem & u2 & "_" & dato & "\" , True ) Next But if my folder maybe is images and i in this folder have 3 folders 1 - 2 - 3 then the code moving the 1 - 2 - 3 folders and then i get an error, and my images folder remains back why reagrds alvin Hi! I have use this: Private Sub cdmslet_Click( ByVal sender As System.Object, ...Show All
Visual Studio Team System Problem with APPLY operator in stored procedures (RTM VSDBP)
In some stored procedures in our DB we use new SQL2005 APPLY operator. If we try to build such procedures in DataDude we get an error: Error TSD3033: [Procedure] dbo.xx: Because [dbo].xx depends on .... For example i created simple project with only two tables and one procedure. this procedure fails on build: CREATE PROCEDURE [dbo].[testApply] AS BEGIN SELECT * FROM dbo.testTableA CROSS APPLY ( SELECT * FROM [dbo].[testTableB] WHERE dbo.testTableB.column_2 = dbo.testTableA.column_2) tt END testTableA and testTableB are two simple tables with 2 columns (column_1,column_2). When containing project is built we get an error: ------ Build started: Project: Database1, Configuration: Default ...Show All
Smart Device Development Serial Port problems
Hi. Running Imate SP5m with .NET CF 2.0 SP1 I have contacted Imate (on the side: poor support) who confirm that Raw/Serial IR access is possible and is on COM3. In the registry it says COM4. Anyway... If I use the serial Port class to open COM4 and write to it, I have the issue where when we do a serialport.write("hi");, the application does nothing. it just hangs, no exceptions are thrown. It does not even get to serialPort.Close(); If I use the serial Port class to open COM3 and then write to it, I get an exception @ serialPort.Write("hi");: at System.IO.Ports.SerialStream.WinIOError() at System.IO.Ports.SerialStream.Write() at System.IO.Ports.SerialPort.Write() at SerialIrTests.Form1.mnuStart_Click() at System.Windows.F ...Show All
Visual C# Adding an MDI form to a Tab Page
Hello, I have this very complex and annoying problem. I have an entire MDI application (huge) an I have another application (non MDI). My main application consists of tab pages. What I want to do is, I want to transfer the entire MDI application to one of the tab pages. So far, the GUI is transferred, I transffered the code, but I can not make the tab page act like an MDI form. How can i do that Let me explain again just in case you are confused. I need to find a way to make a tab page in a NON MDI form to act like an MDI form. How can I do that Thanks ...Show All
.NET Development Where do I find class properties?
SUMMARY: Where do I find the properties of classes such as IPHostEntry FOLLOWUP: Where do I find a simple description of how to use the class I.E. Set these variables, initialize with these functions, then do this. When I create a Windows project and put a TextBox in the new window, on the right side of my screen I find a properties window. This lists the variables of the TextBox. These variables contains much information that I can utilize when working with a TextBox. With the cursor on a TextBox, pressing F1 brings up the help file with a nice description of the TextBox. It begins with “Windows Forms text boxes are used to …” and proceeds to tell me what they are used for. Then I put the cursor on the phrase IP ...Show All
Visual Studio How to Edit/Update Working Folder / Local Name in VSS 2005
I wanted to change the working folder setting in VSS 2005. I was able to do it in VSS 2003. But I could not find any option of changing in VSS 2005. Let suppose I have project $/QT in source safe database which is mapped to C:\MyProject\QT\123 and now I wanted to map the project to a different local working folder say C:\MyProject\QTNew If any one knows how to do it in VSS 2005 then please let me know. Your help in this respect is highly appreciated. Thanks I was having smilar problem. The Gray button changes to active when you get latest version. Try getting latest version and it will then let you select Working Folder. ...Show All
.NET Development DoEvents not working?
This code doesn't seem to be working right. What I need to do is watch for left and mouse downs, and when both are down at the same time, show a window. This class should do it, but isn't working. The processMessage variable tells the mousehook to send the message to the appropriate window or to consume it. Public Class mouseComboWatcher Private WithEvents mh As WickedOrange.MouseHook Public Event ComboPressed() Public Event ComboReleased() Sub New () Me .mh = New WickedOrange.MouseHook End Sub Private leftMouseDown As Boolean = False Private rightMouseDown As Boolean = False Private comboDown As Boolean = False Private Sub mh_Mouse ...Show All
Software Development for Windows Vista .NET 3.0 and wsFederationHttpBinding changes???
I am working through Security Token Service Samples Walkthrough for September 2005 Community Technology Preview and trying to adapt it to CTP June. What is the new configuration supposed to look like for the following chunk I took from my service sample's web.config <bindings> <wsFederationHttpBinding> <binding name='helloFederatedBinding' > <security mode='Message'> <message> <claims> <clear /> <add claimType='http://schemas.microsoft.com/ws/2005/05/identity/claims/emailaddress' /> </claims> </message> </security> </binding> </wsFederationHttpBinding> </bindings> I get the foll ...Show All
Architecture Installing ADAM(urgent)
Hi, Can anyone tell me if installing ADAM on a machine(win-xp prof, which is part of the network) will it intefere with existing AD on the domain controller According to the whitepaper it says its a user based service and a ADAM is a lightweight version of AD(2003). Need an ans asap. No what i wanted to know is if installing ADAM on XP(a network client) interferes(contacts or merges the AD users with local) with the AD of the domain controller ...Show All
Visual Studio Express Editions Error: Unbound reference in aggregate expression
Trying to configure tableaddapter on a table with a Sum(child.Total) expression i get "Unbound reference in aggregate expression 'system,data,aggregatenode' Anyway I can fix this Cammyr, How is your problem going I found a same question in Google and there is an answer like: I'm not exactly sure what you are asking, but I'm assuming you want to "fix" your dataset so you can edit it again. If so, then yes you can fix it. With Visual Studio 2003 and 2005 projects, almost everything is stored as valid code in whatever language you are using (e.g. VB.Net or C#). So your dataset is nothing more than a collection of .vb or .cs files. If you are using VS2003, then all your dataset ...Show All
Windows Forms DataGridView.. How to..?
Hi, I'm working with MyDataGridView , bound to EmployeeBindingSourc , its contain 3 columns ( Employee Name, Job Title, Company Name ), the last columns is a comboBox colunm, bound to CompanyBindingSource, to show the Company Name intsted of showing the CompanyID . its easy to filter the EmployeeBindingSourc by using Employee Name or Job Title, but I dont know how to filter it by using the DisplayMember in the "Company Name" column in MyDataGridView other question is: I'm using MyDataSet to retrieve a specific row in a RemoteDB by using "WHERE EmployeeID='" + textBox1.text + "'"; then merge it with MainDataSet and return changes to LocalDB. how to check the result if its exist ...Show All
Visual Basic from list of tables to combobox: what the best way of doing it?
Hi, From a lot of help from this foum and the Net, I have managed to get a list of tables from my access database with these line of codes: Dim vrn As String () = New String () { Nothing , Nothing , Nothing , "TABLE" } Dim schemaTable As DataTable = objConnection.GetSchema( "Tables" , vrn) DataGridView1.DataSource = schemaTable Using GetSchemOledb also worked fine but I think GetSchema needs much less typing . Since GetSchema returns a DataTable, is it possible to put the list of tables in a combobox if this is possible can somebody reccomend the best way to do it I think it involves getting the names from the TABLE_NAME column which have TABLE as property in the TABLE_TYPE column. Any hint/ ...Show All
Visual FoxPro Arrange the "character string" numbers in order
I use the character string for number input. What Syntax should I use to sort out the “character-string” numbers as below For example: To sort out according to the number 1 1 12A 3 3 4 4 5 443546 12A 5 443546 555AB 555AB Thank you. If your strings are like you showed then you could sort using val(). ie: select myString, val(myString) from myTable order by 2 PS: I didn't actually understand your logic of sort (human wise how do you sort it like that What ...Show All
SQL Server Relationship between t-Sql and "Set Theory"
I have always heard that much of t-sql is based on "set theory". I had Set theory in high school and I remember it as being simple Unions, Intersections, Differences of Sets. By a Set I mean a collection such as {2,5,7,8,9, ...) That could well described a single row in a table. By unioning several of these rows we could end up with a table. But how does that relate to t-sql such as select * from <table name> Where <condition 1> Is it simply that the result returned by the query is a Set (if so, a Set is simply being used as a synonym for a Collection. No set theory involved.) TIA, barkingdog This is quite a large subject =;o) Perhaps the best way is ...Show All
SQL Server Request for feedback - Aliases have been deprecated for some time and will be removed soon
As documented in SQL Server BOL, aliases have been deprecated for some time and we are planning to remove them from the product in the next release. We will greatly appreciate any feedback or comments regarding this change. We would like to know how our customers will be affected by this change and analyze if there is anything we can do to help you to make the transition easier. Thanks a lot, -Raul Garcia SDE/T SQL Server Engine Removing entirely from the SQL server may not be an option, will there be any documentation or MS article released to enable the new users to understand the 'new' concept in addition to BOL . ...Show All
