VikasAgr's Q&A profile
Windows Forms ListView.Refresh what am I missing?
I have a ListView control (Detail view) that I fill programatically. I expected that when I changed the value of a 'cell' (a sub-item on one of the listview items) that I could just call Refresh on the ListView control. But I don't get the updated value displayed. I must be missing something (grr....), probably simple and obvious (I hope). If I walk the data in the control, I see the updated value, but my use of the Refresh method must be incorrect. In the example below, the little WalkThroughAnswerList function displays the correct (updated) values. Please see the code fragments below. Note that I am using .Net 1.1 (and VB 2003). AnswerList is the ListView control. Private Sub AnswerList_DragDrop( ByVal sender As Object , ...Show All
Visual Basic DLL Creation
I want to create a DLL for editing HEX Data I want that if it is referenced for editing any bytes you need write this line: WriteB (File , Seek, Byte) File= Files to open with FileStream ( Imports Sytem.IO is necessary obviously) Seek= For moving the pointer in a offset Byte= Byte to write in the Offset Now if i want to edit a byte i need write this code Dim str As New FileStream(OpenFileDialog1.FileName, FileMode.Open, FileAccess.ReadWrite) str.Seek(&H18D, SeekOrigin.Begin) str.WriteByte(CByte("&H" & ComboBox3.Text)) And i want to create a Function in the DLL Imports System.IO Public Class Class1 ' Start Function Public Function Nome_funzione As CallType ......... ...Show All
.NET Development DateTime select problem
hi ppl, im using a datatable.select method to filter a datatable, i have a datetime column and i have 2 dateTimePickers. Im doing the next: string date; date = String.Format("Fecha >= #{0}# AND Fecha < #{1}#", dtPickerDesde.Value.ToShortDateString(), dtPickerHasta.Value.AddDays(1).ToShortDateString()); rows = dtFacturas.Select(date); //rows is my DataRows array i dont know why it throw me exception with some dates and with some others it dont for example, when the string is like this: Fecha >= #31/07/2006# AND Fecha < #01/08/2006# thres no problem but when its like this: Fecha >= #31/01/2006# AND Fecha < #01/08/2006# or this: Fecha >= #28/02/2006# AND Fecha < #01/08/2006# it throws an exception, and much m ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Shader file loads in MDX but fails to load in XNA
The shader file I'm trying to load in is shown below. It works perfectly in MDX, however when I try to load it in XNA with the following lines: CompiledEffect compiledEffect = Effect.CompileEffectFromFile("@/../../../../test.fx", null, null, CompilerOptions.None, TargetPlatform.Windows); effect = new Effect(graphics.GraphicsDevice, compiledEffect.GetEffectCode(), CompilerOptions.None, null); I get a NullReferenceException as soon as I try to use the the effect object.... What am i doing wrong //-------------------------------------------------------------------------------------- // File: ManagedInstancing.fx // // The effect file for the ManagedInstancing sample. // // Copyright (c) Microsoft Corporation. All right ...Show All
SQL Server Writer role: db_dtsadmin but where and how?
I'd like to grant this role to a domain user. But I don't see how. tia enric vives wrote: I'd like to grant this role to a domain user. But I don't see how. tia this is a guess: add the user to the db_dtsadmin group ...Show All
SQL Server Left Outer Join versus Subquery
Hello Chaps, I have got question about the performance of subquery and left outer join My scenario is that I have two tables Customer Mater and address book. Customer Mater and address book tables hold the record for both carrier and customer. and i want retrieve the record for customer and related carrier as well i have two options 1. either use left outer join (i.e. Join Customer master to Address Book 2 times, 1 for customer and 1 for carrier) by: Address book (as customer) Left outer Join Customer Master (on related Key) AddressBook (as carrier) Left Outer Join Customer master (on related Key) 2.or use 1 join for customer ...Show All
SQL Server RPC Connection error
Hello, when I try to connect to Integrationservices remotely I go thi s error TITLE: Connect to Server ------------------------------ Cannot connect to atlante. ------------------------------ ADDITIONAL INFORMATION: Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum) For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft+SQL+Server&LinkId=20476 ------------------------------ Connect to SSIS Service on machine "atlante" failed: El servidor RPC no esta disponible. . ------------------------------ Connect to SSIS Service on machine "atlante" failed: El servidor RPC no esta disponible. . ------------------------------ BUTTONS: OK ---------------------- ...Show All
SQL Server Alternate the background color of rows
Hi! I 'm working whit a matrix. I want alternate the background color of rows. I did with table, but I don't Know how do I do with matrix. I desire something like this: column1 column2 row1 data1,1 data1,2 row2 data2,1 data2,2 row3 data3,1 data3,2 Please, if somebody can help me Thanks Please read this blog article: http://blogs.msdn.com/chrishays/archive/2004/08/30/GreenBarMatrix.aspx -- Robert ...Show All
Windows Forms Password
My friend has given me his old pc ( for my son ) which has windows 2000 on it. Problem is that he has forgotten his password. Is there a way to get around the password Any help would be greatly appreciated. Thanks It is not the BIOS unfortunately. It's the windows log on. I guess I'm SOL, because I do not have the cd/disk to reinstall either. Oh well, I'll just have to buy the boy a new one. That's my luck when I try to save a few bucks. Thanks for all the help. Rick ...Show All
Visual Basic How to launch Windows Explorer with a special path
I want so launch an Windows Explorer Window wich shuld show a choosen directory and select a file in this directory. But how S_A_S, Try the method show in thhe following link that uses VC++ 6. Maybe it is hard to implement in VB.NET and this would be a solution: http://www.codeproject.com/macro/projectexplorer.asp ...Show All
Internet Explorer Development IE7 RC1 hangs upon open - keeps trying to connect
I just tried installing IE7 RC1 onto my computer. Symantec anti-virus was disabled upon install. When I open up IE7, it tries to connect, but freezes my system. Tab stuck in Connecting... mode. The internet connection is set to Detect Automatically and doesn't have a proxy sever. I was able to connect previously when using IE6 and can connect without a problem when using Mozilla browser. Have you tried starting IE7 in no-addons mode To do so, right-click the IE7 icon on your desktop and then choose "Start Without Add-Ons." If you're able to connect, you'll want to use Tools | Manage Add-Ons to selectively enable and disable add-ons until you fgind the one that's causing the problem. ...Show All
Visual Studio 2008 (Pre-release) Setting EventTrigger's SourceName to C# Object?
I have an event trigger who's routed event is DoubleAnimationUsingKeyFrames.Completed. The actual DoubleAnimtionUsingKeyFrames object is created in the xaml's code-behind file in C#. What's the proper syntax for setting the event trigger's sourcename property to that C# object I've tried a straight-forward SourceName="myDAK" but the app throws a runtime error with the following message: 'DoubleAnimationUsingKeyFrames.Completed' value cannot be assigned to property 'RoutedEvent' of object 'System.Windows.EventTrigger'. Value cannot be null. So I'm guessing the problem is it can't find "myDAK". Suggestions Ok, so now I'm approaching it from a completely C# direction but I have a new pro ...Show All
Software Development for Windows Vista Consuming custom activities at runtime using the WorkflowDesignerControl
I am using the WorkflowDesignerControl (WDC) to create an application to provide simple enduser workflow authoring. I envision the application working something like nUint, where a user would point to a set of assemblies containing custom activities they wish to consume. The application would then... 1) Load the assembly 2) Add any types derived from Activity as custom activities in the WDC Toolbox... The problem I run into is that it seems difficult to add a custom activity at runtime. The only way I could really do it was by tinkering with the SelfHostToolboxItem class and forcing it to specifically load my assemblies. Howver, even when I do this, if I use the custom item on the design surface the WorkflowView ...Show All
SQL Server Paged Result Sets
What is the recommended mechanism for selecting paged results from SQL. Presently I pass various params including the request Max Items Per Page and the requested page. The I execute the query as a count with the search params. Then comes the paging logic, which validates the page number against the request page and number of hits etc. Then a temp table and record variables are created for the results. Then I run the query again with a cursor and select the appropriate Items into the temp table based on the paging values (First Item and Last Item). Then I return the temp table & some additional return params with the Total Hits etc. The Stored procedure is accessed via an ADO.Net client and the system.data.IDBReade ...Show All
Smart Device Development Application Configuration Info
Dear Forum users, I need to write a small app in .Net CF 1.0 and I would like to know where is the best place to store application configuration parameters and how to access them. What I would like to have is a file like App.config and a good way to access it. Best regards. Alessandro I believe SDF 1.4 is published under their Shared Source license [1]. SDF 2 is licensed differently, there's still a free version available in the form of a Community Edition but more info is available on their site [2]. [1] http://www.opennetcf.com/SharedSource/OpenNETCFSharedSourceLicense/tabid/116/Default.aspx [2] http://www.opennetcf.com/Default.aspx tabid=67 ...Show All
