shimshon's Q&A profile
Windows Forms Refresh DataBinding
Hi, How can I manually trigger a databinding to refresh my controls binded to a datasource. (DataSource have been updated behind the scene.) Similar to Page.DataBind() in ASP .NE Creating my own container class for all binded controls is a good solution. thanks, But I'm using winform controls, so what fonctions or whatever I can call on all controls to refresh values with DataSource values. DataBind doesn't exist on winform controls. thanks. ...Show All
Visual Studio Custom currency format
I have a report which was created in CR8.5, and later upgraded to XI. Following advice received from technical support, the report was built using a TTX field definition file. One of the fields is a currency value, which is formatted as "£1,234" - no decimal places, and a custom currency symbol of "£". When I preview the report in the designer, the currency format is applied correctly; When I export the report using a COM client and an ADO Recordset, the currency format is applied correctly; When I export the report using the .NET 2.0 client and an ADO.NET DataSet, the field is displayed as "1,234.00"; According to c2018335 , the only "solution" is to edit the registry to override the format for ev ...Show All
Visual Studio Express Editions Using button to browse a image file and load into database
Hi im a begineer. the following is what I do. I created a database table and 1 of the field i put it as varbinary(MAX) let call this field "SmallPhoto" I drag the picturebox from the toolbox to my form1 and i drag a button to my form1 too. Now I need to configure that when i click on the button i can open an explorer to search for an image file and load into the picturebox, and click on the save button to save this image file to the database. Please advise how to do it as i am running out of idea. yep, lastly i had been watching the video clip from visualstudio.net for solution too... thanks in advance ok so this is a DateTimePicker problem, not a code problem really. After setting the Format property to Custom, you ...Show All
Visual Basic Need help on call fx in a do loop
I am trying to call 4 functions together in a loop With a 2s delay in between each fx However only the last fx is called What is goin on Timer2.Start() Do While Timer2.Enabled = True Call RLeg_Up() If Timer2.Enabled = False Then Call RLeg_Down() Timer2.Start() If Timer2.Enabled = False Then Call LLeg_Up() Timer2.Start() If Timer2.Enabled = False Then Call LLeg_Down() 'Only LLeg_Down is called Timer2.Start() End If End If End If Application.DoEvents() Loop Still a noob btw This is how i think the code should be you can do like this to wait 2 second in between two function calls. //Call f ...Show All
SQL Server Export to Excel - Number formatted cells export to Excel as 'General' ?
Anyone know why cells within a matrix that are formatted as numeric export to Excel with a cell format proprty of "General" Cells within a table however export with an appropriate format. Thanks ...Show All
Visual C# Switch Case or If else Statement (Best Practice)
Hello Guys, I have a DataTable which has some 30 rows, I need to populate someuser fields with that information... What I'm doing is : Say DataTable Info; foreach(DataRow r in Info.Rows) { if(r[0].toString() == "something" { } else if(r[0].tostring() == "else") { } // This thing goes on for another 28 times..... } What is the best way to do this kind of thing, swicth statements or if else is good....I'm looking for best practices here.. Normally I would say to use a switch statement because the C# compiler can optimize this and therefore a switch statement is in 99% of the cases better than an if-statement. But something else, you say t ...Show All
SQL Server Deployment of analysis services on windows 2003(Very urgent Please)
I have window 2000 as my development machine. I am using visual studio 2003 and sql server 2000. I was able to develop a web application which uses the pivot table componant. Every thing was working fine with out any problem. I deployed my Project to windows 2003. I am able to see the pivot table control. I am not able to get any data into my pivot table. I am not sure what is going wrong. Is there anything I need to take care in windows 2003 specifically. I don't have microsoft office on windows 2003. Does it make a difference Please help!!! Anil If you are using MSOWC for your pivot table component and if yout new server do not have riyhrt MSOWC installled or Office instaled,then you will not be able ...Show All
Windows Forms Sample applications list
Hi, I am trying hard to learn developing database applications with visual basic 2005 and ms access. Can any one please tell me where can I find tutorials on this topics, and get some practical sample applications Regards Kapalic See this tutorial video . and this sample: Data Access using MSAccess ...Show All
Windows Forms User input validation
hi all, i am writing a login screen. it has a username and password textbox. i want to validate the user input to allow a-z; 0-9 and - _ but nothing else...is there any way of checking for these characters only thanks, Yes, you can use regular expressions for that (lookup Regex class in System.Text.RegularExpressions namespace). Here's also one of the examples on how to make a Regex ExtenderProvider for user input validation. ...Show All
SQL Server Error opening reports on web browser
Hi All i am very new to using sql reporting services. After installation of reporting services and configuration i get this error on the browser. Can anyone highlight the problem in the configuration my system is configured as Windows 2003 SP1 server MSSQL 2005 sp1 Server Error in '/Reports' Application. -------------------------------------------------------------------------------- The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it orig ...Show All
Visual Studio 2008 (Pre-release) Responding to events in FlowDocument
I'm trying to build a document viewer that will allow the user to interact with the content of a flowdocument. Is there a way to respond to mouse events from Paragraph controls or any other flow content elements I'm looking for mouseover to change bg colors and mouseup to identify when a paragraph has been selected. I have not had any luck doing this. If this can't be done is there a way to simulate the document viewer with a flowpanel and custom content controls Thanks! No.. the window1.xaml file seems to be fine.. Here is the code listing.. Code Block <Window x:Class="WPFTest.Window1" xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentatio ...Show All
.NET Development Shared Assembly in GAC
My question is that why we install assembly in GAC ,if we can't refer to it through IDE thnx for the technical reply..... Then what is the benifit of installing assembly it in GAC.... ...Show All
Visual Basic Execute INSERT commande (ODBC) get return value ?
Hi, I am currently building a VB.NET application that uses an SQLite Database with an ODBC connexion. I have an INSERT command to execute and I want it to return the value of the field "id_file". It is the primary key (Autoincrement) of the table in wich I insert a record. How can I do that. Thanks a lot for the help. Alex I've never used SQLite but is there something like Scope_Identity() in SQLite the way to get the value back is to perhaps return back the Scope_Identity() after the insert, then use the ExecuteScaler method to not only execute the query but to also to get back the value returned from the query. The executeScaler returns back an object value of the first row and the first column of data b ...Show All
Visual Studio Express Editions Printing Assistance needed.
Hello, I wrote a little application that accepts a studentID in Textbox 1 and returns courses taken in Textbox2. I need to print a carrige return in between the two boxes, because when I send it to the printer textbox2 prints on top of textbox1. I have the VB step by step book which was helpful, but left it at my mom's house. Please assist me. Here is my code for my print component: Private Sub PrintDocument1_PrintPage( ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage 'Prints Textbox1 and Textbox2 e.Graphics.DrawString(TextBox1.Text, TextBox1.Font, Brushes.Black, New System.Drawing.RectangleF(e.MarginBounds.Top, e.MarginBounds.Left, e. ...Show All
Smart Device Development Sent BOOTME 255. 255. 255. 255
Hi, I’m using Device Emulator with PB for Windows Mobile 5.0. I have created the PPC Phone image and now I’m trying to upload it to the emulator. For that I have installed the loopback adapter with the 169.254.128.128 IP and DNS address. Furthermore I set the Connectivity Options (Target -> Connectivity Options) for Device Emulator over Ethernet with the CS8900 network adapter (MS Loopback). (I did this installation on several PC’s before, there it worked fine). Now, if I’m trying to start the emulator (Target -> Attach Device). The last messages I can see in the command line window are “Sent BOOTME 255. 255. 255. 255”. It seems like the PB sends TFTP packages as a broadcast, but the emulator does not ...Show All
