Sameer C T's Q&A profile
Visual Basic VB6 Image control in VB2005 used as feedback device in a picture
In VB6 I used Image controls to give visible feedback when the mouse moves over a 'sensitive' area in a picture: set the borderstyle to fixedsingle and set it back to none when it's outside. I am looking for a simple equivalent in VB2005. VB6 Image controls are transparent, but anything I can find in VB2005 in the form of (user-) controls is opaque (right ) and requires a lot of hassle with the underlying image. So the functionality I am looking for is to let the user know where on a picture he can click, for further info and whatever. Without ruining the picture (a bitmap in a picturebox on a panel). Should be easy, but can't find any help in the help. Help! Hi - I've been playing with this a bit b ...Show All
Visual Studio Tools for Office Error loading type library while creating Word projects
This has now happened to me twice. One day VSTO works fine. The next day when I try and create a Word project I get the following message in both VB and C#: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)) I can create Excel projects just fine. Running repair on the VSTO Runtime solves the problem. Anybody have any ideas as to why this happens and whether it can be eliminated Robert Hi, You might try downloading regmon.exe from www.sysinternals.com (recently aquired by Microsoft) and watching regkeys when you try to create a project. Although this will generate a huge log as the system is touching regkeys all the time, you should be able to ...Show All
Software Development for Windows Vista Getting UAC and ACW-like fade effects
Hello all! I am looking for an API that exposes the fade effects we see in Windows Vista. That is, the effects where the screen fades to black, and one window is highlighted above the rest. Examples of this that can be found in Vista are: -> UAC Prompts -> Active Content Wizard help topics -> Windows CardSpace control panel (oddly enough) I have looked for quite a while, but found nothing. Thanks a lot! Karl No new APIs needed. SetLayeredWindowAttributes from Windows 2000 still works on Windows Vista. A little playing with Spy would have revealed this. ...Show All
Architecture Application design challenge
Hi.. This is my first post on here, so I hope I hit the sweet spot by posting it here. I've been given an interesting challenge and I can't seem to come up with a grand solution, so I could do with some help. The idea is that I am to design an application for a language center. So far the center consists of two physical locations, out of which one would be considered both learning center as well as "HQ". What they want is a fairly simple application that enables them to enter student registration, classes (no planning involved) and payments made/due. Each location has their own administration; HQ is to be able to look into the data of every location. I came up with several approaches (in terms of which language to develo ...Show All
SQL Server Reporting Services: Allow Blank Value for a multi-valued Parameter
I have a multi-value parameter "Keyword" that also allows blank value. When I try to view my report with a default null Keyword value, it doesn't display any. Please help. Thanks! Gerri I assume you want to return everything if the parameter is null, right does you query support null parameters For instance, if my query says: select * from table where field IN(@parameter ) not sure of the technical way to explain this, but a null parameter would return no data because null is not a value in "field". In fact, I doubt that a null parameter would even result in a dataset where the value of "field" is null (never thought about it). I would guess, (disclaimer - I cou ...Show All
Windows Live Developer Forums Maintaining map location and zoom between postbacks
I have an ASP.NET page that uses javascript to load and display some pushpins from an xml file on page load. The locations are in different categories. Each time I select a different category from a dropdown list, the correct set of pushpins is displayed but the postback causes the map to reload at the original center and zoom level. Is there a way to avoid this, and keep the current location and zoom level between postbacks Any examples Apologies if I am missing something obvious... If you are using 2.0 then you could take a look at using callbacks instead of postbacks, but it all boils down to needing to do a lot of the manipulation using Javascript and Ajax - Everytim you do a postback the map &q ...Show All
Visual Basic Updating a bit field with a VB checkbox and a Stored Procedure
I have added a checkbox to a visual Basic windows application. I would like the checkbox when clicked to run the following stored procedure in order to change the bit value in sql server to 1: Create proc [dbo] . [Checked] @id int as update Check set Checked = 1 where ID = @ID I'd like the following stored procedure to run when the box is unchecked. Create proc [dbo] . [UnChecked] @id int as update Check set Checked =0 where ID = @ID Is this a standard process And how can I accomplish this I am using VS2005 and SQL Server 2005 Express Edition. Also I am in the dataset window. I am not sure which to add a datatable, tableadapter, or a query ...Show All
Windows Forms how could i work with data in a form?
Hello to all experts... i have a form with already had a button for ADD/EDIT/DELETE & NAVIGATION BUTTONS for browsing next record,previous record,top of records & bottom of records...and also i already attached a table from a data source using ODBC from an MS SQL server2000 database my problem is how do i make a code for adding a new record in add button, a command for saving the record, delete a certain record , browsing next record,previous, top to bottom. thanks for any help...sorry for this questions i am new to this language and doesn't know where to start, and doesn't know how could i make things easier for me to start with.. thanks...and any help deeply appreciated Take a look at this download: 101 Visual Basic and ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Microsoft.Samples Samples is not a member of Microsoft
When I'm trying to use the Microsoft.Samples.DirectX.UtilityToolkit in Visual Basic Express, an error pops up saying that samples is not a member of microsoft. :( I don't understand what the problem is I already downloaded the new directX SDK. Thanks The DirectX utility kit is written in c# and therefore will not compile in VB Express. If you want to use Express products you need to get c# express (also at the bargain price of $0) and compile the DXUT classes to a class library. Then you can reference this class library from VB Express. ...Show All
Visual C++ Reporting Visual C++ bugs to Microsoft
I have reported a number of Visual C++ 8.0 bugs to Microsoft at their bug reporting site at https://connect.microsoft.com/VisualStudio/Feedback . Currently, and for the last month and a half, I have two bugs which I have reported directly to Microsoft, after being ignored on the web address above, which still have not been resolved. Other bugs which I have reported to Microsoft at the web address above have gotten comments from Microsoft ranging from an arcane and onerous workaround, which no one can rightfully use, to "Thanks for reporting the issue! One of our team members is currently looking into it", and then the bugs are closed with evidently no acknowledgment that the bug actually exists or needs to be fixed or that anybod ...Show All
SQL Server unique which allows multiple nulls
Hi, I have a non-cluster index on the filed, I need to make it non-cluster index and unique which allows multiple nulls, how should I do this with an sql statement Looking at the above code, it doesn't really solve the request to have a unique index/constraint that allows multiple nulls. IUf I execute insert into dbo . base ( n ) values (null) twice, it works fine the first time but the 2nd time it fails b/c you can't have multiple NULLs in a unique index. There is no way that I can think of that a unique constraint/index can solve this problem. What about keeping your non-unique non-clustered index and then building an AFTER trigger to enforce the uniqueness but allow for NULLs Is that an option /********** ...Show All
Windows Forms how to make the form expand dynamicaly when it maximize???
I want my form to expand regularly with the window when the window maximizes .... If you mean you want your control to resize with the window, look at the control's Dock and Anchor properties. Or do you mean MDI child form inside the main form ...Show All
Visual Basic How to display Non-True Type Font (draft 12 cpi) from Crystal Report in VS.NET 2003
Hi guys! I need your help... I want to use draft font 12 cpi in crystal report and print it to Line printer (Impact printer). I have already changed the font to draft 12 cpi, a non- True Type font, in the report designer but the problem is when I try to use it for printing or when I use the Crystal Report Viewer. The font is reverted to Arial, I think, which is a true type font. My question is how can I use non true type font in Crystal Report and view it to Crystal Report Viewer correctly Do you have any suggestion to fix this problem Thank you Draft font is available for the printer that I used. In fact the font that I used comes from the driver of the printer. I already set the printer t ...Show All
Visual Basic Passing variables between forms
My program has several forms in it. There is a form that has some buttons and when i click each button i want text to generate from that button to a textbox on another form. If you know anything about this i would appreciate it. Thanks!! take a look at this and you can modify it easily to set the values of a textbox on this other form when "passing" variables http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=760400&SiteID=1 so on your second form you can make a public property: public property SomeText() as String get return Me. theTextBox.Text end get set (ByVal value as String) Me. theTextBox.Text = value end set end property then on your ...Show All
Windows Forms plz HELP!! it's making me crazy!!
I am using this code.. calling ping_to_host() from a timer every 5 seconds and eveything is fine until it reachs the last row in the listview (let's say index=16).. it should then go back to index = 0 but it's failing with an invalid row index= 17.. but i don't have this crazy index 17 and i really don't know why it's adding one more index though i have mentioned: for (listview_item = 0; listview_item <= lstHosts.Items.Count - 1; listview_item++) this is the code: public void ping_to_host() { CheckForIllegalCrossThreadCalls = false ; listview_item = 0; for (listview_item = 0; listview_item <= lstHosts.Items.Count - 1; listview_item++) { string data = "aaaaaaaaaaaaaaaaaaaaaaa ...Show All
