Greg Palmer's Q&A profile
Windows Forms Right Margins in a RichTextBox
Does anybody know how set a right margin in a RichTextBox I'd like to have some space between the right edge of the control and the the text that I'm reading in. I'd appreciate any ideas. Thanks The RichTextBox control has a RightMargin property. It is a little strange to use though. The value you enter is the number of p ...Show All
SQL Server Need Advise on SQL Express with Advanced Services
Hi Guys, Need some advice on the free SQL Express with Advanced Services provided. I plan to develop a small departmental multi-user applications with 5 to 6 simultaneous users using the free SQL Express with Advanced Services with VB.net and stored procedures on a local area network. Is it a good choice to use this free SQL Express with Advanced Services or is it more advisable to purchase a standard version Appreciate if someone could help me to address this issue One more thing, can i install the free SQL Express with Advanced Services on a normal desktop with Windows XP SP 2 and utilize it as a server or do i need a prope ...Show All
Visual C++ Product feedback center sign-in dead?
Starting today, every time I try to sign into product feedback, I get my profile instead of product feedback home. It won't let me off the profile page. I've tried this with existing accounts, and newly created ones. Add me also. Actually there is a forum on product feedback site where you should be able to post this request. I have also sent email to team that owns that site, they will take a look into this. Thanks, Nikola ...Show All
Visual C++ cant find file?
#include <iostream> int main() { std::cout<< "hello" ; return (0); } I turned off the precompiled header i get this error. -------------------------- Build Log Build started: Project: test3, Configuration: Debug|Win32 Command Lines Creating temporary file "c:\Documents and Settings\1\My Documents\Visual Studio 2005\Projects\test3\test3\Debug\RSP00000640442460.rsp" with contents [ /Od /D "_MBCS" /Gm /EHsc /RTC1 /MDd /GS- /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /c /Wp64 /ZI /TP ".\hello.cpp" ] Creating command line "cl.exe @"c:\Documents and Settings\1\My Documen ...Show All
Software Development for Windows Vista JRTPLIB in DirectShow filter
Hello Fellow Developers, I have a simple query Trying to send data over the network using jRtplib in the directshow filter. Sender side: Source>>rtp source filter>>>null renderer rtp source filter is a transform filter, in the transform function i send the packet and all the network connectivity is done in the constructor. reciver side: rtp Client filter>>video renderer rtp client filter is a source filter, in the fill buffer i am trying to recv the packet as follows: RTPPacket *pack; if (rtpSession.GotoFirstSourceWithData()) { pack = rtpSession.GetNextPacket(); if (pack) { ...Show All
.NET Development Javascript Validation in ASP.Net
I am writing an ASP.Net application that needs validation for certain fields. I found a Javascript routine that will examine a text box for uppercase, lowercase, and numerics. I can split up the validation to return a value based on what is found. The problem is that I cannot figure out how to incorporate this Javascript with my custom error handler. The custom error handler for ASP.Net cannot be used to weed numbers and/or special characters out of a text field. That is why I am using the Javascript routine. This is what I am trying to add to the HTML code of my project: var numb = '0123456789'; var lwr = 'abc ...Show All
SQL Server CLR Trigger to write file.......
Hello, theres, I have a request to write to a file whenever new record added to the table. When records insert row by row, it goes well. but when more than 2 session insert at the same time, sometimes it duplicate some record in the file. I try to add synchonize code ( like lock , Monitor) but it doesn't work. any idea Regards, Agi I assume you are using this to generate an Audit log or something similar. Here is the route I took. http://sqljunkies.com/Article/4CD01686-5178-490C-A90A-5AEEF5E35915.scuk ...Show All
Visual Studio 2008 (Pre-release) anyone that can help me with this?
Hello, I'm experiencing the following problem for a while now. I'm not able to set the text of a textbox from another class in the same app. Can anyone tell me how I should do this. More details below... Window1-code: <Window x:Class="TestWindow.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="TestWindow"> <Grid> <TextBox Name="txtTest"></TextBox> </Grid> </Window> Class1-code: //Following is a method that is called from elsewhere public void SendRtlsEvent(string code, double x, double y, DateTime timeStamp) { / ...Show All
SQL Server cannot install SQL Server Express, keep getting errors
I am trying to install SQL Server 2005 Express, but it fails. SQL Server Setup has detected incompatible components from Beta version of Visual Studio, .NETFramework or SQL Server 2005. Use Add or Remove to I had earlier installed Beta 2 Version of Dev Studio 2005 and SQL Server 2005 Beta 2. I also had DevStudio 2003 and SQL Server installed. I have gone through and un-installed everything, but I keep getting this error. I have also tried msiexec /x {2AFFFDD7-ED85-4A90-8C52-5DA9EBDC9B8F} msiexec /x {2750B389-A2D2-4953-99CA-27C1F2A8E6FD} Both of these un-install start, but fail with error messages. Would appreciate if anyone can help. Saleem ...Show All
Visual Basic Frequent VB Compiler Error...
Hi! My Visual Studio 2005 always encounters a VB compiler error when I debug my program... Microsoft has offered this fix: FIX: You may receive Visual Basic compiler error messages when you are developing a Visual Basic 2005 project in Visual Studio 2005 http://support.microsoft.com/kb/915038/ Question is... why can't the fix be downloaded if it is a fix why contact microsoft support when doing so no answer is forthcoming I tried searching everywhere for msvb7.dll but couldn't fine a latest version: Msvb7.dll 8.0.50727.93 29-Mar-2006 Has somebody downloaded the file care to share it with me please send to jrb700@ ...Show All
Visual Studio Binding dataset at runtime without using tableadapter
Hi all, I am currently working on a reporting component of a project. We have already defined and coded our stored procedures and data generation modules. So, I have a dataset which has data populated in runtime and I have my reportviewer control. What I need is a report object and binding that object to the dataset in runtime. In order to form the report object, I need to add a datasource. After all the searches I have done, I figured out how to form the report for a dataset that does not have the data in it yet. I've created an XSD schema of the dataset and used it as the datasource to define which dataset column will be visible i ...Show All
Visual FoxPro Export To xls, but choose filename
I have to export a cursor in a xls file, but a need to choose the filename before. The command is, EXPORT TO filename.xls xls But I don't use a Command window, a use a formular. I that formular (a field text1) I type the filename. I tried in this way, adr='nume' nume1=thisform.text1.Value nume2='xls' adresa=&adr.1+&adr.2 EXPORT TO adresa xls or EXPORT TO &adr.1+&adr.2 xls but don't work. any way Please help me. Thank you. Nigel, export to ("nume" + alltrim( thisform.text1.Value ) + ".xls" ) type xls ...Show All
Visual C# How to finalize an application, at any time?
Hello people, how are you I have an winform application with a main menu, and some forms that are called by the ShowDialog() method. In a determinated time, I need to quit the application, even any form is open. I need to exit it immediattly.... How can I do it I already try: Application.Exit(); But, it not work.... I thought in make a loop to close all the opened forms, and than Application.Exit(). But I don't khow how to do it. Thanks friends Andre When you open the form as model through ShowDialog() method the control transfers to the model form and the control doesn;t transfers to the main applic ...Show All
Visual Studio Express Editions Web file existist
Hi, I'm building a small program which displays images that are downloaded from a website during runtime. My question is: How do you determine whether a file exists on the web (i.e. check to see if a .gif file exisist at a URL e.g. "http://www.somedomain.com/someimagename.gif") Really the only way to determine if the file is there is to request it and check the status code you get back and/or check the full output as well. A simple way to check the status code is: HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.somedomain.com/someimagename.gif" ...Show All
Visual Studio Tools for Office Error HRESULT E_FAIL has been returned from a call to a COM component.
And back to the error with no meanings: I’ve created a document, published it on an IIS, and opened it from the IIS, resolved the security problems, and now facing this error message: Error HRESULT E_FAIL has been returned from a call to a COM component. ************** Exception Text ************** System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component. at Microsoft.Office.Core.CommandBarControls.Add(Object Type, Object Id, Object Parameter, Object Before, Object Temporary) at CreditCommentsDoc.ThisDocument.ThisDocument_S ...Show All
