pure159112's Q&A profile
Visual Basic NumericUpDown control with datagridview in vb.net 2.0
Hi 2 all. How to add an NumericUpDown control to the DataGridViewControl in vb.net 2.0. Plz send me a solution. Thanx in advance. Example taken from: http://msdn2.microsoft.com/en-us/library/7tas5c80.aspx Modified to change CalendarControl to NumericUpDown. p.MsoNormal, li.MsoNormal, div.MsoNormal {margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;font-size:11.0pt;font-family:'Calibri","sans-serif';} p.MsoIntenseQuote, li.MsoIntenseQuote, div.MsoIntenseQuote {margin-top:10.0pt;margin-right:.65in;margin-bottom:14.0pt;margin-left:.65in;line-height:115%;border:none;padding:0in;font-size:11.0pt;font-family:'Calibri","sans-serif';color:#4F ...Show All
.NET Development Unable to update DataView
Hi, I am unable to upadate a dataview. It is behaving differently each time. I have created a dataview from a dataTable. Now after filtering the rows, I want to update the dataview for filtered rows. But it is not working, It is updating only odd rows.. for eg: row 1, 3 ,5 are updated.. not rows 2,4... Below is the code DataView memDv = new DataView(members.dt); memDv.RowFilter = String.Format("Association LIKE '*[[]{0}[]]*'", displayUser.Id); for(int i=0;i<memDv.Count;i++) { Member assocMember = new Member(memDv ); if(assocMember != null) { string newAssoc = string.Empty; for (int j=0; j<assocMember.AssocArr.Count;j++) { MemberAssociation ma = (MemberAssociation) ass ...Show All
SQL Server Dividing a Column
I have a column that contains the persons Full name. I would like to split it so that it contains the persons First Name and Surname. Can i do this from a select command. Hope you can help e.g. Full Name -------------- Dave Smith Want to acheive First Name Surname Dave Smith I had consider that you must have atleast one space between the FirstName & the SurName. Try this( this is just to teach you how can we pich the string within string) Ex: select 'Dave Smith' ,left('Dave Smith',CHARINDEX (' ' ,'Dave Smith')) as FirstName, right('Dave Smith',CHARINDEX (' ' ,'Dave Smith')) as SurName NOTE: if you dont have space this will not work. Gurpreet S. Gill ...Show All
Commerce Server How we can integrate Commerce Server with BizTalk Server through adapters?
How we can integrate Commerce Server with BizTalk Server through adapters Rakesh, The easiest place to begin learning this sort of thing is on MSDN. I'll give you the link to the section on working with Commerce Server's BizTalk adapters: http://msdn2.microsoft.com/en-us/library/ms962756.aspx This should give you a concise architectural overview and walk you through some basic implementations. If you have more specific questions regarding something that you don't feel is adequately addressed in the aforementioned documentation, please feel free to post on the community again for additional clarification. ...Show All
Visual Studio Express Editions Webbrowser Title Help needed
Hey i've been working hard on my browser lately and i've been testing it aswell as some other people and we've notcied that the title of the website dosen't show and over the past month i've tryed some things and been looking into stuff i was also wondering can you get the program's title with the website title for example halo2formbuddy Index - H2F-Browser Can anybody help me thanks. I've been able to do it...how are you actually showing the title to the user even after setting the Document.Title property, using that or the DocumentTitle property produces me the text I set in the Document.Title property like in the example ...Show All
Visual Studio PRB: Duplicate X axis labels for date time axes
We are seeing issues with Reporting services when the number of points to plot are 4 or less. The x axis values have the date and the Y axis values are numeric. Is there a known issue that we need to be aware of Thanks Done. https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=249841 ...Show All
Visual C++ How can I do asynchronous socket proramming in console application?
I was trying with using WSAAsyncSelect , but it requires handle parameter of the window to which the message will be sent when an event occurs. So how can I get handle of a console application Or there is some other way to do asynchronous socket programming in console application. Thanks. Maybe you should consider an alternative solution based on events. First create an event using WSACreateEvent or CreateEvent function. Then associate this event with network event using WSAEventSelect function. After this you can check or wait for network events using WaitForSingleObject or WaitForMultipleObjects functions. You can also use CSocket or CAsyncSocket class from MFC library, which creates for y ...Show All
Visual Studio VB.NET 2005 / Sandcastle treatment of <see cref=""/>
I created identical test projects in C# and VB.NET 2005, and it seems that the two compilers treat <see cref=""/> tags differently. Given this <summary> comment text in the source code: An example comment that references the <see cref="ID"/> and <see cref="Name"/> properties and also some base class library stuff like <see cref="Environment"/> and <see cref="DateTime"/>. The C# compiler produces this text in the XML comment file, which is correctly interpreted by Sandcastle: An example comment that references the <see cref="P:SandcastleTest.Program.ID"/> and <see cref="P:SandcastleTest.Program.Name"/> properties and als ...Show All
SQL Server Using Bulk Insert with SQL Server 2005
I have a web page that prompts a user to select a csv file. Using a Bulk Insert the data is loaded into a SQL Server 2005 table. I have been using the Bulk Insert with SQL Server 200 with no problems, but with 2005 I am getting the error "You do not have permission to use the bulk load statement". My web.config file has the following connection string: [code] <add key="connectionString" value="Server=(local);Database=BroadCastOne;trusted_connection=true" /> [/code] I've given bulkAdmin role to the ASPNET user. It's still not working. What am I doing wrong Any help is greatly appreciated, Ninel Make sure the account that logged in SQL and performed BULK insert ...Show All
SQL Server SQL 2005 Express - sqlserv.exe memory usage always increasing.
Hi, I'm hoping that some might have an answer for me after much net searching. I have a server (200GB disk space, Dual 3.8 GHZ processors, 4GB memory) that hosts 6, very small, SharePoint sites (WSS 2.0) and SQL 2005 express handling 1 config DB and 7 content DB's. The biggest DB at the moment is only 300 MB and the sites are not actively being used yet, they are only open to a select number of users (+ - 25 in total) who are using them as reference "areas" at the moment. Each site is running in it's own application pool as well. I find that the sqlserv.exe process increases in memory usage and does not seem to decrease. It gets to the point of 960 MB usage and then databases cannot be used (SQL 2005 Express max memory ...Show All
Software Development for Windows Vista AutoCAD 2007 and 2005 compatibility with Windows Vista
My bussness revloves around the use of AutoCAD. I recently installed Windows Vista Ultimit on my computer. After i tried to install AutoCAD 2005 on it to discover it would not work. Is there any patches in order to make it compatible. If not Is AutoCAD 2007 Compatible before i go and buy it. thank you Thank you a lot for sharing your experience, I'm really glad to know that so I don't have to run AutoCad 2007 from Virtual OS! Thank you ...Show All
Visual Studio Team System Displaying Code coverage results with automated MSBuild
My assemblies.testrunconfig file includes code coverage setup. When I run my build direclty from VS, the code coverage results are displayed correctly. I am running an automated build and I run into couple of issues: a) The test results file does not contain the code coverage when I open the corresponding trx file on the buildserver b) The test results folder cannot be published on the drop location. I checked my security on both servers and I have full control. Anything I am missing Here is the excerpt from the build log: Target CoreTest: Creating directory "C:\Build Output\Alpha Releases\ConnectTest\BuildType\..\Sources\..\TestResults". __________________________________________________ Project "C:\Build Output\Al ...Show All
SQL Server How to validate Report Parameters
Hi, I am designing a report using SRS 2000. I want to validate parameters before executing the query. Suppose if user gives a random number for parameter (say Emp ID), i want to display a error message in a textbox "There are no records for the given employee ID" and stop executing query to display employee details in the table. I tried using Visible expression for table IIF(Fields!EmpID = "", False, True). But when I run the report with a random number, an error populated saying "You cannot query a record for no data..." Please suggest me a work around. Regards, Thanks for the reply. I managed it by using 2 datasets, 1 for validation parameters and 1 for getting data. I dont know why the abo ...Show All
Visual Basic saving an Excel Worksheet via Visual Basic 2005 automation
Hi all, hopefully someone can help with this question, I've searched some forums but not found an instance of it. I've successfully opened an excel workbook via automation from a VB2005 application. The application populates the cells with data as it is received by the application. I want to use the Excel workbook to store data so that I can in the future access that information (weather data) and display it in Graphs etc or read the data into another application. The problem I'm having is that when I close the application I can't save the workbook, however I can trigger the save dialog box and do it that way but the whole point of the application is to run unattainded and collect and store the information. Here is the code I've trie ...Show All
.NET Development retrieving last entry
i have a table ID. so how can i retrieve the ID immediately of the last entry after inserting the data into the table Like if your table is: Table1 Field: IID - identity, not null , int and primary key Name- varchar(50). Then Insert Statement Should be Insert Into Table1 (Name) Values ('LPlate'); SELECT Scope_Identity(); ...Show All
