Reza Bemanian's Q&A profile
Windows Forms Binding DataReader to a DataGrid
Hi, I've this code below I'm trying to bind the DataReader to the DataGrid and i get nothing Do i need to add something Private Sub ProjectIDComboBox_SelectedIndexChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ProjectIDComboBox.SelectedIndexChanged Dim test As String = Me .ProjectsComboBox.Text Dim test2 As String = Me .ProjectIDComboBox.Text Dim strSQL As String = _ "select * from Auctions where ClientName = @test and ProjectID = @test2" Dim objCommand2 As New OleDbCommand _ (strSQL, objConnection) Dim parm As OleDbParameter = objCommand2.Parameters.Add( "@test" , OleDbType.VarChar, Me .ProjectsComboBox.Text. ...Show All
Visual C++ Socket Programmer
To all the great programmer kindly write a basic socket program and explain me any replies are appreciated To my fellow great programmer, kindly search the internet yourself. There are tons of resources written by people who want to help you get started doing socket programming. ...Show All
Visual C++ Try This Code In VS2005
Here is a very problem i came through while writing a very simple program in VS2005 Professional Edition. Try the following code: #include<iostream> using std::cout; int main(); { int i=0; cout<<(i+1)<<" "<<i++; return 0; } The expected output is:1 0 However,the output comes out to be: 2 0. When i tried the same code on dev-cpp compiler the output is as expected i.e 1 0. I think the above code is not compiler dependent .So why is this problem with VS2005 compiler Kindly provide a solution to this problem and try to give maximum details. lali.b2 An excerpt from the the 1997 C++ Public Review Document published by the C++ Standards Committee (http://www.open-std. ...Show All
Visual Studio Express Editions why cant i create a new project?
hi im new but not to programming, now the problem i have is when i try to create a project, it tells me "project creation failed" why is this also is microsoft visual c++ express edition suitable for writing my own code to create mods/ addons (half life 2 ect.) and why cant i open dll file asociated with games (for example, mp.dll, tfc.dll) please help!! my email is dr.grumbles99@hotmail.com , please contact my email if unable to on this forum thank you yes i got it from the msdn website! and it is genuine and registered, but now that ive been supplied with a full version will i still be able to use my original authentication code ...Show All
Windows Forms Flicker Cursor with DoubleBufffered
Hi! I'm painting with Graphics object to form. Everything I'm painting in Form_Paint method. To reduce flicker of painted picture I'm using DoubleBuffer. Now painted picture is not flickering. However mouse cursor starts to flicker. I want to repaint form every e.g. 500ms, so I tried call form.Refresh(), form.Invalidate(), I tried to invalidate even only some parts of form, but cursor is still flickering. Today I tried to use not regular mouse cursor (default arrow) but Cross or IBeam cursor (which consists only from "lines" and not consists from some "area") and these cursors aren't flickering. Can somebody advise me how to use DoubleBuffer with no frickering default cursor Thanks a lot... Mike. ...Show All
SQL Server SQL Server 2005 Express install on VISTA
I have a new laptop with VISTA. I've enabled IIS with all features turned on. When I install SQL Server 2005 Express I get a warning stating IIS is either not installed or disabled. Any ideas Thanks. I upgraded to VISTA Ultimate. Now I have an FTP Service windows feature and the Advanced SQL Express installation detects IIS when I enable FTP Services. I did not try VISTA Business; don't know if VISTA Business has the FTP Service option. ...Show All
Visual Basic Combo box (again)
Hi guys I am having a few problems with combo boxes, i have inherited a combo box to add some more features, i also provide a data view as the datasource, this side is working well. I have the dropdown style to dropdown and the autocomplete mode to suggest append. If the box has focus and i hold alt + arrow down then the list displayes. If i type for example 'a' whilst the list is dropped down a further list is displyed with my selection, if i highlight my choice and then press enter then the box is empty. If i use tab then my selection is displayed. is this correct or am i doing something wrong here i have experimented with different autocomplete modes. Regards Steve I think there is a bug in he ...Show All
SQL Server Create a grants rights script fails during configuration
I am in the reporting services configuration tool. When I am on database setup I get Create a Grants Scripts Right with a red X. Everything else passes. I am using sql server credentials and the user is sa on the database server. Any help would be appreciated. Joni, Validate that sa user is in the security/users on your "ReportServer" database and also give to access to the RSExec Role for reporting services. When I encounter this issue by user Id did not have RSExec Role after adding it then I was able to configure my services correctly. Ham ...Show All
SQL Server SQL Server Edition ??
Hi, I was wondering, what kind of SQL Server 2005 edition is allowed to be used on the development server. We have the developer's edition, would we have to buy an Enterprise edition for the development server Thanks, Tanvi. I certainly don't claim to be a licensing expert, but I think this is exactly what it is intended for. :) "Each license of SQL Server 2005 Developer Edition entitles one developer to use the software on as many systems as necessary and additional developers can use the software by purchasing additional licenses." Thanks, Sam ...Show All
Visual Studio Team System MOdified alerts to send to all users
I modified Alerts on one of our projects to alert everyone when anything was changed. This has been reflected into every project in Team Foundation server. How can we fix this If we have to remove all alerts, it's ok.. I just don't know how to do it. ANy help would be great, thank you. You can use the tool at http://blogs.msdn.com/narend/archive/2006/07/26/679440.aspx to view & unsubscribe alerts. You can also create a new one for specific projects. ...Show All
SQL Server How to use the Microsoft OLE DB Provider for DB2.
I follow the steps: 1.In configure OLE DB Connection Manager dialog, I click New. 2.In Connection Manager dialog ,I choose Native OLE DB\Microsoft OLE DB Provider for DB2. 3.In Connection Manager dialog I click the "Data Links" button. Now I am on "Data link property" dialog. 4.On connection tab, I enter fmdb for data source, which is my remote database name. On Network section I choose TCP/IP Connection and set the right IP/Port. Uncheck Single sign-on and enter the user and password. Then comes the Database section. Database name fmdb for Initial catalog,"fmdbrun" for Default Schema, then what is Package Collection (My db2 database is in a AIX/RS 6000 box). 5.On advanced tab, I choose DB2/6000 fo ...Show All
.NET Development Fatal Error in Fax Service for Windows 2003 Server
I have an ASP.NET application that generates text files which get faxed to suppliers using Fax Service on Windows 2003 Server. This functionality works just fine. I am developing the next version of our software which uses SQL Reporting Services to generate a TIF report to fax. Before I actually fax this TIF, my code uses bit locking to convert this 24 bpp TIF to a 1 bpp TIF with CompressionCCITT4, 204-196 dpi, and 1728-2200 resolution. However, the faxes are failing in the middle of transmission with a fatal error and extended codes of 32028 and 32027. This error occurs to a number of different supplier end points (i.e., not isolated to just one). Interestingly, if I open the original TIF file and Print To Fax, it works. I can't see ...Show All
Smart Device Development Connecting active sync to emulator in an x64 environment
Hi, I am trying to connect my Windows Mobile 5.0 emulator to active sync on a 64 bit machine, but the emulator is not being recognised by active sync. Is this a problem with the 64 bit environment (is active sync+WM 5.0 emulator) supported on a 64-bit machine Is there something that I am missing here Thanks Deepthi Yes. I have the 4.5 beta running now, but it's at an average; unstable. Still can't install 4.2. As for the usual questions, I've restarted the machine, I've kept current with windows updates, and I have all of the latest software. ...Show All
Windows Forms Focus loss
I have form which is shown with ShowDialog method, and this form shows another little form when user clicks the options button on that form. the second form is not modal it is shown with the Show() method. The second form closes itself when it is deactivated. But when the second form is closed the whole application losses the focus and another window (which does not belong to my application) is activated. Actually my application goes back and Visual Studio gains the focus. I could not where the problem is, can anyone help, am I doing something wrong ...Show All
Visual Basic c compiler in vb
how can i run a cprogram using vb and get the output and errors in the forms Then you need to reference the assembly from your project and interact with it through those. Good luck Richard ...Show All
