Robfly's Q&A profile
Windows Forms ListView.Update() blocking the app?
Hello, I have a listview with largeIcons. The imagelist is filled in a separate thread which works quite well but after setting the items imageindex to the correct index of the image in the LargeImagelist I call myListView.Update() right after invalidating the image. This causes the images to be drawn as they are rendered but this Update() call blocks the entire app as long as the update takes place. How can I change my code to not provoke a blocking of the application Greetz Sven. Take out the update statement. Update causes all pending paint messages to be processed. Processing paint m ...Show All
.NET Development The BeginRead method cannot be called when another read operation is pending.
Hi, I'm really starting to bang my head against the wall because of this problem here.. I have no clue what's going: The problem is, I connect the client to the server for the first time and everything works normally. Then I disconnect the client and connect it again. Now I get the "The BeginRead method cannot be called when another read operation is pending." exception in my receive callback. If you look at me my debug log "BeginRead" is called twice for a reason that I can't figure out. When this connect fails, I try a 3rd time and now everything works fine again. Here's my receive callback: [code] private static vo ...Show All
SQL Server How connect SQL server 2000 with c#.net .....?
Hello masters, help me yaar i am using dotnet 2003 and SqL SERVER 2000. BUT UNABLE TO CONNECT DATABASE using dataAdaptor(design time ) or sqlconnection any can help me gs whats the error lets see the connection string. make an empty text file called "c:\test.udl" - double click it and try to build a SQL Ole Db Provider datalink. . . can you get that to work Are the TCP protocols enabled in your machines client network settings and in the servers network settings ...Show All
Visual C# i would information about using imap with c#
hello, my problem is that i search to use imap methods if they exists with c# for retreive email from imap server thanks Hi Rima. There's no buil-in support for this. But you have a couple of options: Comercial http://www.jscape.com/emailfactorydotnet/imap.net/imapdotnet.html Free code http://www.c-sharpcorner.com/Code/2003/Sept/SMTPPOP3IMAPLibrary.asp http://www.codeproject.com/csharp/imaplibrary.asp ...Show All
SQL Server Wildcard Searches
I have a number of functions that require the input of parameters in order to ultimatly create a report under Reporting Services by making use of a Stored Procedure. All the functions etc work as does the stored procedure, but it only works if I specify data that I know exists e.g. DECLARE @return_value int EXEC @return_value = [dbo] . [spWTRalldatareportsummary] @dt_src_date = N '04/28/2006' , @chr_div = N 'NE' , @vch_portfolio_no = 3 , @vch_prop_cat = N 'core' SELECT 'Return Value' = @return_value GO How can I set this so that it will wild card the value. For example rather than having to ...Show All
Visual Studio Express Editions Link error
Hi, I get this error using vc++ 6 and 8. I installed everything the sdk for 8 to. I try compiling some simple code and I get this: MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup so yea ;\ Im just trying to compile a test program like: #include <iostream> using namespace std; int main() { cout<< "Testing this vc++ 2005 blah" <<endl; return 0; } The project you are using is set up as a windows application. So you should recreate the project and make it a console application instead. ...Show All
Visual Studio Tools for Office How can I call a managed code extensions function from another project?
I have a Excel Workbook project in Visual Studio with a sub like DoSomeComplexThing(parameters) as code-behind. I wan't to call this function from a windows forms project. In the windows forms project I create and reference a new excel.application, then open the workbook, but then I don't know how to call the function. I wan't to activate a function in my workbook with some parameters supplied by the windows forms app. Is this possible Is there some kind of excelApp.ExcecuteDotNetCodeBehind("DoSomeComplexThing",parameters) or something like that Thanks, Hector Hi Hector, There is no ...Show All
Software Development for Windows Vista EventSink Roles terminates workflow
Currently the workflow is terminated when when an eventsink is called by somebody not added to the roles collection of the EventSink Is it possible to maybe throw an exception to the caller (or ignore the call completely) without terminating the workflow instance Peter You can use an exception handler on the workflow, but that will move you into the exception handler and out of your flow. Or, you can wrap the event sink code up in a transactional context (or some other composite activity that supports event handlers) and catch the exception at that level. This ...Show All
Visual Studio Wrong Re-Install Procedure. Problems running VS2005.
Hello, I have a serious problem in my system and I need Help or else I'll need to reinstall windows again. This is the situation: I installed the VS2005 beta 5 and everything worked out ok. I have an ideia for a project and i needed to install a third-party component to test. to install the component i had to install the last built of the SDK Framework. Big Mistake. Manage to install the component, but i messed up VS2005 since it started to crash everything I create a new project. I then uninstalled the component...but the VS still crashed. I then uninstalled the SDK...even worst mistake (didn't know that uninstall procedure had to be do ...Show All
Visual Studio Team System Disk space requirments for TFS servers
Hi, Can anybody suggest rules for evaluation of disk space requirements for Data Tier and Application Tier machines I suppose it should be something like XMb * expected number of Work Items. Leon, As far as version control goes (on the data tier), most of the space is taken up by tbl_LocalVersion. This is the table that tracks what version of the items each user has in their workspace. On our dogfood server, this table averages 475 bytes per row. So, you can get a pretty good estimate of: 475 x number_of_files x number_of_users ...Show All
Visual C++ ::GetWindowLongPtr() and cast errors
It seems that ::SetWindowLongPtr() and ::GetWindowLongPtr() are defined to just map to set/get window long in 32-bit windows. The problem with this is that, even though I use the correct casts and functions, I still get a warning from VC++ about possible loss of data (because I stuff a pointer into this field). Is there any way of writing code that calls ::SetWindowLongPtr() and ::GetWindowLongPtr() that doesn't issue this warning, without turning off the warning using command line options or #pragma warning You're probably gettings warnings because the casts won't work in 64-bit code. To disable: Project + Properties, Configuration ...Show All
.NET Development A very irritating problem!
A while back I installed the .NET framework on my Windows 98se computer (old original version 1.1 redistributable package, or possibly even 1.0). Some time later, windows update told me there was a security update or patch that fixed various issues or something along those lines... so I did the update. However, half way through the updating/installation process, my computer crashed. This left my .NET in a half updated state - nothing that required .NET would work, and when I attempted to do the automatic windows update again, it still said I needed the update, but the installation wouldn't work either. So, I ...Show All
Windows Forms SelectedIndexChanged event vs Selected event
I have tried using SelectedIndexChanged and Selected events for TabControl. I have noticed that with SelectedIndexChanged, the whole tabpage and its contents are shown before the event is fired. I can then set focus to a control in the new tabpage. But with Selected event, the tabpage+contents are not shown at the time of the event, so I cannot set focus to a particular control there. Is there a way to get focus to work with the Selected event ...Show All
Visual Studio Team System How to capture the form request in a https site
Hi, all I have a question about how to capture https request when click some "save" button of my site, because there is some javascript source, so VS can not capture it , does anyone knows how to capture the whole request Thanks very much. Yes, that's means: I try to manually form the request, but i don't know the request content that sent to the web site after i click some "save" button. Do you know any method to do that thanks very much. ...Show All
Visual C# reseditor
Where do I find the reseditor in Visual Studio 2005 On the top menu, click Project | Properties. On the left-hand side, click on the Resources tab. This will pull up the reseditor. HTH, Karen ...Show All
