Software Development Network Logo
  • Microsoft ISV
  • .NET Development
  • Smart Devicet
  • VS Team System
  • Visual C#
  • IE Development
  • SharePoint Products
  • SQL Server
  • Visual Studio
  • Audio and Video
  • Visual Basic
  • Visual FoxPro
  • Visual C++
  • Windows Forms
  • Windows Vista

Software Development Network >> Alen1342's Q&A profile

Alen1342

Member List

mammoo
adorer
http://www.ilkon.com
Devi48354
mahima
baswegan2
Fistandantilus282303
mammoo
cplusplus1
tamccann
medel
Lil endian
Avotas
Daikoku
Indirani
Niels Flensted-Jensen
Latso
pblecha
tolily
Pooja Katiyar
Only Title

Alen1342's Q&A profile

  • Internet Explorer Development IE7 div not stretching to fill width

    I keep getting this and I can't find the fix to it anywhere.... please help! When a div doesn't have enough content to fill the width of the area the div doesn't fill the whole width. A gap will appear at the end of the div in IE7 browsers. I don't want to have to set fixed widths for the middle content section so that it can shrink to fit re-sizing the browser. I've tried everything I can think of. Setting the width to 100% breaks it because the left navigation pane or right pane will no longer float. It's probably something really obvious so I can't find it on blogs. Floats, display states and random bug fixes I've found for IE7 don't seem to work. Thanks!! Hi, I have the same problem with IE7 ...Show All

  • SQL Server Align Calculated Members and Measures

    Hi I created two calculated member: CREATE MEMBER CURRENTCUBE .[MEASURES].[Penetracion] AS IIf ([Measures].[Surtimientos] = 0,0,[Measures].[Seguros]/[Measures].[Surtimientos]), FORMAT_STRING = "Percent" , VISIBLE = 1; CREATE MEMBER CURRENTCUBE .[MEASURES].[Calidad] AS IIf ([Measures].[Seguros] = 0,0,[Measures].[Prima Seguros]/[Measures].[Seguros]), FORMAT_STRING = "$#,##0.00" , VISIBLE = 1 ; I have two measures called [Measures].[Surtimientos] and [Measures].[Seguros] and both have its FormatString property #,#. When I browse the cube the measure and calculated meber values ared formated but they have left alignment. If I take away the FormatString they have righ ...Show All

  • Visual C# Help on creating my first Collection

    Am struggling, please help! (entry level help required please.) I have created a two classes in my namespace, one for Shareholder and one for Shareholders. When I try to create a list in the Shareholders class, using the following syntax: private List<Shareholder> shareholderCollection = new List<Shareholder>(); I get the following compile errors: - Error 1 Invalid token '(' in class, struct, or interface member declaration - Error 2 Class, struct, or interface method must have a return type - Error 3 Type expected What am I doing wrong TIA, JackStri. Thanks Michael. Managed to sort this out; turned out to be a field definition that was in the wrong place, and thus c ...Show All

  • Windows Forms drawstring problem

    here is the my class // DataGrid  public public void PrintGrid(Graphics e)    {     Ypos = 150;    for ( int n = 0; n < this .DataGrid.Rows.Count; n++)     {                Rectangle abc = Rectangle.Empty;                Xpos = 40;            for ( int i = 0; i < this .DataGrid.Columns.Count; i++)            {                abc.W ...Show All

  • .NET Development Xml index in parent

    Hello, I have a XmlNode object and I want to know its index in its parent. the following code does the job but the performance is poor. any idea thanks public int getIndex(XmlNode node) { for ( int i = 0; i < node.ParentNode.ChildNodes.Count; i++) if (node.ParentNode.ChildNodes.Item(i).Equals(node)) return i; return -1; } You could try with XPath, check yourself whether that is faster. Approach in pseudo code is e.g. public int getIndex (XmlNode node) { if (node.ParentNode != null) { return node.SelectNodes("preceding-sibling::node()").Count; } else { return -1; } } ...Show All

  • Windows Live Developer Forums SP1 TO SP2

    I BOUGHT A GENUINE WINDOWS XP HOME EDITION IN 2003 WITH SP1. NOW I UNDERSTAND THAT MAJOR ORIGINAL WINDOWS DOWNLOADS ARE ONLY POSSIBLE WITH SP2 CAN ANUONE GUIDE ME HOW CAN I DOWNLOAD SP2 OR IN OTHER WORDS CONVERT MY SP1 TO SP2 ITS REALLY URGENT These forums are for discussing windows live development, not support. Start->All Programs -> Windows Update. ...Show All

  • Windows Forms Web Browser Control cookies

    Hey, I am using a combobox to show the URL you are at on the webbrowser control, and I made it so that when you press the Go button it will add the Url to the Combobox list... WebBrowser thiswebpage = GetCurrentWebBrowser(); // Get the currently displayed WebBrowser URLtextbox.Items.Add(thiswebpage.Document.Url); But wehn I look at the combobox it has the webpage URL you were jsut at about 10 or more times in a row...So it is saving the cookies more then once, how do I fix this Thanks :) ok, so now it is URLtextbox.Items.Add(thiswebpage.Document.Url.ToString()); and it adds only one. BUT how would you make it so if it already is in the dropdown then it will not add it again Thanks ...Show All

  • Software Development for Windows Vista Problem with maximized MDI child window

    I have a straightforward MDI application with four MDI child windows. The MDI client window fills the entire client area of the application's top-level window. Everything works correctly on Vista except in this one circumstance: If the application's top-level window is maximized *and* one of the child windows is maximized, the child window does not fill the width of the MDI client window (and hence of the screen). There is a strip (perhaps 10 or 20 pixels wide) down the right-hand side where the previous contents of the MDI client area can be seen - it is not repainted. If the top-level window is not maximized all is well: the maximized child window extends to the right-hand edge. If the top-level window is mazimized but the client w ...Show All

  • Windows Live Developer Forums Web Services

    Hello guys, and gals its another day another doller, I hope. Todays question is about web services. In my gandering around the MSDN forums I keep comming accross web services. These nifty little bouts of code allow you to access a function from a webpage that is not normaly available. Thats a great thing and like the Live Search, Custom Domains and a few other's on live.com it can be really handy. Does the Live Web Messenger at http://webmessenger.msn.com/ have a web sevice My current project is going in the direction of a a stand alone web service client! By using Live ID, my client is hopeing to authenticate the user (his employees), then the user will be able to access alot of diffrent online functions which will configure the applicati ...Show All

  • SQL Server SQL statement troubles finding maximums.

    Hello everyone! Here's the deal. I have a table that contains data for contracts each time they are brought to our attention for a review. The first column in the table contains the contract number, the second column contains which review number the data is associated with (the first time it was reviewed, the second time, third, etc.). I need to make a subtable that contains the records from the last review of each contract. The problem is that, of course, each contract can and will have different numbers of reviews than most other contracts. I know how to use the max funtion to return the largest review number of the table, but this doesn't help because not all contracts have that many reviews. Is there any way I can accomplish this us ...Show All

  • Windows Forms SelectionStart for control object

    I have several textboxes that I only want the user to enter numbers into. So I wrote a little routine to do this for a specific txtbox. I added the code txtbox.SelectionStart=100; to ensure the cursor always ends up at the end of the numbers. Worked fine until I moved the code to it's own procedure (probably I should call it a method) anyway... private void DelText ( Control tb) { Regex Num= new Regex ( "[0-9]" ); int l=0; l=tb.Text.Length; for ( int i=0; i<l; i++) { if (Num.IsMatch ((tb.Text.Substring (i, 1)))) { } else { tb.Text=tb.Text.Substring (0, i)+tb.Text.Substring (i+1, l-i-1); } } tb.SelectionStart=100; } now I get 'Control does not contain a definition of SelectionStart', Ho ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Custom Content Manager - Generics Question

    Greetings & Salutations: I am trying to put together my own kind of "Content Manager" as the current one appears to only work with content that has been added to the project, and not with say, a file on a network drive somewhere. I really like how the "XNA ContentManager" uses generics, and was trying to implement it myself, but encountered some errors. I looked on the net but couldn't find the answer I was looking for. Basically, I would like to be able to fetch any kind of asset from my own content manager, regardless of what it is . The following function does not work as it is written. Could someone point out the proper way something like this is supposed to be implemented (PS. The content is stored in dicti ...Show All

  • Visual Studio 2008 (Pre-release) Chroma keying on video in WPF

    Hi, I'm wondering if it is possible to do chroma keying on video's in WPF. If it is possible, how do you do it (sample ). If it is not possible, is this feature on the roadmap Best regards, Kris No, it's not possible. We don't have plans to support chroma keying. Instead, we plan to support alpha channels, which are even more powerful because they allow partial transparency. Tom ...Show All

  • Smart Device Development TextBox OnClick

    (Compact .Net 1.0) TextBox does not have a OnClick EventHandler to use. So I created my own TextBox class and subclassed TextBox and I override OnClick. This compiles but when clicking on the TextBox the method never gets called. Is there any way to get notified when the TextBox is clicked or selected I tried catching the OnGotFocus event, that works great except if the focus is already on the TextBox and the user click on the box again. I need something to capture this case and OnGotFOcus does not get fired. Anu suggestions Thanks You can hook the underlying WM_LBUTTONDOWN or WM_LBUTTONUP message and do with it what you want. See this article for more information: "Subcla ...Show All

  • Visual Studio Tools for Office Excel 2003 addin with actionspane

    Hi I have created addin for Excel2007 using CustomTaskPane in C# VS2005, VSTO, works geeat, but my client need to run addin in Excel 2003. How cand I show my customcontrol in ActionsPane Source code would be verry usefull! TIA Paul Is your addin a workbook addin or application Actions panes don't work in 2003 application addins unfortunately. I've tried quite extensively to get around it with no success. ...Show All

©2008 Software Development Network