B.H.V.Ramakrishna's Q&A profile
Visual Basic Displaying list of text in a TextBox
I'm a novice programmer and I have a very basic question. I am trying to display text in a TextBox, with one caveat. I need to be able to insert "carriage returns" or force the text onto a new line. I am using the text box to display the results of a numbered list. How can this be done As a work around I am using Word to display the results, but ideally the application needs to be able to display the results in a text box. Thank ...Show All
Windows Forms Form flicker
Hi, I am writing an application that uses forms as modal dialogs. So the Main form has some code like form2.ShowDialog(); Once the dialog has been used it will be calling the this.Hide() on the on close event. This causes form1 to show a very annoying flicker even though double buffering is enabled on it. Is there any form property or style I am missing to avoid this flickering Thanks a lot for your help ...Show All
Windows Forms class inside module in VB .net
Hi guys Is it ok for me to define a class inside a module I don't want create another class because I am only defining properties(e.g Name, Value) Thanks! Sorry for the vague question.. I think your reply just answers my question( Structure instead of class).. Thanks guys! ...Show All
Software Development for Windows Vista HandleExternalEvent problems
I am very new to WWF and I have recently downloaded MicrosoftR Visual StudioR 2005 Extensions for WindowsR Workflow Foundation Beta 2.2 and the Windows Workflow Foundation Beta 2 Hands-on Labs. I have been trying for some time to write an example of a workflow using a HandleExternalEvent, but for some reason the HandleExternalEvent activity always ends up in a endless cpuloop. In an attempt to resolve this problem I decided to have a look at ...Show All
Visual Basic What are square brackets used for?
Hello all, just curious on this. What's the difference between something like Dim strName as String, and Dim strName as [String] And where/why would you use [ ] if there is a difference Thank you in advance. There is no difference. I have found that some of the C# to VB converters will put brackets in where they don't really belong. I recently converted a project and it changed all references ...Show All
Visual Basic How do i use a timer
How do i use a timer bit of a stupid question but it has puzzled me! I would also like to know how to link VB with databases i am currently working on a project and i need some help. Sure - at the end of the day, the same thing is created. For me, though, putting it in code means having complete control over it, where it is declared, how it is declared, etc. The designer does indeed have that area, and it's obviously so that more and more c ...Show All
Visual Studio Express Editions Cannot compile the sample from MSDN IADsWinNTSystemInfo
Dear Sir, I have copied the code from MSDN in order to use IADsWinNTSystemInfo to get the machine name and PDC. The code is listed as follows. #include <activeds.h> #include <stdio.h> int main() { HRESULT hr; hr = CoInitialize(NULL); IADsWinNTSystemInfo *pNtSys; hr = CoCreateInstance(CLSID_WinNTSystemInfo, NULL, CLSCTX_INPROC_SERVER, IID_IADsWinNTSystemInfo, (void* ...Show All
SQL Server Stored Procedure Documentation
Hello, I've recently taken a new database reporting job. One of my first tasks at hand is to write documentation of existing stored procs, functions, views, etc... They would like to have printed Word documents listing the server location, database names, and other specifics of the existing objects within each database (I've already done information flowcharts & program logic). Because my position is now in Finance (no longer IT), these d ...Show All
Windows Forms Click-once application doesn't start
I've having big problems with Click-Once deployment of my application. The application appears to install correctly and adds an entry to the start menu, however it won't run: either from the Start menu or from the web page. The application does seem to work correctly for my colleagues, but not for me (although it used to). I can't see any event log entries, and the application isn't running in task manager. How can I see what is goin ...Show All
System Center Event ID: 5000 .NET Runtime 2.0 Error Reporting
Unable to extract the reports in excel I have been getting this error which is mentioned below, please help Event ID: 5000 .NET Runtime 2.0 Error Reporting Could you please clarify the problem you are seeing Do you remember exactly what you were doing in the application when you encountered the error It would be very helpful if you could provide a more detailed sequence of steps that produce the error, such ...Show All
Windows Forms Passing Data between controls on different forms.
Hi, I'm working on a spell checker web service. I have a main form, and when something is searched it invokes the web service. If the spelling appears incorrect then a frmSpell will load showing a suggestion. E.g. ________________________ You searched for: Microosoft Did&nb ...Show All
.NET Development Is there XML editor, organized like form view, according DTD ?
Is there XML editor, organized like form view, according DTD (or else XML scheme) I want to enter XML data, but not in pure XML, or in arbitrary XML in form view like in Microsoft XML notepad, but to enter data by form fields according DTD. Is there such a good thing thanks. Yes, it looks what is need, with only collection of nodes must be kept. As well as collection of collections i.e. using some tree-v ...Show All
.NET Development C/C++ Server and C# client - communication problem
Hello, I have C/C++ Winsock server, and C# client. In C# I'm using blocking socket communication. Client sends some data (about 64kB) and receives answer (about 10B). The problem is, that after first connection, nearly all following are false - server receives less data that client sends, next time more (seems like server gets data from actual connection and that which haven't been received before)... What can be done, to make both sides ...Show All
.NET Development MS SQL 2005
Hi, I am using a stored Procedure on 2005 SQL server. This returns me a XML document as output. When I execute the same query using ASP.NET beta using C# it giving me 3 data rows randomly truncating the xml text. I have used SqlConnection. Is there anything I have missed or this is the standard way. Thanks Sambuddha ASP.NET beta Any type of beta software could have problems. I doubt you will get any answers to this qu ...Show All
.NET Development Multiple application domains and multiple processes
What are the situations in which using multiple processes is better than using multiple application domains Thanks for your reply. As far as I understand, using multiple application domains is better in terms of performance and usage of system resources. So why would I need to use multiple processes Should I always use application domains as the code separating unit I am trying to build a small application that contains multiple component ...Show All
