selva_kumar's Q&A profile
Visual C# Getting the width and height of a docked panel
Hi, I want to get the height and width of a docked panel. Now when I do pnl.Width I get the Width of the panel in design time. Can anybody help me Grtz Annihil8 The heigth, width and Size are all the values from design time. I've noticed that this is also for the form which contains the panel. It is a mdiForm set to to maximized, but the size, height and width are all the values of the mdiForm when windowed. Grtz ...Show All
Visual Basic How to create an instance of a C DLL.
Hi. I want to know about creating an instance of a C DLL and how to use that instance in a VB function on VB6.0. Thanks in Advance. This is done using API calls: http://msdn2.microsoft.com/en-us/library/172wfck9.aspx Tis asrticle shows how to call Windows API. The same way is used for any Dll which exports functions. ...Show All
SQL Server How to catch severity level from SQL Server 2005 in Centura 4.1 client with ODBC-connection?
We have a client application developed in Centura 4.1 for Sybase dB. We have now migrated the DB to SQL Server 2005 and we have a problem: For several reasons we must use ODBC and when the DB raises a warning (severity level < 11 ) the Centura-client must ignore this. As it works now the client raises an error an stops execution. When using Sybase the client got the severity level from the DB and the client ignored all levels that was < 11. We now cannot do that since we do not get that info from the ODBC… So I wonder: Can we stop the SQl Server from raising errors with severity level < 11 (=warnings) How do we get the severity level and not only the ODBC number and text in the client.. We also tried ...Show All
Smart Device Development VisualStudio2005 fails to create SmartDevice MFC apps but works fine with c#
I have VisualStudio 2005 "Standard Edition" and the Windows Mobile 5.0 installed. I can create c# SmartDevice applications fine. I have evc3.0 and evc4.0 installed on my machine too which work fine. When I try to create any C++ Smart Device applications, I get a "Line 4033" "Object Required" "Do you wish to debug" error in my IDE. When I click "Debug" and try to debug in Visual Studio 2005 I notice the following: File : Common.js Function: ConstructClassName Line: var bValid = (window.external.dte.VCLanguageManager.ValidateIdentifier(strCandidate)..... window.external.dte is null. I reinstalled the SDK but no use. Any suggestions I've recently posted exactly the same prob in mi ...Show All
Visual Basic updating acces database
Hi friendz I made a program with an acces database. I have a problem with the updating: I run program, enter a new name, press ok, name appears. But when i restart the program, the name isn't there anymore. Code: Me .Tabel1BindingSource.EndEdit() Me .Tabel1TableAdapter.Update( Me .GamesDatabaseDataSet.Tabel1) Also I changed the "copy to output directory" property to "copy always" Can some1 say what I do wrong PLEASE DON'T GIVE ME LINK, I DON'T GET ANYTHING OF THOSE STUFFS I'd like the good code Ty in advance Marnik If you have it set to copy always, the database that holds your changes, will always be overwritten by the original database that you created the program with. Basically, you ...Show All
.NET Development Regex search for two words seperated by a space
I have a text file that I need to match on. I load the file into a string and then strip out the newline characters (\012’s) and replace them with stars (\052’s) to make working with them simpler. So then I have a string variable made up of groups of text separated by double stars (**) with the occasional star in-between the double stars. I need to find names within those ‘groups’ but I also need all the text within the group. I build my regex by using a string variable for the name and end up with a regex like this: Dim textForRegex As String = "( xism)\*\*[^\*]*" & strName This works as long as I use a single name in my ‘Prompt’ string. When I type in two words such as ‘John Smith’ my regex search fail ...Show All
Visual Studio Problems loading August MSDN Library
During the install of the August MSDN Library, my syste blue screened and rebooted. After coming back up I've attempted to restart the install, repair and remove the library and I always get the same error message: The wizard was interrupted before MSDN Library for Visual Studio 2005 could be completely installed. Your cmputer has not been modified. To complete installation, run setup again. Click Finish to exit the wizard and run setup again. How do I get past this so that I can complete the install Karl G'day, I've also got the same problem with the MSDN Aug 2006 installation. rgstrn.lck is not on my machine. I have a lot of third party components that integrate into VS help and ha ...Show All
SQL Server scripting the isql.exe to export date and backup the DB SQL 2000
We have no certified SQL DBAs. Mainly because 95% of our production data is on Oracle and DB2 databases. One of our Oracle DBAs is trying to write scripts that can be run by the AS400 robot to export data and backup the databases. I (being the only person with any SQL expierance) have been asked to ensure that the scripts she wrote will not only work but not bring down the server. Can anyone point me to the correct place (web, book, ect) to find out how this is to be done In years past my SQL servers have been stand alone dedicated units. With db backups scheduled through the SQL Manager and tape backups handled by the sysadmin. Please help, Cwells ...Show All
Visual C# how to insert a carriage return at the end of a string in C# pls
2/ also, if I do : line=myStreamReader.ReadLine How do I do to keep the carriage return as part of line string So when i display line items they keep the returns and my text gets well formatted Thank you ReadLine will strip them out. The easiest thing to do is to insert them back using "\n". However you can also switch to Read to get a block of characters at a time or ReadToEnd to read the entire string into memory. If you don't need to do any manipulation then ReadToEnd is the best choice. Michael Taylor - 2/7/07 http://p3net.mvps.org ...Show All
SQL Server Bar chart report
hello, I am creating a bar chart report which contains a datetime information on the x -axis. The unit of the x-axis value depends on the parameters value(StartDate and EndDate). For example, if the difference between StartDate and EndDate is > 2 years, say 4 years for instance, then the value of the x-axis should be presented on a yearly basis, like this: Hi guys, Is this question not clear or difficult to answer Does any body came across this kind of scenario Please let me know Sincerely, Amde ...Show All
Windows Forms Datagrid Paging alignment
I have a problem. When i place a DataGrid on an aspx page in Visual Studio 2005 the page no comes to the extreme left of the page. I tried changing the alignment to right or center but still it is displayed in the same manner. If any body has a solution please let me know Hi! Good for you that you found the solution in the form of third party tool. And thanks for your offer, I would rather use GridView instead. Cheers Sohail. ...Show All
Visual Studio Express Editions commands
where do i go to learn about all the vb commands, as i read these posts i am learning about commands that m books dont tell me about. how can do somethhing if i dont know the commands. things like accept and so on thats what i am talking about, you say there isnt a book or web site i can goto to get an explanation about a comand, so are you saying if i want to expand my knowledge about the command accept or insert so i am more familiar as to what it does so i can use it better, i have to go to the forum because there is no book or web site. it that correct ...Show All
Game Technologies: DirectX, XNA, XACT, etc. training in the UK
It has been noted that several universities in the U.S. are to promote courses for XNA game studio. Are there any plans for training or seminars in the UK. I know Microsoft are pretty good at providing free seminars on their products ( I had a free day using M.O.M.) and it would be good to see various events in the UK. Any comments Couldn't be much further away from me, I'm on the south coast and work full time so I would need a prt time course or the odd day here and there. ...Show All
Visual Studio Express Editions new line character
'Am using this code to convert a textbox (txtWords) entry into a list of words where each word ' is followed by a new line character so that a sentence is split into a list of words. So that if the sentence is - the quick brown fox, the list of words appears as the quick brown fox ie each word on a separate in a textbox Dim strWords() As String = txtWords.Text.Split(" ") Dim wordCount As Integer = strWords.Length For intCounter As Integer = 1 To wordCount Dim Words As String = strWords(intCounter - 1) 'this is where I have trouble. txtWords.Text = Words & " \n" Next Was also reading about Array.ForEach Generic Method. Would this help in acheiving the result If so how should I use this The syntax of this m ...Show All
Visual Studio 2008 (Pre-release) Very Large Messages With WCF
Hi, I am having some problems with message sizes. My service can receive a very large xml string, probably up to 250K or more. I noticed that on the service host side it appears the message is just being "overlooked". There are no errors thrown when the message is received (that I can tell nothing in the event log or captured in my code), yet my service host that implements my service contract doesn't process the message. I read about setting the MaxStringContentLength reader quota in my binding and I changed it to 2147483647 and had limited success with it. Smaller messages, say around 35K are now handled with a larger quota but the really large messages are not making it. All other quota values are set to 0. Given that I don ...Show All
