|
Does anyone know of a good/usable .net iCal parser?
Mark
|
|
|
|
|
How can i bind dynamic dataset(with varing number of columns) to crystal report?
thank you
hmcu
|
|
|
|
|
Dim MyReport As ReportDocument = ...Assign ur ReportName...
Dim MyDataSet as New DataSet
...Fetch data to MyDataSet...
MyReport.Database.Tables(0).SetDataSource(MyDataSet)
"I firmly believe that
any man's finest hour,
the greatest fulfillment of all that holds dear,
is that moment,
when he has worked his heart out in a good cause
and lies exhausted in the field of battle - victorious..."
|
|
|
|
|
my Problem is the dataset contains varying number of data columns. it will define @ run time.i want to create the report acccording to that dataset.
|
|
|
|
|
Hi all!
I'm writing a program where I need to make some drawings over previously created
in-memory Metafile. The very first drawing succeeds but next time I'm trying to
call Graphics.FromImage on same metafile object OutOfMemoryException is being thrown.
Can anyone say me, what exactly happens?
Thanks a lot.
P.S. Please excuse me for my poor English.
<br />
Metafile meta = null;<br />
MemoryStream mstream = new MemoryStream();<br />
<br />
using (Graphics gr = CreateGraphics())<br />
{<br />
IntPtr attribDc = gr.GetHdc();<br />
meta = new Metafile(mstream, attribDc);<br />
gr.ReleaseHdc(attribDc);<br />
}<br />
using (Graphics gr = Graphics.FromImage(meta)) <br />
{<br />
m_Visualizer.DrawTemplateMnemo(m_Template, gr);<br />
}<br />
using (Graphics gr = Graphics.FromImage(meta))
{<br />
m_Visualizer.DrawTemplateMnemo(m_Template, gr);<br />
}<br />
|
|
|
|
|
Does anybody know how to use OpenGL with .Net forms application in Visual C++ environment or any place I can take a look?
Thanks.
|
|
|
|
|
Hi,
I have a simple problem that I am trying to solve for the past 2 days.
I have an application in system that is basically a MFC application and for a module it does CLR hosting and then on it runs .NET code. I am trying to attach my .NET code to it but at the instant when I attach the app.exe to my code, it gives an error message with just the words "UNABLE TO ATTACH TO THE PROCESS". Whereas am able to do the same thing in another system.( a WIN 2000 machine but mine is XP
Not sure if this is due to some OS problem or some security tweak that is missing in my system or something to do with CLR hosting.
Thanks,
Mani
|
|
|
|
|
<br />
using System;<br />
using System.Threading;<br />
using System.Windows.Forms;<br />
<br />
static class Program1<br />
{<br />
[STAThread]<br />
static void Main()<br />
{<br />
Thread.Sleep(5000);<br />
Application.Run(new Form());<br />
}<br />
}<br />
Sleep simulates assemblies loading.
If I run this program and open the Visual Studio menu before the form appears the program does not appear in the taskbar. This happens always and I can live with it.
But an ugglier thing is that if I switch to another program before the form appears sometimes Program1 does not appear in the taskbar but you can go to it with Alt+Tab or by minimizing the other programs' windows.
Does somebody know if this is a Windows or .NET bug and what can I do to avoid this?
|
|
|
|
|
If I understand you properly, the TaskBar icon won't show up until the form does?? That's correct, it shouldn't, not until the form appears. The icon won't exist until the form is instantiated and it's message pump is running.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
The taskbar icon does not show up at all (neither after the form appears). You can wait a week and it still does not show up.
|
|
|
|
|
Ah! OK. I've never seen the problem. Hmmm.... Maybe related to the old EnableVisualStyles problem?? Try something like this:
using System;
using System.Threading;
using System.Windows.Forms;
static class Program1
{
[STAThread]
static void Main()
{
Thread.Sleep(5000);
Application.DoEvents();
Application.Run(new Form());
}
}
Other than that, I've got no ideas. Sorry...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I made this way and now it works correctly. I now have Visual C# 2005 Express, but I had this problem in VS 2003 too.
Thanks.
|
|
|
|
|
Visual Studio .NET 2003, right? I can't duplicate the problem. Though, I'm just using a blank form and adding the Thread.Sleep(5000) line exactly where you have it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hai ,
I am Ravindra at present I am learning .net.
When I am working with .net controls ,I am not getting all the events loaded .
(ie) for suppose if i used button control,i am not getting all the events of that respective control loaded in code page.
Please help....
thanx in advance.
|
|
|
|
|
What do you mean when you say that you don't "get the events loaded"?
---
b { font-weight: normal; }
|
|
|
|
|
Are you saying that you're overloading events and they are not firing as yuo'd expect ? Which events ? In what circumstances ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
ravindradonkada wrote: When I am working with .net controls ,I am not getting all the events loaded .
If I read you correcly you are expecting all the event handler code to be made in advance? You either need to override the event or dbl-click the event in Visual Studio and it will regester a delegate. If can speak your native language I could translate it using the internet to better understand your problem.
static int Sqrt(int x) { if (x<0) throw new ArgumentOutOfRangeException(); int temp, y=0, b=0x8000, bshft=15, v=x; do { if (v>=(temp=(y<<1)+b<<bshft--)) {="" y+="b;" v-="temp;" }="" while="" ((b="">>=1)>0); return y;
|
|
|
|
|
Hi all,
I'm stymied by this one. I have a .NET Windows application programmed in C#. It has of course a lot of live data displayed on various forms, using the connector, adapter, and dataset tools. Plus, it does data manipulation in the code, programmatically setting up connections, adapters, and so forth.
Up to now, I've let this be fast & loose with the database, using the production database for testing, but now this has become an issue, and I have to split the development database environment away from the production one.
So the question becomes, how do I have, in all those connection & database definitions crawling throughout the product, a separate database for development & testing, possibly on a separate server? The idea of changing them all to deploy is just not good process, so there's got to be a real solution. Pointers and suggestions are most badly needed. Thanks.
Joe
I'm smarter than this makes me sound. Really.
|
|
|
|
|
Well, how I do it is I have a second copy of the database on my development machine running in a named instance of MSDE, or on the SQL Server under my desk.
The only thing that needs to change is the connection string, but only to specify which server/named instance the database is in.
If you've hard coded this connection string all over your code - shame on you for using such bad practice!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Try this
>> Use connection strings in code for connections
>> Store the connection details in an XML file in the application directory, Fetch details from this file during connection.
>> You have to only change the XML File to change the database name
"I firmly believe that
any man's finest hour,
the greatest fulfillment of all that holds dear,
is that moment,
when he has worked his heart out in a good cause
and lies exhausted in the field of battle - victorious..."
|
|
|
|
|
Greetings:
I'm not sure if this is the proper forum for this question but I'll ask anyway:
I have downloaded the demonstration version of Dundas Charts and have been playing with them for a week or so. I like what I see so far and am considering purchasing a license. I am wondering about tech support however. Has anybody used Dundas Charts and, more specifically, has anybody encountered a problem that required tech support? How did that go? How quick were they to respond? How helpful were they? How many layers of know-nothings did you have to peel through before you got to correspond with somebody that could help you? What was the average number of hours / days from the time that you initiated contact to the time when the problem was resolved?
Thanks in advance,
Mark
|
|
|
|
|
I tested the charts, and I contacted support, I didn't tell them I worked for CP, because I didn't have to, the support seemed excellent.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
How to get the name and value of the control belonging to window in some other program?
Currently I am trying it with Win32 APIs. Here are the steps I am foloowing.
1) I am using 'FindWindow' function to retrieve the Handle for the target window.
2) Then I am using 'EnumChildWindows' to get the controls in the traget window.
3) Then I am using 'WM_GETTEXT' in 'SendMessage' function to get the value for the control.
But I also need name of the control so that I can Identify what control has what value. What function can be used to get the name of the control? How to achieve this using Win32 APIs?
Thanks.
Niranjan
|
|
|
|
|
There are no names in the sense you're thinking of. You'd be looking for the class name of the window you want to get. GetClassName[^]
As for value, not every control responds to WM_GETTEXT and there is no Value property that you can get either. If WM_GETTEXT doesn't work, you'd have to investigate other possibilities, like doing some serious debugging of the target app and digging around to get at the location where the control stores its data and try and grab it by directly reading memory. No, I don't have any example code.
Basically, there is no one method that is going to work for every control. What you want to do is problematic and not very reliable.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks Dave for your reply!
Well GeClassname only gives name of the class like "Edit" for text boxes. So in that case we can not figure-out what text box had what value. e.g. Text1 was having value 'abc' and Text2 was having value 'xyz' etc.
Can we use something other than Win32 APIs in this situation?
Thanks for your help.
Niranjan
|
|
|
|