Software Development Network Logo
  • Microsoft ISV
  • Visual Basic
  • Windows Live
  • Windows Forms
  • .NET Development
  • Architecture
  • Game Technologies
  • Visual C++
  • Visual FoxPro
  • VS Team System
  • Windows Vista
  • VS Express Editions
  • Visual J#
  • Visual Studio
  • Visual C#

Software Development Network >> Brainwav's Q&A profile

Brainwav

Member List

Diogenese58
DesertWells
Eliasoft
sahil_m
jimkeir
bialguos
Colleen TechNot
WorkerBee
Vitaly Pimenov
noelweichbrodt
Stigster
Star93
Tamás Balog
mmresnick
Patricius
WHairston
jdan57
Powermax
Perter
RWeigelt
Only Title

Brainwav's Q&A profile

  • Visual Studio 2008 (Pre-release) ListView scroll postion

    Is it possible to get and set the scroll position on the ListView (I’m aware of ScrollIntoView) I was thinking something like: this.ListView1.ScrollPosition = 1; and if (this.ListView1.ScrollPosition > X) GetMoreData(); Best regards, Thomas Andersen Try this: 1. hook ScrollChanged event; 2. get ScrollViewer control; 3. get the value of ViewportHeight property. Thanks, Ji ...Show All

  • Visual Basic Multiple threads executing the same procedure.

    I am new to Threading in VB.NET and need help with the following questions. 1. Can we have multiple threads executing the same procedure 2. Will there be race condition if we code it that way 3. Lets say for example I have a procedure like this: Public sr as StreamReader 'A Global StreamReader Sub DoProcess() sr.ReadLine(); End Sub I would like to Create (10 or 15) threads based on the user entry. 3.1 How do I create specified number of threads (10 or 15) 3.2 How do I call the DoProcess function with the threads Is this the best way Please suggest. This is really urgent. Thanks ...Show All

  • Visual Basic Problem with Me.close

    Hi, I'm just moving from VB6 and have a big problem with the Me.close() function. Here is my example : The default start form is a splash screen ; name it Splash.vb which as the same function than the Microsoft Word one, for example. After a few seconds, I want to close it and load the main form, just name it Choices.vb . The problem is, when I put the Me.close() function in the Splash.vb form, it just closes the program. Of course, I have put the Choices.show just before Me.close ; so I see briefly the main form, the the program closes. To bypass this problem temporally, I changed the Me.close by Me.hide, but this is not a good solution of ...Show All

  • SQL Server How can I get the table schema using Entreprise Library DAAB ?

    Hello people, i'm using the DAAB (Enterprise Library) to access the data in my system. But I need to use the schema from the tables i'm reading.... when I was using the default DataAdapter, I have used the FillSchema() method, but now, when I use de DAAB to fill de data, I couldn't get the primary keys columns, unique columns neither autoincrement columns... This is the code that i'm using to get the data with DAAB: =========================== Database db = DatabaseFactory.CreateDatabase(); DBCommandWrapper cmd = db.GetSqlStringCommandWrapper("SELECT * FROM Customer"); ds = db.ExecuteDataSet(cmd); =========================== But this c ...Show All

  • Visual Basic Scary- Debug is running old code. Is there a way to set the debug to completely refresh.

    I was running a misbehaving program and really couldn't find what was going on until I noticed a messagebox was popping up that I had deleted previously. Hmmm.... Without changing any of my code, I deleted all the projects .exe's in the obj and bin folders.  This cured the misbehaving program and the messagebox stopped popping. Fortunately this was a very simple application and the problem was easily found.  However, I would like to have the builds and debugs work with a complete refresh.  Is there a way to set the debug to completely refresh, so it includes the latest developed code   I.E ...Show All

  • .NET Development How to retrieve an image from Access DB and display in a pictureBox of Windows Form?

    In a table of Microsoft Access DB, images are stored in an object-type column. Now I want to retrieve them out and display in a pictureBox of Windows Form, how to implement that with C# Using Graphics.DrawImage If so, how to construct such an image object Had better give me some sample codes if possible. http://www.eggheadcafe.com/PrintSearchContent.asp LINKID=799 The code sample available for download includes a snippet of how to do this: ADO.NET Code Generator for Microsoft Access: http://www.eggheadcafe.com/articles/microsoftaccess_source_code_generator.asp ...Show All

  • Windows Forms XP Style Controls

    I am developing a Window Forms application and want all my controls to be XP style, or even Visual Studio 2003 style. I have looked around for how to do this and found info on incuding version 6.0 of the Comctl32.dll. When I do this it works fine when my style (theme) is set to XP Style, but when I'm in Windows Classic Style it reverts to the older control styles. I know that Visual Studio's controls remain with the new XP look when I am in Windows Classic Style, so there must be some way to do this in my app. Anyone know how this is done, or if there are any 3rd party libraries that provide this functionality. Thanks - Samy ...Show All

  • Visual Studio Custom coloring using MPF

    The documentation mentions the following for creating custom colorable items: - Set RequestStockColors to 0 or leave it untouched (Left it untouched) - Define your own ColorableItems in the constructor of LanguageService - Override GetItemCount and GetColorableItem methods of LanguageService I followed the above steps and still the custom colorable items do not show up in Fonts and Colors property page on Options dialog box. I made sure that the names of the colorable items are different from the existing ones. I am using October RTM version of SDK. What else needs to be done Thanks in advance.   ...Show All

  • Visual Studio Tools for Office ExcelSheet deployment

    Hi, I have seen the following article: To prepare an end user's computer to run Office solutions 1. Install the Microsoft .NET Framework version 2.0 2. Install one of the following editions of Microsoft Office 2003: Microsoft Office Professional Edition 2003. Microsoft Office Professional Enterprise Edition 2003. Microsoft Office Excel 2003. Microsoft Office Word 2003. Microsoft Office Outlook 2003. Microsoft Office Professional Edition 2003 Trial. Microsoft Office System Evaluation 2003 Enterprise Edition. etc...............as in the document. Actually ...Show All

  • Windows Forms My 1st Control

    Real XP Button See an screen shot here: http://www.fulfree.info/images/xpbutton.jpg source Code here: http://www.fulfree.info/xpbutton/XPButton.html Dll here: http://www.fulfree.info/xpbutton/XPButton.dll hoi  fulfree, Pretty good , apears to be working fine  Remco ...Show All

  • Windows Forms What route for advanced UI? Controls or GDI Graphics?

    Hello.  I am about to embark on creating some advanced UI for my application which will end up (I hope) looking and feeling like the Outlook Calender UI (Organising a meeting, viewing appointments etc.) I would very much like to hear opinion on what is the best route to take for this.   Should I try to create a custom controls consisting of&n ...Show All

  • Visual Studio Express Editions The element 'Project' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'Propertygrou

    Ever Since I installed beta 2 I've been recieving The following error under the Microsoft.common.targets tab, in Visual basic beta2. I don't uderstand the problem.  Warning 1 The element 'Project' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'Propertygroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. Expected 'PropertyGroup, ItemGroup, Choose, Error, Warning, Message, UsingTask, Target, Import, ProjectExtensions' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets& ...Show All

  • Windows Forms BinaryReader.ReadString() and Streams

    I keep getting an EndOfStreamException meaning that the BinaryReader has attempted to read beyond the stream length when reading the string. However, I'm not sure why this is happening and the documentation on MSDN just says that it can be thrown, but not what a properly formatted string would look like. My stream has a Unicode string that ends with 2 bytes ...Show All

  • .NET Development Controlling Garbage Collection?

    We have a .Net windows service running on a Windows 2003 64-bit machine whose main purpose is to cache Gigabytes worth of data and make that data available via remoting calls. Currently, the process uses 13.6 gigabytes worth of memory, storing data in three main Hashtables. The problem we're experiencing involves garbage collection. At 13.6 GB, the garbage collector seems to run about every two minutes, halting program execution for 30 seconds each time. This is a big problem due to the fact that we are going to have many client applications requesting data from this service at random times and we cannot have them time out due to the garbag ...Show All

  • SQL Server URGENT: Insert and Update in a transaction is getting blocked

    Hello, I have the following situation: -Package A begins a transaction (TransactionOption="Required") with IsolationLevel=Serializable -PackageA calls PackageB -PackageB has 2 data-flows. The first one inserts into TableA. The second one updates TableA. They run serially. They both have TransactionOption="Supported". The update is blocked in SQL Server by SPID=-2   (which I know is MSDTC). I tried setting RetainSameConnection=TRUE on the connection manager in PackageB. It failed with: "Incompatible transaction context was specified for a retained connection. This connection has been established under a different tran ...Show All

©2008 Software Development Network