Rizshe's Q&A profile
.NET Development .NET Framework and Windows User Profiles
Problem: We developed a VB.NET application using Visual Studios 2005 and are using table adapters (via the wizard) to bind the data to the forms. The program is using a hidden textbox field on the form as the key (a SQL identity field) to run stored procedures on an SQL 2000 server. With the issue we are having, the application opens the main form and can access data from the SQL server just fine. However, when trying to run the stored procedure that uses the hidden textbox field, an error occures saying that the hidden field value of "" cannot be converted to a integer. Note: The txthiddentextbox.text is being converted to an i ...Show All
.NET Development Typed Dataset - How To Generate
VS 2003 was simple. Create xml data, right click generate schema, right click and generated typed dataset. How do I do this in 2005 Dave pugs wrote: I'm also having this problem in VS 05. It was or used to be simple to generate a dataset from an *.xsd file. I'm finding this a real problem in 05. I've imported an xsd file and would like to generate a typed dataset from it but it doesn't work with what has been suggested in this thread (designing in the dataset editor does not work or I'm missing something, which you to be simple in VS03). Any ideas Is this by design or h ...Show All
.NET Development memory leak in window.open() method
if we use JScript "window" object to open a new page it causes a memory leak. steps to produce: create a button in a simple html page. on the click event of that button write the following code. window.open(" http://www.microsoft.com ") before clicking the button note down the memory status of "IExplorer.exe" click that button and surf the opened page. u will see that memory of "IExplorer.exe" will be increased. after surfing few minutes close the newly opened window. The momory of IExplorer.exe will go down but not at the level that was just before opening the new page with window.open(). so this experiment shows t ...Show All
Visual Studio Express Editions The page cannot be displayed
Hi. I am new to ASP.NET I am facing a problem when i try out the Visual Web Developer 2005 Express Edition Beta 2. When i try to view my ASP.NET page in the ASP.NET Development Server come together with VWD 2005, it show The page cannot be displayed and the url at the address bar showed http://localhost:1683/WebSite2/HTMLPage.htm I am using Windows XP SP2 Please help me on this, i reallt couldn't find any solutions on it. thank you. Andy I'm also very, very new to asp.net beta 2 and VWD. I couldn't get the local web server to display a "hello world" page until I unchecked the NTLM Authentication c ...Show All
Windows Forms Have trouble introducing my own bug
I have installed the old terrarium for .Net framework version 1.0. I have both version 1.0 and 1.1 of the .Net framework installed. I still don't seem to be able to receive creatures in ecosystem mode, but thats a different issue. I can now run in local terrarium mode, and I can introduce animals from the server just fine. However when I try ...Show All
Game Technologies: DirectX, XNA, XACT, etc. LockRect on a DXT1 surface with 1bit alpha
Hi, Im just working on my terrain shadowing (not realtime) and want to consider the alpha-values of an objects texture. I want the object to cast a correct shadow and already managed to achive this for "normal" texture formats like A8R8G8B8 and A1R5G5B5. I lock the texture using lockrect for a rect of a single pixels-size. So this works alright: lpAlphaTex->LockRect( 0, &lckd_rect, &rect, D3DLOCK_READONLY); DWORD* pTBits = reinterpret_cast<DWORD*>(lckd_rect.pBits); bool IsTransparent = false ; if ( (desc.Format == D3DFMT_A8R8G8B8) && (pTBits[0] >> 24) > 0x20 ) IsTransparent = true ; ...Show All
Windows Forms How to find is a form already open in a Multiple form application
hi, Please tell me how to find if a form is already open so I won't open multiple copies of the same form in the application. many thanks. -VJ You can iterate through Application.OpenForms, but there's a fundamental flaw in your approach. You shouldn't be creating forms willy nilly and not maintaining some sort of access to them from your main form. In any case, if your UI contains that many popup windows, the UI design is proably too busy anyhow. ...Show All
Visual Studio Team System How to delete a build?
Is there any way to permanently delete (or at least hide) builds I have at this point about a dozen builds, all failed, that represent various waypoints on the way to getting a team build to work from end to end. Am I stuck with seeing these builds in the IDE for the rest of eternity Thanks! I'll just live with 'em for now. Afterall, the entire database will have to be blown away to transition from Beta 2 to RTM anyway. ...Show All
SQL Server Data Looking for a Good Home - Where Might It Be?
Been coding mainframes 25 years; just started learning this platform. Fish out of water. Have 2005 VWebDeveloper Express and 2005 SQL Betas. I have a million bytes of data to test my asp.net app locally. 100 columns, 200 rows and 6 items within each row. The data grows by 1 row per day; app. 5000 bytes. MSDN tutorials that come with VWD Express talk about a "Northwind SQL Server" being required to, at least, follow the tutorials. This is very unclear. Q. What is Northwind And is it in anyway relevant to testing a VWD Express app Q. What are you folks using for a server to test your apps loc ...Show All
.NET Development How to delete a line from a text file using C#
Hello all I am developing a little app where I need to monitor a file that is update by several machines. I need to gather each line wrote by each machine so I need access to a specific line number and take that line, store it into a DB table and delete that line. I really don't know how to delete the line without parse the information into a string variable and rewrite the file. This can lake the app because the file can contain up to 1000K lines... :-O... Any suggestion will be appreciated. ________________________________ I think I deleted the Internet... Well, finally my code stays like this... This i ...Show All
Windows Forms TabControl left or right -- text not visible
Hi, I create a new WindowForms app and drag a tabcontrol on it. It has (by default) two pages. When I set the Alignment to left (or right) the Text disappears and the Multiline property is set to true. The text is visible if I use Button or Flatbutton but not with normal. The positive - in .NET 1.1 new added pages "stacked" and now they are vertical one after another. But with the buttons and multiline it makes a big distance ("border") between the buttons and the pages. Is it possible to have the thing with a visible left text in Appearance Normal Cheers Manfred TabControl with VisualStyles only supports ...Show All
SQL Server ForceExecutionResult is ignored by parent
1 Add a Sequence Container. 2 Add a Script Task to the contianer, and set the script to fail, Dts.TaskResult = Dts.Results.Failure 3 Set the ForceExecutionResult on the Script to Success. 4 Execute the package. The container fails, so it detects the Dts.Results.Failure, and ignores ForceExecutionResult. The task itself is Green, so that indicates success. I think this is wrong, as ForceExecutionResult should be observed by both the task and parent container. Not that it should matter, I think, FailParentOnFailure is false. By design (Sep CTP) Containers don't fail because their children fail. Containers fail because one of their settin ...Show All
Visual Basic ListBox Malfunction
I have two List Boxes in my program. One for Clients objects , the other for Case objects. I load each List Box at startup with Case and Client objects. Here is the odd problem: When I select an entry in the client List Box it displays the client information in text boxes. (For example, text1.text = client.LastName) Everything is also fine when I do the same in the case List Box. However, when I then go back to the client List Box I sometimes get the “wrong entry”, i.e. I don’t get the entry that I highlight in the Client LIst Box. The problem seems to be coming from this line: client = CType ( Me .Client_ListBox.SelectedIte ...Show All
Visual Basic Docking form
Hello, I was wondering how I can make a form of mine dock onto the side of my screen, like my aim buddy list does. I've googled this and I've come up with notta, so I'm hoping a wise coder on here can assist me. Thanks in advance. G'day Jay890. In the property window for your Form, find the Location setting. This is usually set to 0,0 which is the top,left corner of the screen. Then select the StartPosition and set this to manual . When you run the app it starts in the top,left corner. All you need to do is enter the position that you want your app to start at. Hope that helps. ...Show All
Windows Forms Dependant tasks? Subtasks?
Has anyone tried implementing a way to provide subtasks functionality What I would like to be able to do is create tasks that are "under" another task. i thought the exact same thing when i first saw it...I haven't had any time to check it out yet, but when I do, I know I'll definitely be looking into that. I'll ...Show All
