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

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

AaronJ

Member List

MrDoomMaster
ian_3000gt
nglow
shmulik_segal
Lee Rothman
Duncan Woods
fathi S. Elashery
TiKu
mrshrinkray
kyotov
Blufire48
GTO52
RyanJ
Alan Jr
pmak
handyman9
ManishSingh
JVYY
hye_heena
xlordt
Only Title

AaronJ's Q&A profile

  • Visual C# this keyword's cons, pros or nothing?

    Hello, I just installed Resharper Addon of Visual Studio and it pointed all the code where i used this keyword with a warning saying its a redundant qualifier. Its just my habbit to put a this keyword with instace variables so I can distinguish between function level and class level variable. But i dont know what effect "this" has Why Resharper is saying its redundant I'll be really happy to know what's effect of "this: keyword on the application code. Best regards, Rizwan Hello Peiter, Thanks for the sparing some time to look into my thread and anwering this. But I already know all you mentioned. My convern is what is meant by redundant here Does this mean C# compiler will have to do extra work to resolve thi ...Show All

  • .NET Development XML databinding to a comboBox in windows forms

    Is it possible to bind information from an XML or app.config file to a comboBox in a windows application If so can someone point me in the right direction I have tried everything I can find but maybe I am just looking for the wrong thing. You don't need dateabase to create and fill up DataTable. You can create DataSet -- sort of in memory database. ( http://msdn2.microsoft.com/en-us/library/system.data.dataset.readxml.aspx ) In general if you have any data structure that you can bind to comboBox you can read information from XML and put it to this structure/class. ...Show All

  • Visual C# Backgroundworker (part 2)

    Hi, A few weeks back i was trying to implement backgroundworker. I got a good code sample but i still didn't managed to get it to work. I messed up my whole code. Nothing was working anymore. So i had to work on my backupped project. Now i got it back as how it was again. I was kinda hoping if someone could help me again with it. Some comments would be really appreciated (in plain English). This is my whole class: public partial class FrmWordDisplayer : Form { public FrmWordDisplayer() { InitializeComponent(); this.FormClosing += new FormClosingEventHandler(FrmWordDisplayer_FormClosing); } private void FrmWordDisplayer_FormClosing(object sender, FormClosingEventArgs e) { DialogResult result = MessageBox.Sh ...Show All

  • .NET Development Client Server Communication

    Hey all, I am investigating a system that will be comprised of two components: a Windows Forms application that will be installed on client machines, a Windows Service application that will be installed on a Windows server. The client will need to poll the service across a standard Windows network to check to see if the service has any data to send. If there is data available, the service must send it to the client so that the client can use it. The question is how do I implement this functionality I am wanting to keep the system complexity low and it needs to be fast. I was thinking about using TCP/IP sockets, but have little knowledge about this so any advice you guys have to offer would be great! Thanks in advance, St ...Show All

  • Visual C# How to prevent a ToolStrip from being moved to a different ToolStripPanel

    For example, if you have a form, with two ToolStripPanels, each of them containing one ToolStrip. One ToolStripPanel is docked to the top, the other is docked to the bottom. Is there a way to prevent that the ToolStrip from the bottom can be dropped into the ToolStripPanel at the top ToolStripPanel does not have a AllowDrop property :-( Best Regards Bernd Ritter You can handle the EndDrag event of the ToolStrip and re-parent it to the correct Panel: private void toolStrip1_EndDrag( object sender, EventArgs e) {     if (toolStrip1.Parent == toolStripContainer1.BottomToolStripPanel)     {         toolStrip1.Par ...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

  • Smart Device Development My app works on the PC but not on the Smart Device - I'm desperate!

    Hi all, I am so hoping that someone can help me out here. I'm writing an application for a terminal . I'm only starting to learn C# and with this terminal and all its sort of a double learning curve for me although I am experienced in C++. I've had plenty problems which I've managed to iron out one after the other but it seems that I have now reached a dead end where I simply lack the know-how to troubleshoot. When I compile my application it gives no warnings or errors. I can run it on the PC but when I copy it across to the device I get various exceptions. And what really concerns me is that I can't readily reproduce these exceptions. The three exceptions that I mostly get are InvalidProgramException , TypeLoadException and MissingMet ...Show All

  • Visual Studio Express Editions How to fill a ComboBox with data from a database and update the changes?

    How do I fill a ComboBox with data from a table in a database, so the user can choose one from the ComboBox For example, I have a Category field in the Product table in the database. I would like the user to be able to either choose one of the available categories or enter a category of his/her own choice. After clicking a button, the selected choice would be updated to the database. The sql statement would be something like: - 'SELECT DISTINCT Category FROM Prouct' All the form input fields are binded to a BindingSource, which in turn is binded to a DataTable in a DataSet. I could easily use the add button and save button in the BindingNavigator to make changes to my data. Unfortunately, I could not use this approach to add a ComboBox tha ...Show All

  • SQL Server Problem with temporary table and ado.net

    hi all i have created a store procedure that works fine on sql server 2005 exprees, it uses the temporary table #TEMP...the sproc is something like this: select name into #TEMP from TableName ...some operation with temporary Table #TEMP drop #TEMP So the problem is : when i try to call the store procedure from a dataAdapter from a visual studio project i have the following error: name of object '#TEMP' not valid. ....who can help me to solve this problem You should do everything with the temporary table within your stored procedure code. INSERT / SELECT and cleaning the house, in the meaning of dropping the table at the end. temporary tables are sessin based on will no ...Show All

  • Visual Basic SQL STATEMENT Select, where * problem

    I have what appears to be a simple query but I have having major problems The Query that works is: SELECT * FROM Mutual WHERE (Ticker = 'axiax') When I change it to the following it does not return any results: SELECT * FROM Mutual WHERE (Ticker = 'ax*') I think I have tried every combination of "" and spaces and can't get anything to work. I am running Visual Basic 2005 Express Edition, SQL Server 2005 Express, and it is a Access 2003 database (.mdb) Please help. Thanks that worked , I thought I had tried that but I guess not. One More... Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Shortfunds ...Show All

  • Software Development for Windows Vista Is System.Transactions default IsolationLevel configurable?

    According to the documentation (http://msdn2.microsoft.com/en-us/library/system.transactions.isolationlevel.aspx), "By default, the System.Transactions infrastructure creates Serializable transactions." Is it possible in machine.config, app.config, web.config, etc. to set the default level to something else I know you can use the overloaded constructor on the TransactionScope Class to set that particular scope to a requested IsolationLevel. However, is it at all possible to set the default behavior from Serializable to something else, say ReadCommitted I believe it is not possible to set a default isolation level in one of the config files. I will double-check to be sure. Cheers! ...Show All

  • Visual C++ what is the problem about following code?

    const int & ref(const int &a){ return a; } int val(int a){ return a; } int a=1; const int &b = ref(val(a)); thanks. const int &c = val(a);//must be OK, C++ standard: the valid scope of a const & to a temp var is same as the scope of the  const &   but how is const int &b = ref(val(a)); What C++ standard says Is compiler bug or user bug   see next example: auto_ptr<char> const &ref(auto_ptr<char> const& p) {  return p; }  {   auto_ptr<char> const& ptr = auto_ptr<char>(new char(0));  ASSERT(*ptr == 0);//ok  }// call  ~auto_ptr and delete the char  { & ...Show All

  • SQL Server How to load report in a new IE browser page

    I have the following code: but it shows the report in the same page where i tried to call, i am calling the report in button cllick event, report appears but it flushes the whole page content and shows the report on same page instead would like to open the report in a new page: result = rs.Render(format, Nothing , extension, encoding, mimeType, warnings, streamIDs) Response.ClearContent() Response.AppendHeader("content-length", result.Length.ToString) Response.ContentType = "application/pdf" Response.BinaryWrite(result) Response.Flush() Response.Close() Please help thank you very much. ...Show All

  • Smart Device Development Problem related saving the image to a file at runtime

    hi all, I want to save the image at runtime. If user changes the current image, then it should prompt for replace and if user says yes, then it should replace the existing image file.or open the savefiledialog to save the image if user refuses to replace. I tried alot but didnt got any solution. DialogResult Result = MessageBox.Show("Do you want to save the changes", "Save", MessageBoxButtons.YesNo,MessageBoxIcon.None,MessageBoxDefaultButton.Button1); if(Result == DialogResult.Yes) if (File.Exists(FormClassReference.DeviceImagesForm.ImageCollection[ImageIndexForPreview].ToString())) { StreamWriter(FormClassReference.DeviceImagesForm.customSnapList.ItemsCollection[ImageInd ...Show All

  • Visual Studio Express Editions I can't select items in a listbox with ID key data

    I have a listbox that contains data from a datatable and the value/display member is the ID key, but when I select something inside it it gives the following error: System.Data.ConstraintException was unhandled Message="For the column KaartID applies the restriction that it has to be unique. The value 4 is already present." Figo Fei - MSFT wrote: Hi, The cause is that ID is the unique key of the datatable which can't be duplicated. Pls check what operation have you applied to the listBox about this unique column data Thanks what do you mean with operation what it does with the data but if I just click the data in the listbox it says the same error kaartIDListB ...Show All

©2008 Software Development Network