Ferener's Q&A profile
Software Development for Windows Vista While loop only executes once
Hi I want to use the While activity in a workflow I'm developing, however I have the following problem. The the first time the while loop condition is evaluated it returns true so the contained activity should be executed (I have a code child activity that just writes to the console). However the code activity is not executed. The workflow is persisted and then nothing else happens. I've been looking at the WhileAndParallel sample program to see if I'm missing anything. This runs fine as supplied. However if I move the workflow into my host and execute it there, the same thing happens - the loop condition evaluates to true and then the child activity is not executed. Is there something obvious that I could be doing in my host t ...Show All
.NET Development How to make code wait "n" amount of seconds while being responsive to user input?
Hello, I need to check certain function every 10 seconds. I used Thread.Sleep() method but problem is that after I call it my Windows form is non-responsive and I can not see either screen updates or even exit from application. What is the proper way doing what I'm trying to do You could use a Timer to achieve this more elegantly. A timer should use a thread from the Thread Pool and so your application main ui thread will not be blocked, hence getting rid of the un-responsiveness. ...Show All
Visual Studio Express Editions passing value
Form1 got 1 label, then i create another class, there have 2 files that class.cpp and class.h. how i can change the label1->Text in class.cpp Hello I am not sure I fully understand the question but the answer may be something like: Form1->Label1->Text… Let me know if this answers your question. Thanks Damien ...Show All
Visual Studio Express Editions Creating Icons
I have been trying to create an icon and saving it with paint as "icon.ico" but it isnt accepting it other icons will be accepted does anyone know why this is happening Polarbear541 oh that isnt working either do you know any software that creates icons when it doesnt accept it, it displays "argument 'picture' must be a picture that can be used as an Icon." it just goes back to the default icon ...Show All
Smart Device Development a socket was attempted to an unreachable host?
Hi, I have opened my middle tier application with VS2005,CF2.0 (which is developed with VS2003(CF1.1)). When I run on VS2003 and pocket pc emulator 2002 , it is connected to server with out any error. but when I open on VS2005 (pocket pc emulator 2003) It is giving the following error. A socket was attempted to an unreachable host. can u plz give me the solution fot this if u know. Malleswar wrote: Thank you for responding. yes it is reachable outside the code. I am able to connect to my server through VS2003 (simulator 2002). but not with VS2005 (simulator 2003). If you know any solution please let me know. you have the virtual machine network driver in place I'm not certa ...Show All
Visual Basic LoadLibrary returns null
Hello, I have a windows application in VB .NET (VS 2005) that tries to load an unmanaged dll dynamically using LoadLibrary. However the LoadLibrary constantly returns 0. I checked the last error message right after the call to LoadLibrary using Marshal.GetLastWin32Error and it returns 998. It is interesting that when I laod the same dll in VC++ .Net using the LoadLibrary function it returns the correct handle. I appreciate if someone could help me out with this, Thanks in advance STabrik wrote: Hello, I have a windows application in VB .NET (VS 2005) that tries to load an unmanaged dll dynamically using LoadLibrary. However the LoadLibrary constantly returns 0. I checked the last error message right after the ...Show All
Visual Studio Solution and Solution Configuration missing
Something's happened to Visual Studio which is causing the Solution Configuration dropdown to disappear from new Web Application projects. It's also causing the "root" (ie the Solution) to disappear from the Solution Explorer, too. New Web Sites are fine, and older Web Application projects still have the Solution Config in them, but any new Web Applications don't work. I've tried repairing Visual Studio with no joy. I can't say for sure what has caused this- it's taken me a while to even notice, to be honest! One thing that might be the cause: I installed the Atlas library into VS about three weeks ago... Might that have changed some settings or corrupted something somewhere In Tools-& ...Show All
Visual C# What is Parsing error(CS8025)?
What is Parsing error(CS8025) What is the usual cause of it Flamethrower 5120 What does the code look like where the error occured There should be a file name and location in the file where the error is occuring. Perhaps we can help diagnose the problem if we can see the relevant code segment. ...Show All
SQL Server Company Dimension
We deal with multiple vendors who provide us information via text/xml files. Vendor A may provide financial data, vendor b provides litigation data, vendor c provides ratings data. Our current structure has databases for each vendor with its own company table which basically makes all this data disconnected. Of course each vendor has its own proprietary company id to make records unique. All of the data is based on companies so the grain of data would be at a company level. I would like to be able to link this information together by creating a dimensional model that has a single company table (DimCompany) and has facts populated based on the type of data we receive. Would this be the right sequence of events 1. My initial load (h ...Show All
Visual Basic Don't be duped my flashy drag-n-drop database connection wizard video presentations.
Novice using vb.net 2005, vb.net 2005 express, vb.net 2005 pro After attempting to write all apps via code and finding that vb.net would crash out completely I found that the drag-n-drop methodology was more stable. I've just spent the last 4 to 6 months researching the drag-n-drop database connection methodology. My conclusion is that we should NOT use this methodology as a starting point for software development. It's just flash. Thats all. You can't actually use this as an ever changing development environment. It should be used as a research in a forward only progression. And ONLY after the database is fixed permanently. Or duping others into thinking that this is a really nice product. Specifically, DON'T try to update/modify the code ...Show All
.NET Development RowUpdated event for Provider Independent DataAdapter
I am attempting to move to the Provider Independent classes for Data access. Mostly it is going well but I have hit a wall trying to setup the RowUpdated event on a DataAdapter. Using the OleDb classes I would use: System.Data.OleDb. OleDbDataAdapter da; // set up dataset and read table etc...... da.RowUpdated += new System.Data.OleDb. OleDbRowUpdatedEventHandler (My_RowUpdated); Unfortunately the System.Common.DbDataAdapter class does not appear to have a public RowUpdated event handler and so I have to use some casting to make it work: ((System.Data.OleDb. OleDbDataAdapter )da).RowUpdated += new System.Data.OleDb. OleDbRowUpdatedEventHandler (My_RowUpdated); Am I missing something here Is there a way to achieve th ...Show All
Visual Studio Express Editions Another Newbe How to question
What configuration or code would I use to insert for 2 radio buttons. In other words, I have a label that ask the user to choose only one radio button(or person) amoung two radio buttons (the other person). When the user selects one radio button, this button or person becomes the main focus of the program. However when the user chooses the other button or person then that person or button becomes the main focus of the program. Is it possible to set a code for this Any help please and thankyou Edited comment: The following link explains my confusion on 'SelectionMode.One'. http://www.techieone.com/detail-9968162.html The following code is still useful though to limit the user to one check. I would use a ...Show All
Windows Forms Tooltip not showing in custom control after click
I created some custom controls, every one with its own tooltip. The tooltip shows correctly if I don't click on the controls but after the first click it shows no more. Do you know why This is the code I use: this->myToolTip->InitialDelay=10; this->myToolTip->ReshowDelay=10; this->myToolTip->ShowAlways=true; this->myToolTip->SetToolTip(this,"Click to toggle connection of the EEG signal to this parameter"); I only add the tooltip and set caption. ...Show All
.NET Development Memory usage with DataSet
Hi All, I need some advise regarding this. I got a table in database that contains two fields, MSISDN (mobile number) and flag. I got 150000 mobile numbers and I have to send sms to these numbers. I created a timer which runs every minute to check whether there is any new message to be sent. If there is, then it picks up and sends it. Now, when it finds a message, it calls a function in which returns a dataset containing table of 150K numbers and flag values (default = 0;message not sent to this number). It then loops through each row of the table, picks up the mobile number and sends the sms. It the sending is success, then it calls the function that updates the flag in the database of that MSISDN to 1; message sent. Now, the memory usage ...Show All
Windows Forms Drawing parts of an Image
Hi - quick question. I need to use DrawImage/DrawImageUnscaled to draw certain source areas from a certain Bitmap, using a Graphics object, many times. I've tried many variations of the call and they all are very slow... 30~50 iterations takes almost a second. There's nothing I can do about the size of my image file either, unforunately. Making it a small-size PNG doesn't help at all. Also, I really want to avoid using DirectX here for the reasons of simplicity, load-up speed, and also the fancy advanced features like gradient brushes, etc. that I really need. So, to my actual question - is there any other way to greatly improve my speed without using another technology than GDI+ Thanks in advance... P.S. I should add that I can't reall ...Show All
