ofer ebert's Q&A profile
Windows Forms Creating a custom Cell type (and editor) to display different controls based on (read-only) cells in my DataSource
I'm thinking that this might be a slightly bigger job than I anticipated when I planned out this project, but hey-ho and such. The basic situation I have here is that part of my datasource defines the functionality I want the editing control for other parts of the data to have. Let's just say that there's a "Data Type" field in each of the rows in the DataSource. Now, based on the value of that field, I would like to display one of a set of controls in an editable cell. The requirements of this range from CheckBoxes to data-entry fields to ComboBoxes. Now, I'm sort of getting round the idea of where I have to put what to get each of these customised controls working individually, but at the moment, I am at a loss as to h ...Show All
Windows Live Developer Forums Robot Invaders Contest - Who did you vote for?
The robot invaders contest ( www.robotinvaders.com ) is closed for new entries, so all bots are in. A total of 51. With $40.000 in prizes, everybody of course wants to win. But which bot do you think will make a good chance The prizes: Grand prize (1): AlienwareR MJ-12 7550 Workstation First Prize (1): BoseR LifestyleR 48 DVD Home Entertainment System Second prize (5): AlienwareR Sentia M3200 System Third prize (10): GarminR nuvi 360 User's choice: 80 GB USB Portable Drive / DX1 Input System / LED Binary Watch The bot with the most votes on September 15th gets the user's choice award. It looks like that would be " samplebot@hotmail.com " with a total of 412855 votes! Amazing. Last time I talked to that bot though it could ...Show All
Visual Studio Compile Error on machine without VS.NET 2005 installed
Hi! We're getting the following error when compiling a simple web project using msbuild on a machine that has the .NET 2.0 framework on it but not Visual Studio.NET 2005 (machine 1). Running the build on a machine that has both the .NET 2.0 Framework and Visual Studio.NET 2005 works just fine (machine 2). We're wondering what might be different between them other than VS.NET 2005 being installed on machine 2. Does anyone happen to know if the full version of Visual Studio.NET 2005 needed to use msbuild when compiling web projects Other projects (i.e. Class Libraries) compile just fine one both machines 1 and 2. Target Build: Target http://localhost/ : C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe -v ...Show All
Visual Studio Express Editions window.h not found ?
Hi: I've now been programming for almost a year with CodeBlocks and decided to switch to VisualC++ as I joined a team that is using it. So I install it and try to create a blank project: everything ok. The I add this line: #include <windows.h> Compiler says that the file does not exist so I copy window.h to the VC++ include folder along with all the other headers i had in the CodeBlocks include folder. I try to compile again and here's what i get: 1>------ Build started: Project: myOwn, Configuration: Debug Win32 ------ 1>Compiling... 1>myOwn.cpp 1>e:\applications\microsoft visual studio 8\vc\include\winnt.h(3035) : warning C4103: 'e:\applications\microsoft visual studio 8\vc\include\winnt.h' : alignment changed after in ...Show All
Smart Device Development Problem with HttpWebResponse
Hi, I have some problem with the following code : HttpWebResponse result = (HttpWebResponse)req.GetResponse(); //result.ContentLength -> 159 Stream ReceiveStream = result.GetResponseStream(); //result.CharacterSet -> "" //result.ContentType -> text/html; charset=utf-8 //result.ContentEncoding -> "" //result.Headers -> Date: Tue, 25 Jul 2006 10:58:47 GMT Server: Microsoft-IIS/6.0 MicrosoftOfficeWebServer: 5.0_Pub X-Powered-By: ASP.NET X-AspNet-Version: 1.1.4322 Set-Cookie: ASP.NET_SessionId=zmksm055kvyigzmlvxgohqe2; path=/ Cache-Control: private Content-Type: text/html; charset= ...Show All
Visual Studio Express Editions BackColor of text in TextBox
My application has a search TextBox1 containing a search term. The search results show up in TextBox2. I would like for the search term in TextBox1 to have a yellow backcolor property in TextBox2 to make it easy to find ( like this ). Here is my best attempt so far: Dim searchTerm As String = TextBox1.Text If TextBox2.Text.Contains(searchTerm) Then searchTerm.Format( Of String , BackColor.Yellow)() End If I get an error message: Type 'BackColor.Yellow' is not defined which leads me to wonder if I am heading in the right direction with this code since I am interested in defining a string property value rather than data type. Any thoughts on how to proceed would be appreciated by this VB Newbie. ...Show All
.NET Development How to do image conveting
Hi guys I need to be able to convet image types on my web server can anybody tell me how best to do this Paul That was simple does anybody know what the server hit on doing this type of work is I am working on image libarary and one of the requerments to be able to provide different size and formats images has abody got experence converting/resizing on the fly ie. keep the oringal large format on the server and convert/resize as a download stream ( load the image from the file system do the convert and the stream the the result to the client web brouser) the other way what to make diffent versions on upload as save all the version on the server which seems a waste of se ...Show All
SQL Server #Error when printing report
I have a field on a Group Footer which is a Sum field based of an IIF statement. Here it is. =Sum(IIF(Fields!EXPR1.Value=2 and Fields!Type.Value=1,Fields!Quantity.Value,0)) If I do not use the AND, by by only checking on one field it works fine and it returns a result, however if I use the AND Operator I get the #Error when previewing the report. Does anyone have any idea why this is happening. Any suggestion would help/ THanks Can you try to get more information about the #Error The output window should have something listed about your error. Jarret ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Windows competes for framerate?
Hello all, I am running a windowed D3D scene for easier debugging so I have set the scene to pause when the window loses focus. This works fine when switching between windows but there is one flaw left. When my application has the focus and my mouse moves over any item on the taskbar, a helper popup appears that describes the item below the mouse cursor. Using Winspector to monitor whats going on, this popup comes from the SysShadow class and its like competing for framerate with my application, because it wants to fade in and fade out. When it starts to fade in, the framerate drops to 2-5FPS, just like when the application loses focus. When it fades out, the framerate goes back to normal. The D3D window recieves no window messages what ...Show All
.NET Development What could be Simple solution ?
Hi, In my project a webpage facilitates Search, I have the following controls used 1-TextBox for keywords 2-ComboBox for Search Type 3-Submit Button User comes & type a keyword, select search field from combobox & press submit, I retrieve record from an Ms Access database. Using that selection I genrate a query example(select * from [TableName] where [FieldName]=[Keyword] Which control can execute this query, because gridview ask for a select statement before running the program If possible please help me with code Thanks actually no.... it for ASP.NET Web Services.... it sound confusing, but it is not actually the same ;) Rgsd Rodrigo ...Show All
Visual C++ Hotkeys
Hi Folks; I want to map some hotkeys for my Win32 app. I've used RegisterHotKey() calls for the standard keys but I also wanted to map function keys. I've looked around but can't find much info in C++. The complete list can be found here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/winui/WinUI/WindowsUserInterface/UserInput/VirtualKeyCodes.asp For some reason, the documentation for RegisterHotKey doesn’t link to this information although it is in the MSDN Library if you search for “Virtual-Key Codes”. Cheers, Kenny Kerr http://weblogs.asp.net/KennyKerr/ ...Show All
SQL Server Can not connect to SQL server 2000 on windows authentication mode
Hello everyone, We have SQL server 2000 on windows 2000. From our desktop MS Access was connected to database through ODBC. Since yesterday (after our consultant had updated another asp application in the same server) we are getting “SQL Server Error: 18452. ….. Login failed for user ‘(null)’. Reason: not associated with a trusted SQL Server connection. “ The consultant saying he did not touch any settings on server ( ). And the problem is even server’s security property shows it has mixed mode authentication. But I cannot connect to server even through my SQL server enterprise manager in windows authentication mode. I can connect if I use SQL server authentication. Through ODBC I can connect also and test fine, if I use SQL authent ...Show All
Smart Device Development Application loses focus when closing a Form - but only on one Form it happens...
Hi all, I have this strange problem/issue that I have had bothering me for a while now. I have an application where the users browses through Forms to perform various bits of functionality, and then closes the form to return back to the previous form (the Form from which it was openned), and the Focus is right back with the Form that openned the closed Form (if you know what I mean :)). Now this all works fine in my application apart from in one place, where when the called Form is closed, the calling form (or my Application even) doesn't get focus back until the 2nd tap on the application with the pen. The Windows start button and Input control on the MainMenu are focused and can be activated from the first click on them, but not my appli ...Show All
SQL Server CLR User-defined aggregate support Java/J#?
I want to write a Java User-defined aggregate (UDA). Shall I use J# I converted the C# example given in books online to J#. I am getting this error (as well as whole bunch of warning when I create the assembly.) Msg 6558, Level 16, State 1, Line 1 CREATE AGGREGATE failed because type 'Concatenate' does not conform to UDAGG specification due to method 'Init'. Msg 6597, Level 16, State 2, Line 1 CREATE AGGREGATE failed. btw, I have the use unsafe assembly options when creating the assembly otherwise I get this error: Msg 6265, Level 16, State 1, Line 1 CREATE ASSEMBLY failed because type "com.ms.vjsharp.cor.COMUtils" in safe assembly "vjscor" has a pinvokeimpl method. P/Invoke is not allowed in s ...Show All
Visual C++ How do we change the name of exe and ini file
Hello, I am having a project by name urpc and its building into urpc.exe. Now i have changed the solution file name to mm300 and when i build i am building into the same urpc.exe How to change the exe name and the ini file name now. Please suggest me some solutions. Thanks & Regards open the vcproj file or dsp file in the notepad or in any other text editor. find for the urpc and replace the text with new name. It will work fine. Note that if you rename the CPP or header files or some other file in the same name, you may have to rename the corresponding files manually. especially resource files. ...Show All
