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

Software Development Network >> Anwar Hussain's Q&A profile

Anwar Hussain

Member List

rusty coder
Dr. Chris
Cindy Meister
Michael Barrett
Al6200
Pirooz Javan (Old)
smileyke
stiflersmom100
kok_cz
Emre Çetinkaya
Egyptian
Michael Hansen
ShadowRayz
NST
TobyM
axl
CHolmes
dbdog
SnowJim
brother14th
Only Title

Anwar Hussain's Q&A profile

  • Smart Device Development System.Thread.Timer help

    Hi, I was hoping some could help with a threading issue that uses a timer. I would like to have a piece of code execute every 10, 15 or 30 minutes. (users choice). So, as users are using the application every ten minutes I need to do write something to the database. Sorry I am so unfamiliar with the System.Thread.Timer object I do not even no wherre to begin. Any help would be greatly appreciated. A logical first step would be to get familiar with it, e.g. by reading MSDN article. I would assume you can't find it because your namespaces are wrong, so here it is: http://msdn2.microsoft.com/en-us/library/system.threading.timer.aspx Also please read this, item #7 and #17and ask specific question ...Show All

  • Windows Live Developer Forums Count pushpins in VeLayerSpecification

    Hi, I'm adding a number of pushpins using a VELayerSpecification use a dynamically generated GeoRSS file. What I'd like to do is count the number of pushpins that are genereated. Is this possible Or can I somehow pass the information in the GeoRSS and pick it up somehow Cheers Mike from the iSDK: function AddMyLayer(type) { var veLayerSpec = new VELayerSpecification(); veLayerSpec.Type = type; veLayerSpec.ID = layerid; veLayerSpec.LayerSource = txtSource.value; veLayerSpec.Method = 'get'; veLayerSpec.FnCallback = onFeedLoad; map.AddLayer(veLayerSpec); layerid++; } function onFeedLoad(feed) { alert('RSS or Colle ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. SpriteBlendMode - Premultiplied alpha

    So, many people that have done lots of graphics programming know that premultiplied alpha is fantastic ... sadly it seems like there's no support for it in the Sprite system. The only Sprite blending options are Additive and regular Alpha blending. Is there some other way to get the effect of premultiplied alpha (Src + Dst * (1-Src_A)) Obviously I could switch to using the 3D functions to render everything, but given the advantages of premultiplied alpha, it would be really nice if the simpler 2D path supported it. ...Show All

  • Visual Studio Team System How to solve this problerm!

    Good afternoon everyone: I use own rules to check a website project.there are some unknown warning by the compiler,Such as VB$t_ref$L0,VB$t_i4$L0,VB$t_array$S0,VB$t_struct$N0.I don't known how to generate them.Is there any one  can tell me the reason --Tiny Hi Tiny: Recently I write some rules to run on web project and also met this question. because when you publish the web project the compiler will add many function or many class In the Assembly, so when fxcop run these codes also be checked by the my rules, many unexpected result may appear. ...Show All

  • Windows Forms How to change background color of a selected datagrid column?

    Hi All, I'm using the following code to set the background color of a sorted column(selected column) to highlight the same to user but it seems its working any ideas where i'm going wrong Me .dgSampleView.Columns( Me .dgSampleView.SortedColumn.Name).DefaultCellStyle.ForeColor = Color.SkyBlue Try something like this Private Sub DataGridView1_ColumnHeaderMouseClick( ByVal sender As Object , ByVal e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles DataGridView1.ColumnHeaderMouseClick For Each col As DataGridViewColumn In DataGridView1.Columns If DataGridView1.SortedColumn.Equals(col) Then col.DefaultCellStyle.BackColor = Color.SkyBlue Else col.Defaul ...Show All

  • Visual Basic Displaying HTML in a Browser window

    How can i change the code below, so it will not convert the returned HTML from my login request to a string and display it in a browser window instead ' Obtain the response Dim LoginRes As Net.HttpWebResponse = LoginReq.GetResponse() ' Perform the navigate and output the HTML LoginRes = LoginReq.GetResponse() Dim sReader As IO.StreamReader = New IO.StreamReader(LoginRes.GetResponseStream) Dim HTML As String = sReader.ReadToEnd 'Debug.Write(HTML) ...Show All

  • Windows Forms How do you make a Favourites Menu

    hi, Iwas just wondering if anyone could tell me how to make a favourites menu from scratch and how to program it in C#. Thanks, Zulbaric If you are talking something abuot Faveourites like in Internet explorer i.e open Some website and add it to favourites. You have to place a button on your GUI which opens up a Windows similar to Internet explorer, with a Save button and a TextBox with Title of Favourite, Put a title for the favourite and internally save the path of opened file along with the title in some text file, xml file, Registry or application settings.... Then on the GUi create a menu which loads its item from those saved favourites and put their event handlers respectivley to open up thos ...Show All

  • .NET Development reflection - cant get access to non-public members

    [code] MembershipProvider memprov = Membership.Provider; PropertyInfo info = memprov.GetType().GetProperty("_sqlConnection",BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Public); [/code] This is dealing with reflection in the asp.net 2.0 membership api, but i think its more of a general reflection question, hence i put it here in this forum. If i set a breakpoint on the first line, i can look at the locals window, and under the Non-public members, I have a list of the non public members, but after steping through the 2nd line, my info variable i still null and Im not sure how to reference the thing that I can see in the locals window. Help Firstly I have to recommend that you never do what you are tr ...Show All

  • Software Development for Windows Vista Custom loop with multiple activities

    I want to implement a custom loop that has multiple activities occur during each loop. I have looked at the for each loop at http://wf.netfx3.com/, but although this solution works with one item in the loop, I am having problems detecting when all items in the loop are done. Currently, I end up closing my activity too early when child activities are still executing. Any suggestions Amanda The simplest test I got to work was to set the designer for the activity to the SequentialActivityDesigner. This may not be the ultimate look you want, so create a designer that derives from this one and then override methods as appropriate to get the look you want. Matt ...Show All

  • Windows Forms ToolBox Tab

    Hi, How I can define default toolbox tab for my custom control Maybe it must be some class attribute Thank you. How do we get custom controls to appear in the toolbox if their project is in the same solution as another project. Solution UserControl Project WinForm Project The WinFOrm project has a reference to the UserCOntrol project, but the UserControl contols don't appear in the Toolbox. Only when we add a reference to the compiled DLL do they appear in the toolbox. ...Show All

  • SQL Server excel data problem

    I have a foreach loop that loops through each excel file and load data to a staging table. Lets say i have file A.xls and B.xls. When loading data from A.xls to the staging table data looks fine, however, loading data from B.xls one of the column did not convert data as string, instead it converted some of the number as 1.000e+7. In the advance editor, i've set the output as a Unicode string and my excel connection string is appended with IMEX=1. Sill, the data is converted correctly for some number, others it converted as x.xxxe+x. Anyway i can force the data to convert "as is" I've experienced a related problem. I wanted to import a column which is alternating in text and numeric values. Since ...Show All

  • Visual Studio VS2005 Browse / Integrate third party help files (.HX*) files

    Question I have installed a third party SDK that specifically targets VS2005 and it has placed on my system a directory choc full of help files .Hx[S|A|C|T|K] files that just beg to be read...yet I am unsure of how to browse them or if the have even been integrated into Studio...How does one go about integrating such files or how do I browse them within VS2005 if they have been installed Platform VS2005 advTHANKSance Hi OmegaMan, To check if the Help files are already installed, open VS 2005 and click the Help tab on the main toolbar, then click Contents. When the Help window opens, set the Contents [Filtered by:] dropdown to "unfiltered". Wait till the Contents tree resets itself. The 3rd Party SDK Help topics sho ...Show All

  • Visual Studio Team System no red cross mark.

    I decreased my response time goal to 0.01sec and when i ran the load test the value of avg response time was 0.10(min) 0.20(max),however it still didnot give me any Red cross on avg response time when it is not meeting the goal set.Instead it gave a red cross on avg. connection time .Kindly tell why Do you mean a red cross in the graph view The response time goal will show the percent meeting the goal on the pages table. Cna you try the test again and this time click on the tables button and select pages. One of the columns is % meeting goal. ...Show All

  • .NET Development DateTime interpretation between ADO.Net and SQL Server

    In my application I write to a table in a database a DateTime field (which happens to be a primary key) by executing a SQL command, e.g. INSERT INTO MyTable (MyDateCol) VALUES ('8/22/2006 4:20:21 PM'). Then, I insert the same value into another table (in which that same field is a foreign key) by using ADO.Net's SqlAdapter->Update(), where in a DataTable in a DataSet I had stored that same System::DateTime object. I am getting a failure - foreign key constraint violation - when trying to do that last write. When inspecting the value of that field in the DataSet from within the debugger, the date looks like this: "22/8/2006 16:20:21" (same thing, just different representation). This is all on the same computer so the culture is the same ...Show All

  • Visual Studio Express Editions tab control

    Hi I am using a tab control, a status strip and a tool strip. the tool strip is docked at the tp and the status strip at the bottom but when i try and dock the tab control to fill the form it is hiddne behind th other two controls. How can i solve this problem Hi, this is a Z-order thing - you have to bring the tab control to the front. Either: a] right click status bar and choose Send to Back. repeat the same for tool strip. or b] select tab control and bring it to front (from VS menu: Format | Order | Bring to Front). [Right-click selecting the tab control might be a bit difficult because it contains tab pages so when you click on it you actually select tab page, not the tab control... so make sure the proper ...Show All

©2008 Software Development Network