|
hi guys
i posted earlier about an app i am developing for making DFD's . I have
made something at least but the problem here is that when i deploy the
application its behavior changes.
first the features:
1. you can make a Data Flow Diagram.
2. Save it
On saving three files are created
a. file 1 is .bmp file which is the image of your DFD.
b. file 2 is an XML file which shows the logical meaning of this
DFD, in my self defined schema , if you want to know it ask me i
will explain but here i m too lazy to explain.
c. The third file is a..dfd file which is a custom extension
defined by me for saving the DFD,this is also an XML file , it is used
for saving and reopening the DFD for editing and is pretty self
explanatory.
3. you have to drag drop objects on work area and click line to draw a
line from one to another.
4. you can move lines , delete them , move delete objects,etc.
5. The lines move along with the objects and resize themselves.
6. As DFD's are all about data flow , you can drop labels onto the work
area and name the lines (these will be saved in second XML file), drop
them on line.
7. you can compile DFD's and it show if any errors there, to understand
that you need to know DFD's,check out wiki.
8. you can print them and save them as another one and stuff like that.
features to be added
1. real time compilation .
2. real time adjustment of lines as you draw them.
3. Multi level DFD's and if possible , i 'll try to generate some code
too
suggestions are welcome
You can get it here
http://www.esnips.com/doc/7bd44a49-dfe3-46bc-a157-a9b1d9d3c2ca/Release.rar
Now the problem , the problem here is that when i am debugging this
project the double buffering thing works fine , but when i deploy it
you will notice when you put a label on line and move objects( boxes ),
the lines start disappearing, in debug as well as release exe, please
guys help and to do post some reviews
Sameer Sood
Microsoft Student partner
NIT Durgapur,india
|
|
|
|
|
I'm starting to fiddle with COM Interop within my C# code. I've managed to get MS Word embedded within my form and am able to remove it's caption and resized it to fit within the child area. The problem Im seeing is if I restore the caption and attempt to maximize the child (MS Word) it doesnt maximize to the max boundaries of the child area as expected but in fact just dissappears from view. I've even hid the caption and used Word's menu item (Window >> Arrange All) and this time the display remains in view but the lower portion and right side are cut off from view (the overall window appears sized beyond the child bounds).
Perhaps my reasoning of parent child relationship is incorrect when it comes to windows. Here is a portion of my code for establishing the relationship and resizing:
// Win32: Use SetParent to set the handle to the Word instance as a child to my form
SetParent(WordHWnd, MyForm.Handle.ToInt32());
// Win32: Readjust the position of the word window -- Seems redundant to MoveWindow though
SetWindowPos(WordHWnd,MyForm.Handle.ToInt32(),0,0,MyForm.Bounds.Width, MyForm.Bounds.Height, SWP_NOZORDER | SWP_NOMOVE | SWP_DRAWFRAME);
// Win32: Move the window into view
MoveWindow(WordHWnd,0,0,MyForm.Bounds.Width, MyForm.Bounds.Height,true);
// My function to remove the caption.
RemoveCaption(WordHWnd, MyForm.Handle.ToInt32());
// Win32: Maximize the Word Window to fit the full area of its container
ShowWindow(WordHWnd, SW_MAXIMIZE);
|
|
|
|
|
How can I prevent items from an outside location from being accepted as drops? I'm making a dialog to move items between two listboxes, and need to keep external strings from being dropped into either.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
Do checks in the OnDragOver event.
|
|
|
|
|
Where am I supposed to get the data to identify the source from? sender is the potential recipient, and DragEventArgs doesn't have a member indicating the souce.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
Encapsulate your strings in a custom IDataObject impementation. When you check for the correct data type in your DragOver and DragDrop events, you just look for data of that custom type. If it's not there, well, you know you're getting data from an unauthorized source.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thank you.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
It appears I don't need to implement a custom IDataObject, just a custom type to put into the stock DataObject that gets passed around. Much less work this way.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
Whatever works! I just thought of it off the top of my head. I never said I did it myself!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
No worry, without your idea, I'd've probably spent more time searching for what I ended up doing than I lost starting to implement the innerface.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
I have a web page where the user selects a month and year and submits it to the system.
I then need to create two dates - the first and last dates of that month - which are then sent to another page.
Whats the best way to do this ? I came up with the idea of subtracting the month from todays month, doing the same with the year and then creating the start date.
But this involves converting a string -> int -> date and then back to string - which seems like a lot of converting.
|
|
|
|
|
Use the DateTime.DaysInMonth to get the number of days in the month. Then you can easily create DateTime structures from the values, and format the dates as you like them.
---
b { font-weight: normal; }
|
|
|
|
|
This looks suspiciously homeworky . Anyway, here's the easy way to do it:
DateTime startDate = new DateTime(selectedYear, selectedMonth, 1, 0, 0, 0, 0);
DateTime endDate = startDate.AddMonths(1).AddDays(-1);
You can use a similar trick to get the first and last days from any date:
DateTime dt = new DateTime(2006, 11, 26,0,0,0,0);
DateTime startDate = dt.AddDays((-(dt.Day)) + 1);
DateTime endDate = startDate.AddMonths(1).AddDays(-1);
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
In some codes I saw @ character before string. I here that it is used in php sytax for breaking loops, but could not found any clue what it does in c#
karanba
|
|
|
|
|
Makes it so escape characters are skipped.
string x = "What now man? \nWe are going to the store";
Console.WriteLine(x);
will output:
What now man?
We are going to the store
whereas this:
string x = @"What now man? \nWe are going to the store";
Console.WriteLine(x);
will output:
What now man? \nWe are going to the store
|
|
|
|
|
thaks much.
karanba
|
|
|
|
|
A @ delimited string has the double quote as only escape code.
These declarations are equivalent:
string a = "A string with \"quotes\" and a backslash: \\ in it.";
string b = @"A string with ""quotes"" and a backslash: \ in it.";
---
b { font-weight: normal; }
|
|
|
|
|
I also use it for creating multiline strings
string sql = @"
SELECT *
FROM TABLE
WHERE THIS=@THAT
";
|
|
|
|
|
Hi,
I am trying a simple window program in C#. That application should be in system tray and show the window when the icon in the tray is clicked. How can i do this?
urs truly,
Mutyala Rao,
9980004568
|
|
|
|
|
Mutyala Rao wrote: How can i do this?
Do a little research.
There are plenty of articles on the subject here.
only two letters away from being an asset
|
|
|
|
|
There's a controol available called NotifyIcon... Try experimenting with this one
|
|
|
|
|
hi thanks.
the below links were helpful:
http://www.developer.com/net/csharp/article.php/3336751
http://bluehouse.wordpress.com/2006/01/24/how-to-create-a-notify-icon-in-c-without-a-form/
urs truly,
Mutyala Rao,
096886303653
|
|
|
|
|
I had set some shortkut keys by using &in front.But the underline is enabled only if i press the alt key.i hav to see the menus with underline before press the alt key.please help me
My small attempt...
|
|
|
|
|
Display properties -> Appearance -> Effects -> Uncheck "Hide underlined letters..."
Don't use urgent in the subject
only two letters away from being an asset
|
|
|
|
|
i know that.But is der any other method
My small attempt...
|
|
|
|