vijayjun's Q&A profile
.NET Development Catch SelectedIndexChanged in ComboBox Array
Hi, I'm using a comboBox Array and i dunno how to catch the SelectedIndexChanged since the comboboxes are only created in runtime. Dim bjoga(11) As ComboBox For j = 0 To 9 bjoga(j) = New ComboBox() . . . bjoga(j).Location = New Point(150, j * 30 + 50) bjoga(j).DropDownStyle = ComboBoxStyle.DropDownList bjoga(j).Sorted = True bjoga(j).Size = New Size(New Point(200, 21)) TabPage2.Controls.Add(bjoga(j)) Next j Any ideias Thanks Well i sort it out by myself so if anyone is interessed here it goes: sub createComboboxes() Dim bjoga(11) As ComboBox For j = 0 To 9 bjoga(j) = New ComboBox() . . . bjoga(j).Location = New Point(15 ...Show All
Visual Studio Tools for Office Microsoft Office Professional Edition 2003 Upgrade from what?
Microsoft Office Professional Edition 2003 Upgrade Upgrade Eligibility Determine whether your current version of Microsoft Office qualifies you for the $329 US upgrade price. The following products qualify: ? Microsoft Office XP Office XP Developer, Office XP Professional with FrontPageR, Office XP Professional Special Edition, Office XP Professional with Publisher, Office XP Professional, Office XP Small Business Edition, Office XP Standard ? Microsoft Office 2000 Office 2000 Developer, Office 2000 Premium, Office 2000 Professional, Office 2000 Small Business Edition, Office 2000 Standard ? Microsoft Office 97 Office 97 Professional, Office 97 Small Business Edition (version 2), Offic ...Show All
Visual C++ CFileDialog : save button change to open
Hi My class inherited from CFileDialog . When I open the dialog at Save mode and I select any item the button of the ‘Save’ become to ‘Open’ It’s reproduce on Win XP only . Does anyone know how to fix this issue Please have a look at the following articles. It will help you http://support.microsoft.com/default.aspx/kb/195034 http://www.codeproject.com/dialog/xfiledialog.asp ...Show All
SQL Server SQL Server 2005 SP2 MDX Changes
Hi all, Upgrading to SP2 changes the way that MDX behaves, as described in the readme ( http://download.microsoft.com/download/2/b/5/2b5e5d37-9b17-423d-bc8f-b11ecd4195b4/ReadmeSQL2005SP2.htm#_analysis_services ). Can anyone tell me what best practice is to make a query like the one below work as before: WITH SET [Branches] AS '[Branch].[Branch Name].[All].CHILDREN' MEMBER [Measures].[Letters] AS '([Measures].[Contact Count], [Contact Type].[Type Description].[Letter])' MEMBER [Measures].[Letters All Branches] AS 'Sum({[Branches]}, [Letters])' SELECT {[Letters], [Letters All Branches]} on 0 FROM [Communication] WHERE {[Branch].[Branch Name].[Branch 1], [Branch].[Branch Name].[Branch 2 ...Show All
Visual C++ Blank screen while creating a win32 project in vs 2003
Last week I created a C++ project and by mistake instead of making it a win32 project I made it a .net project. I realized this and deleted the .net project and then tried to create another project with the same name, but this time it was win32 console application. Now I am not able to create win32 projects any more. All I get is a blank screen when I slelect win32 console project (and select any name for the project). Is there some directory or registry entry that I need to reset Thanks for any quick help! Hari Let me see if I can make my problem clearer. When I try to add a new VC++ project and choose win32 console project, the window that shows up where enter the properties such as name, etc. is completely blank an ...Show All
.NET Development writing EventLog entries - how to specify User field?
So I'm porting an application from C++ to C#, and right now I'm working on the module that writes entries to the Event Log. So far, everything is going very smoothly, but I'm stuck on one problem. In the C++ version, I use the ReportEvent API, one of the parameters to which is a PSID (which I initialize to the currently logged in user). In Event Viewer, the "Name" field is properly set to the user.. In C#, the two relevant System.Diagnostic methods are WriteEntry and WriteEvent. Problem is, the former has no provision at all to supply any user info, and the latter takes an EventInstance object, in which there are also no user-related properties. I have test code using WriteEntry and confirmed that the Name field is not set. I hav ...Show All
Visual Studio 2008 (Pre-release) Supported versions, live release, etc related questions
I'm working on a Smart Client application using .NET 2.0, SQL CE 3.1, and SQL Server 2005. The sync technology I'm using is merge replication, but as is specified on several sites related to the new Synchronization Services, having so little control over the process is frustrating at times. My application is a new project and thus is still in development\beta. I suspect it will be at least six months before we attempt to put it in a customer's hands. My intent is to use .NET 2.0 for the initial release. I've been keeping up with progress of Sync Services for a few months now, but have not downloaded any of the CTP bits. Before I do that, I have a few questions that may determine whether or not I should just stick with merge replicati ...Show All
SharePoint Products and Technologies hide headers
Hi we are using headers in our site to group sites. These sites are not viewable with anonymous acces. Now the problem is you can still see those headers when you are anonymous. Is there a out of the box solution thx for any help, Joost ...Show All
Visual C++ XML file operations in MFC
Hi , I have to write data such as names into an xml file. can anyone tell me how to open and write data in an XML file using MFC . Thanks Adithi wrote: Thank u both for replying. Can u plz shw me hw to write a small program to add data to the xml file. have alook on the Following Link http://www.codeguru.com/forum/search.php searchid=1765516 Thanx ...Show All
Visual C# How to do a Debug Build?
Ok, its been a long week. I have a Window service and I click on Build and it builds it in Release mode. How do I change it to debug mode I've got the Configuration Manager dropdown on my toolbar but its grayed out. What am I missing here Thanks, Greg Greg, If the drop-down is greyed out it's probably because the Tools | Options | Project and Solutions | "Show advanced build configuration" option is unchecked. Try enabling it and see if you can change the configuration then. Anson ...Show All
SQL Server How to set execution priority for certain Stored procedures ?
On our heavily used data warehouse server where some reports running for tens of minutes and sometimes for hours, we have some processes that we want to execute within seconds . Ideally this stored procedure executes within 1 sec on empty development server where no heavy processes are running. But on our production data warehouse it may take over 30 sec because it has to wait in queue to obtain server resources such as CPU and I/O. I am wondering whether SQL Server 2005 has such feature to set high priority for certain stored procedures to by-pass other processes in queue and thereby to reduce wait time Thanks. Unfortunately, not. There is no hidden "Turbo" button. Instead ...Show All
SQL Server Built-in data types in SQL Express: best practices?
Greetings, I think these should be rather simple questions, yet I spent a number of hours last night digging through the forums here and msdn and couldn't find any satisfactory answers. Basically, there tend to be types of information that are commonly saved in most databases, like names, addresses, phone numbers, email addresses, etc...and there are a variety of built in data types in SQL Server. What are the best built in datatypes for some of the common entries in a sql database. Also, there are a number of character based types and I am curious why one would be more useful in certain situations than another. Why is there char( ), nchar( ), varchar( ), nvarchar( ) and text datatypes Why so many Also, what is the "text" ...Show All
SQL Server Error when deploying report to server
I'm trying to deploy my report to the server but keep getting the following error. does anyone know how to fix or is there some steps on how to set up the server to allow this Error 1 The permissions granted to user 'GIP-SQLTEST\IUSR_GIP-SQLTEST' are insufficient for performing this operation. 0 0 Thanks, it a local system account on the SQL Box, you will find however it has no rights by default to your db. You will see it if you look at the config settings of ssrs on the server ...Show All
Internet Explorer Development YouTube is not working on IE7
Friend of mine was trying to show me a video that my friend made, so he uploaded it through YouTube. He gave me the link to view his video on YouTube. The video doesn't play on IE7, but does play on IE6. I tried to enable all ActiveX, no luck. Is there any alternative Thanks for you time. I’m the designer of www.benmail.org site (benefic e-mail system) There is a link for a YouTube video. It runs ok with IE6, but IE7 users can’t watch the video. Any solution Thanks ...Show All
Visual Basic where does SubClassProc come from ??
in the AddressOf SubClassProc below ; Delegate Function SubClassProcDelegate(ByVal hwnd As Integer, ByVal msg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer Declare Function SetWindowLong Lib "USER32.DLL" Alias "SetWindowLongA" (ByVal hwnd As Integer, ByVal attr As Integer, ByVal lVal As SubClassProcDelegate ) As Integer Sub SubClassWindow(ByVal hwnd As Integer) If PrevProcPtr = 0 Then PrevProcPtr = SetWindowLong(hwnd, GWL_WNDPROC, AddressOf SubClassProc ) End If End Sub in my code defWindowProc = SetWindowLong( Me .Handle.ToInt32, MessageHandler.GWL_WNDPROC, AddressOf SubClassProc) it says that SubClassProc is not declared. But I don't know where to declare it.... ...Show All
