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

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

MurtazaH

Member List

enric vives
evilc
Jun_1111
Joe Sanders
lsproc
Trev72
Simon Dahlbacka
peterng25
Rohit Tela
JayPi
progames25
r0d
Eric Wellnitz
Bellingham Coder
Krutika
rocky050371
Corinna Vinschen
Casius211362
birdman82
Opfer
Only Title

MurtazaH's Q&A profile

  • Community Chat so the Zune's a flop

    or so says every review I have read. anyone have any sources saying otherwise installation HORROR stories. questionable collection of "features." incompatibility with WMP and pretty much any non-Zune marketplace source for music. handicapped wifi. I was on the verge of pre-ordering a Zune, but Microsoft has jaded me over the years, so I held off. I think I'm pretty happy with that decision. what do i care, if you are jaded by microsoft, don’t you know there is a little thing more popular by apple called IPOD!!!! ...Show All

  • Windows Forms Combo Box In DataGridView

    Hello All, I'm facing some problem while using a combo box in a datagrid view cell. Let me discuss what i'm trying to implement... Suppose i've a datagrid which have some rows. I want that one of the column of that datagrid will be a combo box. But couldn't implement finally as i am very novice in C#. Like, i've 3 columns,like... Booking Id ---- Description ---- Status 1 Test1 "Accept" 2 Test2 "Deny" 3 Test3 "Pending" **** I want that the "Status" column will be a combo box so that i can choose the status("Accept","Deny","Pending" in the above example) from a drop-down list and set ...Show All

  • .NET Development Determine if a path is a file or a directory

    Hi all! What is the more efficient way to determine if a given path represents a file or a directory in the file system For example: C:\Test.txt -> The function must return a value indicating the path is a file. C:\Windows -> -> The function must return a value indicating the path is a directory. Thanks in advance, Marco. Hi, I think that a better aproach is to use the System.IO. File .Exists and System.IO. Directory .Exists functions. Here is an example: string path = @"C:\Temp.txt" ; if (System.IO. Directory .Exists(path)) { Console .WriteLine( "The given path is a directory." ); } if (System.IO. File .Exists(path)) { Console .WriteLine( "The given path is a directo ...Show All

  • Visual Studio Express Editions Webbrowser Progress bar

    can someone please point me to some code that will trigger a progress bar when a webbrowser control is navigating and return to 0 when complete. Put a Progress bar on your form and name it Progress. Then add the following: Private Sub WebBrowser1_ProgressChanged( ByVal sender As Object , ByVal e As System.Windows.Forms.WebBrowserProgressChangedEventArgs) Handles WebBrowser1.ProgressChanged Dim p, d, t As Integer d = e.CurrentProgress t = e.MaximumProgress If t < 1 Then t = 1 p = Int(d / t) * 100 If p > 100 Or p < 0 Then Exit Sub Progress.Value = p End Sub Forgot who I "borrowed" this from, but, it does work!! j ...Show All

  • SQL Server SQL Native Client automatic failover only works when both servers are plugged in

    I have setup a database mirroring session with witness - MachineA is the principal, MachineB is the mirror, and MachineC is the witness. Each SQL Server instance is hosted on its own machine. The mirroring is working correctly. If I submit data to the database on MachineA, and then unplug the network cable on MachineA, MachineB automatically becomes the principal, and I can see the data that I originally submitted to MachineA on MachineB. All the settings are showing correctly in Management Studio. My issue is with the SQL Native Client and a front-end application that needs to make use of this database. I have setup my front-end application to use the ODBC client and specified the failover server in both the ODBC setup and the connecti ...Show All

  • SQL Server List all your connection managers

    Hello, I'm building a custom task which has a property ConnectionManager which obviously allows you to select which connection manager you're goinng to use. I know how to get the list of connection managers but how do I make them appear in a combo-box in the properties pane Anyone got some code for that Hopefully this is fairly trivial for you developer types out there. Thanks Jamie I don't know about dataflow components, but on a custom task I simply created a property of type ConnectionManager and it gave me a drop down list of all the connectionmanager's guid's in the package.  The built in type converter has a nice drill down connection manager editor too so you can easily identify which connection you selected.&nb ...Show All

  • Windows Forms Real Semi-Transparent panel

    I created a class that inherits from panel. The idea is to put it in front of the form to avoid the user from using the controls while an async function is taking place. I managed to make it completely transparent by turning on WS_EX_TRANSPARENT as in the clase below. public class TransparentPanel : Panel { protected override CreateParams CreateParams { get { CreateParams cp = base .CreateParams; cp.ExStyle |= 0x20; // Turn on WS_EX_TRANSPARENT return cp; } } Now, I'd like that when the TransparentPanel is over the form, it looks grayed-out. Is it possible to do that Thanks a lot in advance Javier, obtaining the real disabled effect is not so ...Show All

  • Smart Device Development Trouble with Threading on Motorola Q Smartphone

    I'm having some trouble with threading on a Motorola Q Smartphone which runs WM5 as you know. I have a C# program that I've been running under XP quite successfully. When I recompile it (with a different UI of course) for the Q, the threads to not start. Here's a code snippet... _thread = new Thread(new ThreadStart(Receiver)); _thread.Start(); which is executed in the main thread and where Receiver is: private void Receiver() { ... } I have some debug output that dumps messages to a text box on the display. The message dumped by the thread when it first starts never makes it to the display. Any ideas why this simple code would work under XP but not on a Q Thanks, FM I wou ...Show All

  • Visual Studio Team System query doesn`t work. problem < today

    hi, i tried to import with my new process template the following query and i get an error message: < xml version="1.0" encoding="utf-8" > <WorkItemQuery Version="1"> <Wiql>SELECT [System.WorkItemType], [pweb.pm.startDatum], [System.AssignedTo], [System.Id], [System.State], [System.Title] FROM WorkItems WHERE [System.TeamProject] = @project AND [System.WorkItemType] = 'Run' AND [pweb.pm.startDatum] < @today ORDER BY [pweb.pm.startDatum], [System.AssignedTo] </Wiql> </WorkItemQuery> the problem is the sequence [pweb.pm.startDatum] < @today. if i replace the "<" with "=" everything works fine. so can somebody tell me what is wrong please. the ...Show All

  • Smart Device Development Deploy to Pocket PC Device not always working

    Sometimes when I'm hitting F5 in Visual Studio .NET 2003 and choose Deploy to Pocket PC Device, it doesn't start the program on device. It compiles the program and then it says Launching Application. ---------------------- Done ---------------------- Build: 1 succeeded, 0 failed, 0 skipped Deploy: 1 succeeded, 0 failed, 0 skipped Launching Application At status bar appears text "Ready" and then nothing. This is random and I haven't been able to track in which kind of situations this happens. Some times it works tens of times in a row, but after that it doesn't wan't to work at all. PocketPC is connectec with ActiveSync. Sometimes it MAY help, if I remove the Pocket PC and put it back on, if I restart VS 2003 or restart Windo ...Show All

  • SQL Server Parameterized Queries

    Just getting started using SSce and having a few problems What I want to do is something like this... Dim Code As Integer Dim Description As String = txtDescription.Text.Trim Dim conn As SqlCeConnection = ConnectToLocalDatabase() Dim ssql As New System.Text.StringBuilder ssql.AppendLine( "INSERT INTO T_Titles (Description)" ) ssql.AppendLine( "VALUES(@Description)" ) ssql.AppendLine( "SELECT @Code = @@IDENTITY" ) Dim cmd As New SqlCeCommand(ssql.ToString, conn) Dim sqlCode As New SqlCeParameter( "@Code" , 0) sqlCode.Direction = ParameterDirection.InputOutput cmd.Parameters.Add(sqlCode) cmd.Parameters.Add( New SqlCeParameter( &q ...Show All

  • .NET Development Xml element attributes

    hi, I am getting a return value from a stored procedure like following way <m_allergies import_id="200"allergy_type="1" Code="5763" Name="abcd" Reaction="skin peels" add_date=12/12/2006"/><m_allergies import_id="200" allergy_type="2" Code="57" Name="ab" Reaction="peels" add_date=12/12/2006"/><m_allergies import_id="200"allergy_type="3" Code="763" Name="bcd" Reaction="skin burns" add_date=12/12/2006"/> But i have to update xml document using values allergy type attibute value(ie 1), code attribute value( ie 5763) reaction attibute value ( ie skinp ...Show All

  • Gadgets How to make transparent background clickable?

    There are some transparent areas in my gadget background, because my boss think it's cool... which treat me crazy, becasue all transparent areas are not clickable, and when i move mouse from non-transparent area into transparent area, event onmouseout is fired. Is there any method can make it clickable and not fired onmoustout Oh, maybe i found the workaround.... window.attachEvent('onload', init); function init() { trace('init'); document.body.attachEvent('onmouseenter', test); document.body.attachEvent('onmouseleave', test); } function test(event) { trace(event.type + '@' + event.x + ',' + event.y); if (event.type == 'mouseover' || event.type == 'mouseenter') { document.body.setCapture(); } else if (event.t ...Show All

  • Windows Forms How to display toolbar button image clearly when it is in disabled state?

    Hi, Using the following code I am disabling the toolbar button in a windows form. tbbSave.Enabled = False When I disabled the toolbar button, the image is displaying like rectangle box with no image. When it is enabled I am getting image clearly. Why is it so What should I do for getting clear image when toolbar button is in disabled state hi.. I dont think you can view better than that in .Net v1.1 Dot Net 2005(v2.0) provides something called ToolStrip. Try using that.It provides buttons,textboxes.I hope that will solve your problem ~nhd ...Show All

  • Windows Forms identify line numbers in a multi-line textbox

    Hi Guys, I need to identify the line numbers in a textbox and then insert each line of texts into database. For example in a textbox contains texts: text1 text2 text3 text4 text5 It will insert each line into database table as follow: column1 || column2 || column3 || column4 || column5 || text1 text2 text3 text4 text5 Appreciate your help. Thank you very much. Regards, Tommy Hi if we use VB, we can use follow code Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim strArr() As String strArr = TextBox1.Text.Split(ChrW(10)) End Sub add ...Show All

©2008 Software Development Network