osamaT's Q&A profile
Visual Basic Creating a component inherits from a windows forms control
Hey All, I have a question, I want to create a class which inherits from a Windows forms controls, for example a "Combo box". Like : Public Class SampleCombo Inherits Windows.Forms.ComboBox 'New Events 'New Methods 'Other codes End Class After I create the new class I want to use it on my applications. I can easily include the newly created class to my project with code. -- Friend With Events NewCmb As SampleCombo . But I want to be able to see the new class (or component) in my tool box just as the other components. What kind of steps should I take Thanks for your time, Regards Ayhan ...Show All
SQL Server Scary Problems with User Hierarchies
In my training (at MS Ascend) and in my readings I was initially lead to believe that user hierarchies were nothing more than a way to "organize attribute hierarchies into user-friendly multilevel structures." (Spofford et al.) However, the more I use SSAS 2005, the more I see that this is not completely true. User hierarchies have more significance. For example, user hierarchies seem to be used more than you might think (or want) in the design of cube aggregations. More recently I discovered a very scary and unintended consequence of building and using user hierarchies. Consider a simple product dimension with three attributes (besides the key): Product Type ([Type]) Product Species ([Species]) Product Size ([Size]) Th ...Show All
Visual Studio Express Editions Removing Projects From VB2005 Express
How can I remove projects from MS VB2005 Express Edition. I removed them once before using the Registry, however, I have forgotten that procedure. Any help appreciated. To remove the project from a current solution right click on the project name in the solution explorer and then click remove (as ahmedilyas stated) To remove the file from MRU list... Edit the registry at your own risk....take a look at Software\Microsoft\VisualStudio\8.0\PrijectMRUList ...Show All
Visual Basic Returning UNC from Map Drive Dailog
I am writing a simple form that allows the user to browse for and map a drive. I need to return the resulting UNC map from the function. To data I have been able to open the map drive dialog and return a one or zero. Here is the code: Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_mapdrive.Click ReturnValue = WNetConnectionDialog( Me .Handle, RESOURCETYPE_DISK) txt_servershare.Text = ReturnValue.toString End Sub Private Declare Function WNetConnectionDialog Lib "mpr.dll" ( ByVal hwnd As IntPtr, ByVal dwType As Integer ) As Integer Thanks for the quick reply. OK, stupid quest ...Show All
SQL Server Performance
I am developing an application which uses SQL Server 2000 as database engine, all connections are made using "sa", and my sa password. My question is: I might have implementation for over 350 concurrent users, using the application at the same time. How can I verify that SQL Server will not face any performance issues Any particular specifications for the Server that SQL server will be installed upon should I use multiple File Groups, or seperate Log File on a Hard disk and Data file on another Hard disk Please if you have any documentation that provide real time performance testing of SQL Server with more that 350 users, it would be a great help. P.S: My database is small (about 130 tables), most of them are only listings (user ...Show All
Visual Basic Debugger problem "The breakpoint will not currently be hit. No symbols have been loaded for this document
There was a similar question posed on the C++ forum back in February to which I responded yesterday, but unfortunately, did not get a response. I am therefore putting this question in the VB forum. I have a VB 2005 project which is actually an add-in to Outlook 2003, which was I was able to debug fine until earlier this week. Now I cannot debug it at all - the message in the subject is displayed when I hover the mouse over the breakpoint which shows a yellow icon in place. Can anyone here tell me what I should do to correct this I too have a similar problem, but I do not see any way to specify a "Debug" build. My project is a class library and I can only Build it. If I hit F5 it forces the ...Show All
SQL Server Newbie question - Getting the headcount at the beginning of the year using OpeningPeriod
Hello, Here's a newbie question that I am having a heck of a time figuring out... I want to return only the balance at the begining of the year. My time dimension has a hierarchy as follows: -Fiscal Year --Month ---Period I then created (from the template) a Calculated Member that does return the number. However, as you can see, it is only from Fiscal Year 2006, the first period (Period Number = 1) Aggregate ( OPENINGPERIOD([Dim Row Date Vw].[FiscalYear - EnglishMonth].[Period Number], [Dim Row Date Vw].[FiscalYear - EnglishMonth].[FiscalYear].&[2006].&[1]), [Measures].[ACTIVE] ) How do I change this so it pulls from the first period for each year, at the beginning of that year Thank you for the help. ...Show All
Visual Studio Sandcastle Help file - First page is blank except for a warning icon.
Hi Foks, First let me say, GREAT product. I can't wait to see it develop further. Second, I'm having a problem. Every help file I create with Sandcastle results in a CHM file that has a blank opening page. The Namespaces node is selected, but the Namespaces help page isn't displayed unless the user clicks on the root node again. Any ideas Thanks! George It certainly appears you're using the August CTP. All the versions you mentioned above (include hhc.exe) are exactly what I'm using. I'm also using .NET 2.0 and do my builds via the command-line tools. [ I've been planning on trying out Eric Woodruff's GUI front-end. ] It may be a bit of a wild goose chase, but what version of hh.exe are ...Show All
Windows Forms RichTextBox font size mismatch with a label
I have a custom control that is a RichTextBox combined with a Label. They have the same Font (i.e. label.Font = this.Font; where I have extended the RichTextBox class), but the label's font does not align properly with the RichTextBox's (i.e. it appears smaller than that of the RichTextBox's). I have been unable to determine why this is. Does anybody know what would be the cause of this ...Show All
SQL Server Index creation in SQL Server 2005 Management Studio - Page locks disabled by default
When I create an index on a table using SQL Server Management Studio, the index has page locks disabled by default. I'd prefer to have page locks enabled by default so neither I nor any other developer has to remember to manually modify. How can I accomplish this Thanks, Pat Brickson The default settings for new indexes are hard coded in the dialog to match the defaults in SQL Server if you don't specify any options. There is no way for end users to change these defaults in the dialog. Thanks, Steve ...Show All
Visual Studio Released.
We did code complete of documentation compiler ( code named "Sandcastle") on June 15th and currently we are testing the tool building our .NetFramework documentation. We would like to release the CTP version of Sandcastle in Microsoft download center by next week. The perf in our testing has been great as we are able to build the entire framework content in less than 1 hour. I am in the process of going through final check and code signing required to post this in our download center. Please expect the CTP in the next week or so and I will provide an update here as soon I post the CTP. Anand.. Great, Thanks. Will this handle non-standard tags (exmple: nested tags named: objects, object, parameters) Will sandbox render th ...Show All
Windows Forms BindingSource.AddNew from a DataGridView
I have a DataGridView bound to a BindingSource whose DataSource has been filled from a SQL table. A dgv popup menu offers an 'insert a copy' option, ie it allows the user to insert a new row initialised to values in the row under the mouseclick. I cannot insert rows at dgv level because direct dgv inserts are not permitted when a dgv is bound; evidently .NET 2 evidently wants me to use BindingSource.AddNew. Very well, I add a handler to be called by BindingSource.AddNew ... bindSrcMaster.AddingNew += new AddingNewEventHandler(bindSrcMaster_AddingNew); The popup menu item event handler for CopyRow can figure out which dgv row to copy ... private void CopyRow(object sender, EventArgs e) { ToolStripItem menuItem = sender as ToolStripItem ...Show All
Software Development for Windows Vista DirectShowLib
I am using DirectShowLib C#, I want to know which class in DirectShowLib is Equivalent to IAMCameraControl or ICameraControl Hi Eman, I took a quick look at the Interfaces.txt file that came with DirectShowLib and in the (Untested/deprecated...etc) interfaces I found the IAMCameraControl. In order to use it in DirectShowLib, you need to compile the DirectShowLib library with the conditional compilation symbols: "ALLOW_UNTESTED_STRUCTS;ALLOW_UNTESTED_INTERFACES" After that the IAMCameraControl interface is accessable in the Library. As for the ICameraControl, I have no idea where it is :). I hope this was of help. Regards, Fadi ...Show All
.NET Development Some useful classes in .NET
I have ideas about some useful classes to be created in future versions of .NET. I don't know where to post it so I post it here. Here they are: 1) Generic hashtable (it's useful when you have objects of one type in it, it helps to avoid many typecasts) 2) Array with arbitary intexes(including negative) 3) Math.Max(params ...) - Max function for many variables (int. arrays of variables) 1) already exists. It's the Dictionary<K,V> class from the System.Collections.Generic namespace: http://msdn2.microsoft.com/en-us/library/xfhwa508.aspx 2) this is somehow supported by using Array.CreateInstance method but since it's not supported by C# it's not very useful. However I doubt that C# will ever add support ...Show All
SQL Server error message....
hi I have the followin code but it isnot working giving the following error message String or binary data would be truncated. The statement has been terminated. string sqlStrInsert = "insert into tbl_izinTalep (b_date, e_date, info, cc, comment) values('" + dateTimePicker1.Value.ToString() + "' , '" + dateTimePicker2.Value.ToString() + "','" + textBox2.Text + "', '" + textBox3.Text + "', '" + textBox4.Text + "')" ; SqlCommand command = new SqlCommand (sqlStrInsert, conn); command.ExecuteNonQuery(); thanks if this forum is out of my topic, please write the related forum's name hi, Jens already prov ...Show All
