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

Software Development Network >> Bander ALSHARFI's Q&A profile

Bander ALSHARFI

Member List

CMU
Steven Berger
sriniatl
tohams
dvboom
furjaw
DQM
David Vago
Jeremy Jarrell
boondoggle
FernTheBrute
GDigrego
GavinMannion
Sean ORegan
Chris Langsenkamp
George Waters
Hyungchul Shin
BLytt
Hans1982
raedbenz
Only Title

Bander ALSHARFI's Q&A profile

  • .NET Development How to apply changes from DataGridView to DataTable?

    Hello, I got a simple problem. I created a new DataGridView control and bound a DataTable on it. The problem is that if I alter data in the DataGrid nothing is changed in the DataTable not even if I call  DataTable.AcceptChanges(). I thought it should be simple task, but I just figured out some ways of changing data in combination with SQL-Databases. bye What I think is needed is some code to copy the data files that you did make changes in to some place safe. This is because, as is explained ( here ), the project data file gets copied over in the \bin\debug and bin\release directories when the project is run again. Could there be an easy solution to b ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Catching Auto-CD launch window message in a game

    Hi, Does anyone know of a way to catch if a CD-Auto Launch is kicked off and not allow that window to become the foreground window. In my game I would like to keep my Windows app as the foreground window. I'm only looking to do this in the case of a CD-Auto Launch happening. Thanks in advance. No no not at all. The use case I was referring to is someone running your full-screen app and then putting a CD that's not related to your app (a movie say). In that case yes, you don't disable autorun. However, the use case you're describing is common and of course should be handled properly. This is how it should be done: - Every disc of your title must have an autorun.ini that ultimately launches an execut ...Show All

  • Software Development for Windows Vista background windows flickers on top of fullscreen application in vista.

    Hi, I'm working on a game for it to be vista compatible. It obviously works fine on previous OSes including XP. A user can actually start game and play it but the problem is that when game launches and goes to fullscreen, background windows such as open windows explorer flickers on top of the game screen. The flicking goes away once the user alt-tabs out and alt-tab back in. At the same time, when the screen flickers, there are two mouse cursors(original window cursor, and game's modified cursor image). I can move the window cursor and game's cursor sometimes follows window cursor movements. When I click mouse button, it seems to click on the flickering background window and goes out to window(same as alt-tab) Another symptom is that when ...Show All

  • Visual Studio Express Editions Sending text from VB form to Word

    I am using VB Express and Office XP. I need to send name/address data to Word for label printing. Library article says that I need the XP PIAs first, but the link doesn't work. Eventually found and downloaded them. However, I can't install as all I have in my start menu is "Visual Basic 2005 Express Edition" and cannot open a VS command prompt - see below. To install the Office XP PIAs On a computer with Visual Studio .NET installed and the extracted Office XP PIAs, on the Start menu, click (All) Programs , point to Microsoft Visual Studio .NET , point to Visual Studio .NET Tools , and click Visual Studio .NET Command Prompt . The Visual Studio .NET Command Prompt window appears. This facilitates the use of the .NE ...Show All

  • Visual C++ Any interest in building an FAQ?

    I'd like to propose that we put together an FAQ to address some of the issues that pop up regularly here. It seems like we have an awful lot of questions like: - "How can I call my C#/VB/FORTRAN routines from C++ " - "How do I compile and run my project " - "I've included the correct header files, so why am I getting LNK2019 errors " - "How on earth am I supposed to use destructors/finalizers/IDisposable " And of course these are all valid questions! But since they are common questions which tend to be answered in the same way from one thread to the next, I think it would be very helpful to have all (or at least most) of the common answers in one single place. This would be helpful both to aske ...Show All

  • Audio and Video Development Interesting article about HD authoring

    http://www.dv.com/features/ category=Archive DVD: The Next Generation A look at the terminology and authoring workflow of the Blu-ray Disc and HD DVD formats By David O. Weissman You'll need a login, but it's free And yes, it's also about that other disc The registration process is pretty annoying and clunky, but the content is great. I found several articles that were extremely helpful and interesting. Thanks for the link. ...Show All

  • .NET Development 'One-way' serialization with XmlSerializer

    Hey, I would like to dump my object hierarchy to an XML file but I don't know how I could get XmlSerializer not care about required parametersless constructors, or ICollection<T>'s implementing an Add(T) method. Because I don't want to deserialize back my objects, these conditions are not required to just dump it into XML. Any ideas (Not sure why this question that has nothing to do with Web Services makes more sense here, but oh well.) Greg, thanks for the answer. I was trying to leverage XmlSerializer and the attributes that come with it. Too bad I can't do something like this but I'll live. Thanks for the tips, I will consider them if I require the feature to be implemented. ...Show All

  • Visual Studio Dynamic Graphic Location does not work

    I use Visual Studio 2005 with Crystal Reports, and have a 'path' field where I store the absolute path of some images. I used the Graphic Location formula to change the image path for every record, as follows: formula = "C:\Inetpub\wwwroot\v2\catalogimages\"+{TestReport.Κωδικ : prodid}+"_1.jpg" The path is correct. When I use the same path in Explorer I get the image. However, when I run my report the image does not refresh and I see the default image (as if the file is not found) For testing reasons, I have also set the image to be a hyperlink pointing to a file using the same formula with the exact path, and when I click the image I get the correct image! How can I refresh the image object to show the correct image ...Show All

  • Smart Device Development UdpClient - Compact and Full Framework

    Hi, Please take a look at the code below. When compiled as a Windows application (.NET 2.0), the Send method will not succeed when there is no network connection. The System.Net.Sockets.SocketException (A socket operation was attempted to an unreachable host) is thrown. However, when the same code is compiled with Compact Framework 2.0, the Send method always succeeds! Is there a way to mimic the Full Framework behavior on Compact Framework My application is supposed to send GPS messages using UDP. If the sending fails (no connectivity for example), the message should be stored, and send later. Since the messages will be sent quite frequently, I don't want to manually check connectivity before each call of the Send method. ...Show All

  • Windows Forms DataGridView set row header color

    I have a win form with an unbound DataGridView on it. Due to the nature of the data being displayed in it, everything is manually built programmatically. I have data base with employees that I retrieve then loop through to build all the rows in the grid. I need to have each employee's row header a different color, depending on thier assigned department. However, when building the rows when I set the HeaderCell.Style.BackColor attribute, it doesn't take. For that matter, if I set the Back Color attribute for the DataGridView DefaultRowHeaderStyle from the VS designer that won't take either. Same thing applies to columns. No Header styles seem to apply (colors, fonts, spacing, etc). Can anyone give me an idea why I can't change the styles H ...Show All

  • Visual C# DataReader Read Data

    private void BindTheCombo() { sqlcon= new SqlConnection(Tools.sqlconstr); sqlcom= new SqlCommand("select CityID,CityName from Cities" ,sqlcon); sqldr=sqlcom.ExecuteReader(); while (sqldr.Read()) { oDDLil.DataTextField=dr(0); //error oDDLil.DataValueField=dr(1); //error } } I bind to data to dropdownlist What I should do Thanks For Help Thank You Mohammad(Muhammed) Nice name ...Show All

  • Windows Forms exit addnew

    hi i want to know how to prevent the addnew to occur in this situation. Private Sub BindingNavigatorAddNewItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorAddNewItem.Click If type = 0 Then If Me .ToolStripButton1.Text = "Supplier" Then CODE TO PREVENT MY DATAGRIDVIEW TO DISPLAY THE NEW RECORD LINE MsgBox( "Please select a supplier" ) Exit Sub End If End If End Sub First set the AddNewItem property of your BindingNavigator to (none) . Private Sub BindingNavigatorAddNewItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorAddNewItem.Click ...Show All

  • Software Development for Windows Vista Invoke another workflow

    Hi, I know it is possible to invoke a workflow from another workflow. But is it possible to invoke a custom Sharepoint Workflow from a "normal" workflow Thanks Thomas Well without really giving it too much thought, you could host a Web Service on the SP server, that you called from your "normal" workflow and this would in turn invoke your your SP workflow Or you could get fancy and look at some remoting / service that runs on your SP server to do the same kind of thing I'm just throwing out random thoughts here though ... ...Show All

  • Visual Studio 2008 (Pre-release) ComboBox Binding

    I bound ComboBox to products' collecttion and ComboBoxItem to product name. But when I select an item I get in Selection box the name of object, not a product name. How can I manage this problem protected Products list; public Window1() {InitializeComponent(); this.list = Fill(); MyComboBox.DataContext = list;}   < ComboBox Margin = " 8 " Width = " 120 " Name = "MyComboBox " ItemsSource = " {Binding} "/ > <!-- SimpleStyles: ComboBox --> < Style x:Key = " {x:Type ComboBox} " TargetType = " {x:Type ComboBox} " > < Setter Property = " OverridesDefaultStyle " Value = " true " /> < Setter Property = " ScrollViewer.CanContentScroll " Value ...Show All

  • Visual Basic "user32" SendMessage (....)

    Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" ( ByVal hwnd As Integer , ByVal wMsg As Integer , ByVal wParam As Integer , ByRef lParam As any) As integer Private Declare Function SendMessageLong Lib "user32" Alias "SendMessageA" ( ByVal hwnd As Integer , ByVal wMsg As Integer , ByVal wParam As Integer , ByVal lParam As any) As integer that was how i declared them in VB6 this is how i am declaring them in vb .net 2005 Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" ( ByVal hwnd As Integer , ByVal wMsg As Integer , ByVal wParam As ...Show All

©2008 Software Development Network