Malleswar's Q&A profile
Visual C# Mathematical question !!
Hello, Can any one sort this complexity from worst to good O(k) O(k n) O(k n2) O(k 2 n ) O(k log n) O(k (log n) 2 ) Thanks a lot That sounds like a homework assignment. :) Rather than just giving you the answer, learn a bit more by reading this: http://en.wikipedia.org/wiki/Big_O_notation (It has the answer in there; you'll just have to read it.) ...Show All
Windows Search Technologies Display and Filter Outlook Journal Entries in Windows Desktop Search
It would be great to show special icons for Outlook Journal entries in Windows Desktop Search. It would be even greater if I could filter on these. Thanks, that's better. As a suggestion for the next version, it would be great if you could add the Journal icon under Communications under the Other drop down menu. Loren Rex ...Show All
Connected Services Framework Why does "anonymous" address present in response messages?
Hello all, I'm currently using CSF v.2.5 and develop own sample application. The goal of this application is compute monthly payments on a loan and total overpayment of credit. The following participants are involved with: UIParticipant - WinForms client BankDirectoryParticipant - Provide information about credits programmes. CalculatorParticipant - Computes annuity and overpayment BusinessLogicParticipant - Session driver Here is the sample manifest: Even the "ReplyTo" tag has the same address <wsa:ReplyTo> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address> </wsa:ReplyTo> ...Show All
Visual Basic Copying Listbox items
I have two list boxes. Listbox1 and Listbox2 Listbox1 is Bound to a datasource and Listbox2 isn't. What I am trying to do is read each item in Listbox1 and Add it to Listbox2. I have tried multiple variances of the following code but can't seem to access the text for the item in the listbox1 items. Can anyone help please Dim intCounter As Integer Dim intTotal As Integer intTotal = ListBox1.Items.Count For intCounter = 0 To intTotal - 1 ListBox2.Items.Add(ListBox1.Items(intCounter).ToString) Next intCounter thanks tattoo That works ...Show All
SQL Server Localization and BUILTIN groups
Is there a synonym for the group BUILTIN\Users which can be used for GRANT ... TO and sp_grantlogin/sp_grantdbaccess, but which will work on localized computers I have a number of automated unit tests I wish to run on two different computers. The process involves recreating a database if it does not exist and then granting access and privileges to the BUILTIN\Users group. The problem is that one computer is installed with a Swedish Windows XP Professional (the users group is called BUILTIN\Anvandare) and the other is an English WinXP MCE (the group is called BUILTIN\Users) so I cannot easily script this. An alternative is to be able to retrieve the respective name through a .NET class or the Windows API. Is any of this possible ...Show All
Visual Studio Express Editions Move to cell in previous row?
I need to write a code to move to a cell in the previous row. I have looked at (offset) , (currentcell) & (currentcelladdress) but i can't quite get the hang of it. This is what i have so far in a button click event: Me.MaintableDataGridView.CurrentCell.Selected = False Me.MaintableDataGridView.Rows(0).Cells(0).Selected = True This works great but i just want to move 1 cell up, not by coordinates. Is there some way to utilize code to mimic the arrow keys (sendkeys, etc...) Any help would be great. Thanks Jeff Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ...Show All
Visual C++ compiling
I know that this is probably a stupid question but I recently received this program from my dad and he cannot find the manual that came with it. I have taken a class on C++ and we used a different compiler. I have typed the following code but have yet to figure out how to compile it where I can see the output in the little pop up window please help. Let me know what to click to build and compile my small programs that I will be typing. #include <iostream> int main() { cout << "hello world\n"; return 0; } Hello Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/M ...Show All
Visual Studio VS2005 Upgrade
Can I ask as I am a bit confused about this: I have VS2003 Professional Edition on my laptop but want to upgrade to VS2005 - because of the cost factor I am thinking of upgrading to the standard edition only. Is there an upgrade path from VS2003 Pro to VS2005 Standard - I assume that the upgrade overwrites the VS2003 installation ( ) or as I have VS2003 Pro must I updgrade to VS2005 Pro Many thanks. Patrick I'm unsure if there is an upgrade feature, as far as I am aware, these are 2 seperate products and do not really interfere with each other since the frameworks are different, so you cannot use .NET 2.0 in VS2003 and you cannot use .NET 1.1 with VS2005. you can however upgrade or transfer p ...Show All
Visual Basic ClickOnce deployment of VB6 exe/.NET COM components
The information about the toolkit claims I can use clickonce deployment for vb6 apps with .NET COM components built with the toolkit. I have found how to deploy a VB6 app with a VB6 COM component but that does not work with the .NET COM component. I checked the toolkit help under How to: Deploy a Hybrid Application and from the information there it does not appear that clickonce can be used. Am I missing something This doesnt make that much sense - a COM component is a COM component whether created using VB6 / VB.NET or anything capable of creating COM Components. Clickonce allows the deployment of applications using COM components. Perhaps you can elaborate on the problems you are having with Click ...Show All
SQL Server help regarding SQL connection
i am developing a web application which requires a DB to store various data fields. Though i am familiar with both web development languages and SQL, I am having difficulty connecting DB to my web pages(jsp). Can any one help with ODBC/JDBC settings required regards sumit dagar What kind of difficulties you are experiencing For an intro how to use JDBC to connect to SQL server see: http://msdn2.microsoft.com/en-us/library/ms378672.aspx ...Show All
Windows Forms Prerequisite not working?
I'm trying to build a setup for my application using a Windows Installer project. I'm using VS2005. My Windows application requires SQL Server 2005 Express, so I marked that as one of the prerequisites. I built the installer successfully and ran it on one computer running XP. It successfully detected that neither .net 2.0 or SQL Server 2005 Express were installed and installed both of them before installing my application. My application ran just fine and life was good. I then took the exact same setup.exe and setup.msi and ran them on another computer - also running XP. It didn't attempt to install either of the prerequisites, and seemed to successfully install my application. As soon as my app was launched though it failed with " ...Show All
SQL Server Dividing reports into pages
I am displaying tabular reports and the report is set to dataset. I want to display only 10 records per page. How do I do this. Thanks, Sai Abhiram Bandhakavi Have you looked in to custom code. Off the top of my head I don't know of another way to determine a page break other than groupings. So you could set a calculated field value based on some function through custom code to increment a number on everything 10th record. The custom code would be a simple add one to a public variable when run... So in the calculated field you could use the IIF(RowNumber(Nothing) mod 10 = 0, <true>, <false>) to fire on every 10th record... or something similar. Check this out. I'll run some tests as time permits. If ...Show All
Visual Basic Reading binary (or any it seems) registry data in VB.NEt
Hi all, I'm wondering how to enumarate a key, one that's binary into a string or other system.type in VB.NET. I created a similar app as an hta with vbscript, and it was a breeze using the GetBinaryValue method. This does not seem so prevelany in .net. The code I have so far is here (be nice, it's my first week doing visual basic!) What I'm doing is searching through the guid keys under the 'base' key and looking for the REG_BINARY keys that have the value '001f6700'; the location of loaded .pst files. Everytime i tried to use the GetValue method it would return the value, not the data, i.e. 001f6700.....argh. Any help is appreciated. Thanks! Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System. ...Show All
Visual Studio Express Editions RTF
HI, I am making a kind of word but i don't know how to save layout styles. I have made a simmiler programm before but he doesn't save the layout of the documentt. And i dont know how to work with XML. Can someone help me See the following samples: http://msdn.microsoft.com/vbasic/downloads/code/101samples/#vsto Working with XML in Word... That should get you pointed in the right direction! ...Show All
Visual Basic VB.NET UserControl used in VB6 application
Hi. I build in VB Net 2005 an usercontrol that contains a toolstrip.On this toolstrip I add in runtime 9 toolstripbuttons.The code in which I add those buttons is: Public Sub AddButtonsOnToolbar(ByVal intNob As Integer) Dim tsButtons(8) As ToolStripButton For i = 0 To 8 tsButtons(i) = New ToolStripButton tsButtons(i).Tag = i tsButtons(i).Image = System.Drawing.Image.FromFile("D:\Work\Controale_Espot\Pictures\01.gif") tsButtons(i).AutoSize = False tsButtons(i).Size = New Size(48, 48) tsButtons(i).ImageScaling = ToolStripItemImageScaling.SizeToFit If i = 0 Then tsButtons(i).Margin = New Padding(80, 5, 0, 2) Else tsButtons(i).Margin = New Padding(10, 5, 0, 2) ...Show All
